cancel
Showing results for 
Search instead for 
Did you mean: 

[SOLVED] Loop problem with permissionService on 2.1.1 E

ribz33
Champ on-the-rise
Champ on-the-rise
Hi,

i did my own dynamicAuthority : ConfidentialDynamicAuthority, so i overrided permissionServiceImpl in my custom-public-services-security-context.

ConfidentialDynamicAuthority referenced ConfidentialService which reference nodeService, dictionnaryService and permissionService like this :

<bean id="ConfidentialService" class="….">
  <property name="nodeService">
     <ref bean="NodeService" />
  </property>
  <property name="dictionnaryService">
     <ref bean="DictionnaryService" />
  </property>
  <property name="permissionService">
     <ref bean="PermissionService" />
  </property>
</bean>

this was working with 2.1 community, but with 2.1.1 Enterprise permissionService can't be create because "FactoryBean is not fully initialized yet"
This is normal because i have a loop: permissionService –> permissionServiceImpl –> ConfidentialDynamicAuthority –> ConfidentialService –> permissionService

Have you an idea how i can solve this ? I dont understand why this was working on 2.1 community ?

Thx in advance.
1 REPLY 1

ribz33
Champ on-the-rise
Champ on-the-rise
Ok,

i modified my system to avoid to use permissionService.
No more problem with init now.

It was not a good idea to try to use permissionService in dynamicAuthority, some methods can enter in unlimited loop during execution. (ex: hasAuthority())