Project

General

Profile

Actions

feature request #7148

closed

feature request #6867: explicitely assign and revoke UPDATE & DELETE permission per enitity in the registration workflow

GrantedAuthorityRevokingRegistrationUpdateLister: delete orphan references to GrantedAuthorityImpl in User and Group

Added by Andreas Kohlbecker over 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Priority14
Category:
cdm-vaadin
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Severity:
major

Description

The GrantedAuthorityRevokingRegistrationUpdateLister deletes GrantedAuthorityImpl entities but the references to GrantedAuthorityImpl in User and Group are not deleted with the entities.

Update of the description with documentation from the GrantedAuthorityRevokingRegistrationUpdateListe.class:

This Hibernate PostUpdateEventListener is responsible for revoking GrantedAuthorities from any user which is having per entity permissions in the object graph of the Registrationbeing updated This encompasses GrantedAuthotities with the CRUD values CRUD.UPDATE, CRUD.DELETE. Please refer to the method documentation of collectDeleteCandidates(Registration) for further details.

The according permissions are revoked when the RegistrationStatus is being changed by a database update. The RegistrationStatus causing this are contained in the constant MODIFICATION_STOP_STATES which are

  • RegistrationStatus.PUBLISHED,
  • RegistrationStatus.READY,
  • RegistrationStatus.REJECTED

Related issues

Related to EDIT - bug #7531: PermissionDeniedException on flushing registration with modified status even if the user has the required authorityClosedAndreas Kohlbecker

Actions
Related to EDIT - bug #7147: GrantedAuthorityRevokingDeleteListener implementedNewAndreas Müller

Actions
Copied to EDIT - task #7274: GrantedAuthorityRevokingRegistrationUpdateLister: add the exception handling for failing flush or commitClosedAndreas Kohlbecker

Actions
Actions

Also available in: Atom PDF