[#12971] - sample-applicationContext-externalAuth-LDAP.xml

Category:
Bug report
Priority:
Normal
Status:
New
Project: Severity:
Block
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:
1

the Sample/Template \jasperreports-server-cp-7.5.0-bin\samples\externalAuth-sample-config\sample-applicationContext-externalAuth-LDAP.xml is broken since Version 7.2 (as reported here: https://community.jaspersoft.com/questions/1138586/jasperreports-ldap-se...)

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'proxyBasicProcessingFilter' defined in ServletContext resource [/WEB-INF/applicationContext-externalAuth-LDAP.
xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'authenticationManager' of bean class [com.jaspersoft.jasperserver.api.security.externalAuth.ExternalAuthBasicProcessingFilter]: Bean property 'authenticationManager' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

changing <property name="authenticationManager" ref="ldapAuthenticationManager"/>
to
<bean id="proxyBasicProcessingFilter"
class="com.jaspersoft.jasperserver.api.security.externalAuth.ExternalAuthBasicProcessingFilter" parent="basicProcessingFilter">
<constructor-arg index="0" ref="ldapAuthenticationManager"/>
<property name="externalDataSynchronizer" ref="externalDataSynchronizer"/>
</bean>
is a solution

v7.5.0
ExternalAuth-LDAP
berichte's picture
Joined: Mar 2 2017 - 11:05pm
Last seen: 1 month 3 weeks ago
Feedback