Issue:When upgrading from version 5.1 to 5.2 or higher, external authentication fails with the following error on the login screen: | [toc] |
ERROR ContextLoader,localhost-startStop-1:307 - Context initialization failed org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'abstractExternalProcessor' defined in ServletContext resource [/WEB-INF/applicationContext-externalAuth-LDAP.xml]: Could not resolve placeholder 'bean.objectPermissionService'
The implementation of the objectPermissionService bean changed from 5.1 to 5.2 to accomodate changes in the REST API.
Resolution:
The objectPermissionService bean must be called directly instead of indirectly. To do this, change the reference to the bean in your authentication configuration file
from:
<property name="objectPermissionService" ref="${bean.objectPermissionService}"></property>
to:
<property name="objectPermissionService" ref="objectPermissionService"></property>
For example:
<bean id="abstractExternalProcessor" class="com.jaspersoft.jasperserver.api.security.externalAuth.processors.AbstractExternalUserProcessor" abstract="true"> <property name="repositoryService" ref="${bean.repositoryService}"></property> <property name="userAuthorityService" ref="${bean.userAuthorityService}"></property> <property name="tenantService" ref="${bean.tenantService}"></property> <property name="profileAttributeService" ref="profileAttributeService"></property> <property name="objectPermissionService" ref="objectPermissionService"></property> </bean>
If you are upgrading to 5.5 and you added code customizations which use the objectPermissionService you may also need to modify the bean:
from:
to:
Recommended Comments
There are no comments to display.