You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
LDAP-profile WAR fails to start after Spring 7 upgrade due to missing entityManager bean #12728
The application starts Tomcat and begins Spring/Hibernate initialization successfully, but fails while creating the Spring Security filter chain. The LDAP security configuration references filters that depend on an entityManager bean, but the LDAP geostore-spring-security.xml does not define that bean.
mapstore.war built with ldap profiles, fails to load with the following Error. error.log
How to reproduce
Build with profiles: ldap,printing, > Run with valid ldap.properties + ldap setup.
Expected Result
Mapstore should run with ldap enabled profiles.
Current Result
Mapstore fails to load, Error 404. Check error.log above.
Do not report security vulnerabilities in public issues.
If you believe you have found a vulnerability in MapStore, please use GitHub private vulnerability reporting or contact the security address listed in SECURITY.md.
Reproduced on master. The cause is the Spring 7 upgrade (#12428): it added depends-on="entityManager" to the token filters in both the db and ldap security configs, but added the entityManager bean definition only to the db configs. So the ldap configs reference a bean that is never defined.
Two notes for the fix:
It belongs in the source config files, not the deployed WAR.
There are two ldap files that need it: product/config/ldap/geostore-spring-security-ldap.xml and web/src/config/ldap/geostore-spring-security-ldap.xml.
Opened #12729 with the fix. Tested against the acme-ldap server from the docs: login as bill/hello works with the ADMIN role.
Activity
offtherailz commentedon Jul 24, 2026
Reproduced on master. The cause is the Spring 7 upgrade (#12428): it added depends-on="entityManager" to the token filters in both the db and ldap security configs, but added the entityManager bean definition only to the db configs. So the ldap configs reference a bean that is never defined.
Two notes for the fix:
product/config/ldap/geostore-spring-security-ldap.xmlandweb/src/config/ldap/geostore-spring-security-ldap.xml.Opened #12729 with the fix. Tested against the acme-ldap server from the docs: login as bill/hello works with the ADMIN role.
Fix #12728: add missing entityManager bean to LDAP security config (#…
Fix geosolutions-it#12728: add missing entityManager bean to LDAP sec…
Fix geosolutions-it#12728: add missing entityManager bean to LDAP sec…