Opened 6 years ago

Closed 6 years ago

#1045 closed bug (fixed)

Unable to delete some files

Reported by: adminusername Owned by:
Priority: minor Milestone: 8.5.2
Component: Core Version: 8.4.2
Keywords: Cc: awilson@…

Description

https://logicaldoc.freshdesk.com/a/tickets/7849
We are unable to delete some file in LogicalDoc. We’re receiving the error

Transaction rolled back because it has been marked as rollback only.

Attachments (5)

screenshot01a.png (5.2 KB ) - added by adminusername 6 years ago.
Error as seen by the user
dms.log.txt (9.5 KB ) - added by adminusername 6 years ago.
Extracted the exception from the dms.log file
screenshot02a.png (63.9 KB ) - added by adminusername 6 years ago.
Auto-naming schema with Update option disabled allows to delete the doc
patch-for-842.zip (5.3 KB ) - added by admin 6 years ago.
Patch for LogicalDOC 8.4.2
patch-for-851.zip (5.3 KB ) - added by admin 6 years ago.
Patch for LogicalDOC 8.5.1

Download all attachments as: .zip

Change History (9)

by adminusername, 6 years ago

Attachment: screenshot01a.png added

Error as seen by the user

by adminusername, 6 years ago

Attachment: dms.log.txt added

Extracted the exception from the dms.log file

comment:1 by adminusername, 6 years ago

The problem occurs as there is an auto-naming scheme on the document class assigned to the document.
This auto-naming schema has activated the Update option.
By removing the Update option it's possibile delete the document.

That appears to be a bug, since while technically the delete of a document itself is an update from the user's point of view this is not the case and the document should be deleted without issues and whithout having to disdable the Update option.

by adminusername, 6 years ago

Attachment: screenshot02a.png added

Auto-naming schema with Update option disabled allows to delete the doc

comment:2 by admin, 6 years ago

Component: User InterfaceCore
Milestone: 8.5.18.5.2

comment:3 by admin, 6 years ago

Cc: awilson@… added

by admin, 6 years ago

Attachment: patch-for-842.zip added

Patch for LogicalDOC 8.4.2

by admin, 6 years ago

Attachment: patch-for-851.zip added

Patch for LogicalDOC 8.5.1

comment:4 by admin, 6 years ago

Resolution: fixed
Status: newclosed

We fixed the issue and attached two patches here, one for LogicalDOC 8.4.2 and the other one in case you are on LogicalDOC 8.5.1.
To install the patch do as follows:

  1. Stop LogicalDOC
  2. Unpack the patch into <LDOC_HOME>/tomcat/webapps/ROOT/WEB-INF/classes
  3. Start LogicalDOC
Note: See TracTickets for help on using tickets.