Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115765 - webapp-config-1.11 does not ignore slashes in <directory> when upgrading
Summary: webapp-config-1.11 does not ignore slashes in <directory> when upgrading
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-16 05:30 UTC by Lars T. Mikkelsen
Modified: 2006-03-13 02:36 UTC (History)
1 user (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 Lars T. Mikkelsen 2005-12-16 05:30:09 UTC
When upgrading an application, webapp-config does not ignore trailing slashes in
the <directory> parameter (--dir), as shown in the example below:

Horde 3.0.6 is installed in the directory "horde":
# webapp-config -I -h <host> -d horde horde 3.0.6
# cat /var/db/webapps/horde/3.0.6/installs
1130581521 root root /var/www/<host>/htdocs/horde
# webapp-config --list-installs
/var/www/<host>/htdocs/horde

After upgrading to 3.0.8 using the directory "horde/", webapp-config still
thinks 3.0.6 is installed:
# webapp-config -U -h <host> -d horde/ horde 3.0.8
# webapp-config --list-installs
/var/www/<host>/htdocs/horde
/var/www/<host>/htdocs/horde/
# cat /var/db/webapps/horde/3.0.6/installs
1130581521 root root /var/www/<host>/htdocs/horde
# cat /var/db/webapps/horde/3.0.8/installs
1134411797 root root /var/www/<host>/htdocs/horde/

I think webapp-config should ignore trailing slashes in the <directory> parameter.
Comment 1 Renat Lumpau (RETIRED) gentoo-dev 2005-12-16 06:58:17 UTC
Please test with webapp-config-1.50.3 and reopen if necessary.
Comment 2 Lars T. Mikkelsen 2005-12-16 13:44:47 UTC
The issue is still present with webapp-config-1.50.3:

Installing horde 3.0.8 in "horde":
# webapp-config -I -h <host> -d horde horde 3.0.8
[snip]
# webapp-config --list-installs -V
* Installs for horde-3.0.8
*   /var/www/<host>/htdocs/horde

Upgrading to horde 3.0.9 in "horde/":
# webapp-config -U -h <host> -d horde/ horde 3.0.9
* Upgrading horde-3.0.8 to horde-3.0.9
*   Installed by root on 2005-12-16 22:37:56
*   Config files owned by 0:0
!found /var/www/<host>/cgi-bin
!found /var/www/<host>/error
!found /var/www/<host>/icons
!empty config
--- /var/www/<host>/htdocs/horde/
* Installation at "/var/www/<host>/htdocs/horde/" could not be found in the database file. Check the entries in "/var/db/webapps/horde/3.0.8/installs"!
* Remove whatever is listed above by hand
*   Creating required directories
*   Linking in required files
*     This can take several minutes for larger apps
*   Files and directories installed
* Install completed - success
# webapp-config --list-installs -V
* Installs for horde-3.0.8
*   /var/www/<host>/htdocs/horde
* Installs for horde-3.0.9
*   /var/www/<host>/htdocs/horde/
Comment 3 Gunnar Wrobel (RETIRED) gentoo-dev 2006-01-04 13:59:37 UTC
Please test with webapp-config-1.50.6 and reopen if necessary.
Comment 4 Andreas Vinsander 2006-03-13 02:18:04 UTC
It is still a problem in webapp-config 1.50.10, pleas re-open!

I tried to upgrade my squirrelmail installation using
webapp-config -U -h <somehostname> -d / squirrelmail 1.4.6

resulting in having the following contents of /var/db/webapps/squirrelmail/*/installs:

1.4.5-r1/installs:
1138880222 root root /var/www/webmail.vinsander.se/htdocs/
1.4.6/installs:
1142240037 0 0 /var/www/webmail.vinsander.se/htdocs

The original instance of squirrelmail was installed using:
webapp-config -I -h <somehost> -d / squirrelmail <version>

To solve this I would have to manually remove /var/db/webapps/squirrelmail/1.4.5-r1

Or is there another way?
Comment 5 Andreas Vinsander 2006-03-13 02:36:09 UTC
I should probably add that the previous squirrelmail installation was performed using webapp-config 1.11