Project

General

Profile

Actions

bug #8066

closed

CdmUserHelper.createAuthorityFor() causes flush of pending transactions

Added by Andreas Kohlbecker about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Highest
Category:
cdmlib
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Severity:
normal
Found in Version:

Description

This was observed when testing for regressions related to #8039, the following steps where done in the registration UI

  1. add "existing name" to registration workingset
  2. add NameTypeDesignation
  3. create new "Typified Name"
  4. Save NameTypeDesignationPopupEditor

during the save operation a PermissionDeniedException occurred:

[reference_int] 12:10:42,124 ERROR [qtp93314457-353][eu.et.va.mv.AbstractPopupEditor] - eu.etaxonomy.cdm.database.PermissionDeniedException: [CREATE] not permitted for 'system-admin' on Registration[uuid:5920ff17-ff73-4930-acb7-3a5d2d906279', toString:'Registration#42<5920ff17-ff73-4930-acb7-3a5d2d906279>']

this was caused by a flush on dirty in the CdmUserHelper.createAuthorityFor() method

Actions

Also available in: Atom PDF