Opened 3 weeks ago

Closed 3 weeks 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 3 weeks ago.
Error as seen by the user
dms.log.txt (9.5 KB) - added by adminusername 3 weeks ago.
Extracted the exception from the dms.log file
screenshot02a.png (63.9 KB) - added by adminusername 3 weeks ago.
Auto-naming schema with Update option disabled allows to delete the doc
patch-for-842.zip (5.3 KB) - added by admin 3 weeks ago.
Patch for LogicalDOC 8.4.2
patch-for-851.zip (5.3 KB) - added by admin 3 weeks ago.
Patch for LogicalDOC 8.5.1

Download all attachments as: .zip

Change History (9)

Changed 3 weeks ago by adminusername

Error as seen by the user

Changed 3 weeks ago by adminusername

Extracted the exception from the dms.log file

comment:1 Changed 3 weeks ago by adminusername

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.

Changed 3 weeks ago by adminusername

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

comment:2 Changed 3 weeks ago by admin

  • Component changed from User Interface to Core
  • Milestone changed from 8.5.1 to 8.5.2

comment:3 Changed 3 weeks ago by admin

  • Cc awilson@… added

Changed 3 weeks ago by admin

Patch for LogicalDOC 8.4.2

Changed 3 weeks ago by admin

Patch for LogicalDOC 8.5.1

comment:4 Changed 3 weeks ago by admin

  • Resolution set to fixed
  • Status changed from new to closed

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.