View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004385 | SOGo | sogo-tool | public | 2018-02-05 19:07 | 2018-04-27 16:37 |
Reporter | ASolana | Assigned To | francis | ||
Priority | immediate | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 3.2.10 | ||||
Fixed in Version | 4.0.1 | ||||
Summary | 0004385: Sogo-tool deletes sogo_acl table when it restores folders from a user backup | ||||
Description | I have a Sogo 3.2.10 server using a MYSQL sogo database sogo-tool deletes sogo_acl table when it's restoring folders from a user backup file generated with sogo-tool. Executed command: "sogo-tool -f ALL folder user" I followed steps explained in page https://sogo.nu/support/faq/how-can-i-backuprestore-my-user-data.html I've activated "MySQL4DebugEnabled = YES;" in /etc/sogo/sogo.conf sogo-tool -f ALL folder user > user.folder.restore.log 2>&1 | ||||
Steps To Reproduce |
then restart sogo service: service sogo restart
sogo-tool -f ALL folder user
At this point all sogo_acl table contents are deleted. user.folder.restore.log file contents shows how sogo-tool executes an "UPDATE" and a "DELETE FROM sogo_acl;" commands for every object folder in "user" backup file. "DELETE FROM sogo_acl" command it has no sense, it deletes everything.
You can see 2.sogo.sogo_acl.sql file is empty. | ||||
Additional Information | Execute this command: cat sogo-tool.user.folder.restore.log | egrep "UPDATE|DELETE" in order to see how "DELETE FROM sogo_acl;" is executed for each of 6 folders in the "usuari.elena2" backup file: $ cat sogo-tool.user.folder.restore.log | egrep "UPDATE|DELETE" | ||||
Tags | No tags attached. | ||||
The Reproducibility is ALWAYS (not sometimes). |
|
I cannot change Reproducibility contents to "Always", so I've opened other bug https://sogo.nu/bugs/view.php?id=4390 with maximum priority and "Reproducibility=Always" |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2018-02-05 19:07 | ASolana | New Issue | |
2018-02-05 19:07 | ASolana | File Added: sogo-tool.user.folder.restore.log | |
2018-02-05 19:11 | ASolana | Note Added: 0012562 | |
2018-02-07 16:25 | francis | Relationship added | has duplicate 0004390 |
2018-02-07 16:30 | ASolana | Note Added: 0012582 | |
2018-02-07 16:45 | francis | Severity | major => minor |
2018-02-07 16:45 | francis | Reproducibility | sometimes => always |
2018-02-07 16:45 | francis | Relationship added | duplicate of 0004256 |
2018-04-27 16:36 | francis | Changeset attached | => sogo master f3189204 |
2018-04-27 16:36 | francis | Assigned To | => francis |
2018-04-27 16:36 | francis | Resolution | open => fixed |
2018-04-27 16:37 | francis | Status | new => resolved |
2018-04-27 16:37 | francis | Fixed in Version | => 4.0.1 |