Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 81757 - [possible webapp-config bug?] Installing xoops overwrites mainfile.php
Summary: [possible webapp-config bug?] Installing xoops overwrites mainfile.php
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major
Assignee: Stuart Herbert (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-12 09:47 UTC by steveb
Modified: 2005-11-20 09:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description steveb 2005-02-12 09:47:10 UTC
When installing xoops, then configuring it, removing it and then reinstalling it again, the file mainfile.php get's overwritten.

Example:
1) /usr/sbin/webapp-config -I -h localhost -V -u apache -d /xoops 2.0.7.3
2) Then use a web browser to configure xoops
3) Remove /xoops/install and chmod 444 mainfile.php (as advised by webapp-config)
4) Then uninstall xoops: /usr/sbin/webapp-config -C -h localhost -V -u apache -d /xoops 2.0.7.3 (mainfile.php does not get deleted! This is good)
5) Then reinstall xoops: /usr/sbin/webapp-config -I -h localhost -V -u apache -d /xoops 2.0.7.3
6) BANG!! mainfile.php get's overwritten by webapp-config


I think that the ebuild for xoops needs to add mainfile.php as webapp_configfile. Without that the file is handled as a normal script file and this is sure not the case.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Alin Năstac (RETIRED) gentoo-dev 2005-02-24 00:29:27 UTC
ups, I've made a confusion; thought it was about www-proxy/oops.
sorry...
Comment 2 Nico Baggus 2005-06-27 14:58:59 UTC
this update (79348, 2.0.11 ebuild) also solves this problem.... 
Comment 3 Renat Lumpau (RETIRED) gentoo-dev 2005-07-02 19:31:35 UTC
This is interesting. From what I understand, this is a bug in webapp-config:

1. webapp-config -C -d xoops xoops
2. webapp-config -I -d xoops xoops 2.0.13
That overwrites files that are marked as webapp_configfile.

Nico - no, marking as webapp_configfile doesn't seem to work.

Stu - thoughts?

Reassigning (also note the version bump).
Comment 4 Stuart Herbert (RETIRED) gentoo-dev 2005-11-20 09:42:59 UTC
Fixed by webapp-config v1.50