Bug 3862 - roundcube: upgrade does not run or warn about upgrade sql script
Summary: roundcube: upgrade does not run or warn about upgrade sql script
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Damien Lallement
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO, Triaged
Depends on:
Blocks:
 
Reported: 2011-12-23 18:50 CET by David Mathog
Modified: 2012-06-26 16:46 CEST (History)
0 users

See Also:
Source RPM: roundcubemail-0.7-1.mga2.noarch.rpm
CVE:
Status comment:


Attachments

Description David Mathog 2011-12-23 18:50:12 CET
Description of problem:

When upgrading roundcubemail it is necessary to upgrade the database.  The distribution includes the scripts to do this, for instance: postgres.update.sql,
but it is not run automatically, nor is there a warning to do so.  The result
is that the upgraded installation is slightly broken and there are no indications to that effect.  In my case on upgrading from 0.5.3 to 0.6.1, and then from there to 0.7.1, the addressbook stopped accepting changes at each update.


Version-Release number of selected component (if applicable):

at least 0.6.1 and 0.7.1

How reproducible:

2 out of 2 upgrades (did this with both the 0.6.1 and 0.7.1 releases.)


Steps to Reproduce:
1. download the roundcubemail noarch rpm
2. rpm -U --nodeps (rpmname)
3. try to modify an existing addressbook entry within roundcube, it will not work.

On my system (mandriva 2010.0, but probably the same on Mageia) the fix is to do:

cp /usr/share/roundcubemail/SQL/postgres.update.sql /tmp
chmod 777 /tmp/postgres.update.sql
#edit /tmp/postgres.update.sql, leaving only commands from current
# version which is being updated
su - postgres
psql roundcubemail
\i /tmp/postgres.update.sql
\q
exit
rm /tmp/postgres.update.sql

Note, the --nodeps is required because on Mandriva 2010.0 there is otherwise
a complaint about a missing "python (api)" dependency.  Not sure if that happens on mageia or not, but it can be ignored so long as python is actually installed.
Comment 1 Manuel Hiebel 2011-12-23 22:33:34 CET
Hi, thanks for reporting this bug.
Assigned to the package maintainer.

(Please set the status to 'assigned' if you are working on it)

Keywords: (none) => Triaged
Status: NEW => RESOLVED
Resolution: (none) => WONTFIX
Assignee: bugsquad => mageia

Comment 2 Manuel Hiebel 2011-12-23 22:33:53 CET
oups sorry :/

Status: RESOLVED => REOPENED
Resolution: WONTFIX => (none)

Comment 3 Damien Lallement 2011-12-27 14:44:46 CET
WIP. Thanks

Status: REOPENED => ASSIGNED
Summary: upgrade does not run or warn about upgrade sql script => roundcube: upgrade does not run or warn about upgrade sql script

Comment 4 Damien Lallement 2011-12-29 19:12:34 CET
Fixed in cauldron: http://svnweb.mageia.org/packages?view=revision&revision=188735
Now, there is a better warning in the README.urpmi (there was already a warning and the file "/usr/share/doc/roundcubemail/[UPGRAGING|README]" in previous package).
Please test "roundcubemail-0.7-2.mga2".
Comment 5 Marja Van Waes 2012-05-26 13:04:59 CEST
Hi,

This bug was filed against cauldron, but we do not have cauldron at the moment.

Please report whether this bug is still valid for Mageia 2.

Thanks :)

Cheers,
marja

Keywords: (none) => NEEDINFO

Comment 6 Manuel Hiebel 2012-06-26 16:46:36 CEST
nothing, so closing

Status: ASSIGNED => RESOLVED
Resolution: (none) => OLD


Note You need to log in before you can comment on or make changes to this bug.