Opened 8 years ago

Closed 8 years ago

#944 closed defect (fixed)

Transaction already active exception when deleting two collections in a row

Reported by: Willem Elbers Owned by: Willem Elbers
Priority: major Milestone: VirtualCollectionRegistry-1.1
Component: VCRegistry Version:
Keywords: Cc: Twan Goosen

Description

When deleting two collections in a row the following exception is thrown (first collection is succesfully deleted):

eu.clarin.cmdi.virtualcollectionregistry.VirtualCollectionRegistryException: error while counting virtual collections
     at eu.clarin.cmdi.virtualcollectionregistry.VirtualCollectionRegistryImpl.getVirtualCollectionCount(VirtualCollectionRegistryImpl.java:553)
     at eu.clarin.cmdi.virtualcollectionregistry.gui.table.CollectionsProvider.size(CollectionsProvider.java:50)
     at org.apache.wicket.markup.repeater.data.DataViewBase.internalGetItemCount(DataViewBase.java:142)
     at org.apache.wicket.markup.repeater.AbstractPageableView.getItemCount(AbstractPageableView.java:235)
     at org.apache.wicket.markup.repeater.AbstractPageableView.getRowCount(AbstractPageableView.java:216)
...

Change History (4)

comment:1 Changed 8 years ago by DefaultCC Plugin

Cc: Sander Maijers added

comment:2 Changed 8 years ago by Willem Elbers

Cc: twagoo@clarin.eu added; Sander Maijers removed
Component: AAIVCRegistry
Milestone: VirtualCollectionRegistry-1.1
Owner: changed from Dieter Van Uytvanck to Willem Elbers

comment:3 Changed 8 years ago by Sander Maijers

Cc: Twan Goosen added; twagoo@clarin.eu removed

Twan's account is Twan Goosen, his e-mail pref is Twan Goosen. twagoo@clarin.eu does not exist.

comment:4 Changed 8 years ago by Willem Elbers

Resolution: fixed
Status: newclosed

Only deletes for VCs in error state where allowed. An exception was thrown and the transaction was not rolled back properly.

  • Private, non-error state collections can now be deleted by normal users (admins can delete public VCs).
  • Transactions are properly rolled back in case of an exception
Note: See TracTickets for help on using tickets.