Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Searching groups on a non existing application result in 500 error #776

Open
CChemin opened this issue Dec 23, 2022 · 0 comments · May be fixed by #833
Open

🐛 Searching groups on a non existing application result in 500 error #776

CChemin opened this issue Dec 23, 2022 · 0 comments · May be fixed by #833
Assignees
Labels
bug Something isn't working ldap store concerns the ldap store provider

Comments

@CChemin
Copy link
Contributor

CChemin commented Dec 23, 2022

When searching groups on a non existing application 500 is returned with error :

fr.insee.sugoi.model.exceptions.StoreException: search failed
        at fr.insee.sugoi.store.ldap.LdapReaderStore.searchOnLdap(LdapReaderStore.java:345)
        at fr.insee.sugoi.store.ldap.LdapReaderStore.searchGroups(LdapReaderStore.java:191)
        at fr.insee.sugoi.core.service.impl.GroupServiceImpl.findByProperties(GroupServiceImpl.java:146)
        at fr.insee.sugoi.services.controller.GroupController.getGroups(GroupController.java:116)
....
Caused by: com.unboundid.ldap.sdk.LDAPSearchException: Unable to perform the search because base entry 'ou=applitest2_Objets,ou=applitest2,ou=Applications,o=insee,c=fr' does not exist in the server.
        at com.unboundid.ldap.sdk.LDAPConnection.search(LDAPConnection.java:3994)
        at fr.insee.sugoi.store.ldap.LdapReaderStore.searchOnLdap(LdapReaderStore.java:330)

for the example of : /realms/domaine1/applications/applitest2/groups on the embedded test server
An existence check of the app should be done before requesting the ldap. Otherwise a check on groups might be done in the controller.

@CChemin CChemin added bug Something isn't working ldap store concerns the ldap store provider labels Dec 23, 2022
@fjr3o6 fjr3o6 self-assigned this Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ldap store concerns the ldap store provider
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants