Project

General

Profile

bug #6886

Updated by Andreas Kohlbecker over 6 years ago

I observed the following problems while implementing the ExtendedCreatePermissionManager for #6867 


 when this sequence is used (snipped from CdmStore.java): 

 ~~~java 

 T mergedBean = mergedBean(bean); 
 repo.getCommonService().save(mergedBean); 
 session.flush(); 
 ~~~ 

 the flush causes cause the bean being saved a second time, time since hibernate assumes that the entity entitiy is dirty and schedules sheduled a save operation. For this save the user would need the UPDATE permission, and the save operation fails. 
 

Back