Home My Page Projects FusionForge
Summary Activity Forums Tracker Lists News SCM Files Mediawiki Hudson/Jenkins

[#559] docman: Unable to empty trash

Date:
2013-06-25 13:20
Priority:
5
State:
Closed
Submitted by:
Alain Peyrat (aljeux)
Assigned to:
Franck Villaume (nerville)
Target Release:
5.3
Found in Version:
master
Severity:
blocker
Resolution:
Accepted As Bug
Summary:
docman: Unable to empty trash

Detailed description
Steps to reproduce:
1) Create a new project
2) Import the phpwiki ZIP (in attachment) in docman (will stop on a title length error, no worry).
3) Put the whole phpwiki folder in the trash
4) Clean the whole trash

Trash cleaning will fail with SQL errors (not visible):
[256] SQL error: DELETE FROM doc_groups WHERE stateid=$1 AND group_id=$2 AND groupname !=$3
[256] SQL: Arguments=["2","7",".trash"]
[256] SQL> ERROR: update or delete on table "doc_groups" violates foreign key constraint "docdata_docgroupid" on table "doc_data" DETAIL: Key (doc_group)=(35) is still referenced from table "doc_data".
Message  ↓
Date: 2013-06-25 22:27
Sender: Franck Villaume

fix in master. commit 7d079729dbaaa4e163483967e4809e625a3697e8

some files were omitted when moving folder and subfolders to trash.
reopen the bug if you need.

Attachments:
Size Name Date By Download
5.63 MiBphpwiki-1.4.0rc1.zip2013-06-25 13:20aljeuxphpwiki-1.4.0rc1.zip
Field Old Value Date By
status_idOpen2013-06-25 22:27nerville
close_dateNone2013-06-25 22:27nerville
assigned_tonone2013-06-25 22:27nerville
ResolutionNone2013-06-25 22:27nerville
File Added323: phpwiki-1.4.0rc1.zip2013-06-25 13:20aljeux