Open indeewari opened 5 months ago
@indeewari, thank you for reporting the issue.
With the current user store deployment architecture, user store deployment is happening asynchronously. Hence there is no way to validate the connection at the time of add/updating the userstore. We will have to revamp the userstore architecture to properly fix this issue.
However, for JDBC userstores, there is a test connection button in the UI. This mitigate the concern you have mentioned. Hence we can consider onboarding similar capability for the LDAP based userstores as well.
Considering the IS 7.0 timelines, we are not adding this for the IS 7.0 release.
Describe the issue: When a user makes connection modifications to the secondary user store and tap Update button, the page populates the n-1 th values, which shows like user's modification is not applied. User have to refresh the page to see the real values applied to the connection.
Update Curl
curl 'https://localhost:9443/t/carbon.super/api/server/v1/userstores/QXBhY2hlRFMgMi4wLjA' \ -X 'PATCH' \ -H 'Access-Control-Allow-Origin: https://localhost:9443/t/carbon.super/console' \ -H 'Accept: application/json' \ -H 'Referer;' \ -H 'Authorization: Bearer 297f1364-e780-3728-8c69-9d32a6211f8e' \ -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36' \ -H 'Content-Type: application/json' \ --data-raw '[{"operation":"REPLACE","path":"/properties/StartTLSEnabled","value":"false"},{"operation":"REPLACE","path":"/properties/ConnectionURL","value":"ldap://localhost:10389"},{"operation":"REPLACE","path":"/properties/ConnectionName","value":"uid=admin,ou=sys"}]' \ --compressed \ --insecure
PATCH response
{ "name": "ConnectionName", "value": "uid=admin,ou=sys" }
GET (https://localhost:9443/t/carbon.super/api/server/v1/userstores/QXBhY2hlRFMgMi4wLjA) response of after the update
{ "name": "ConnectionName", "value": "uid=admin,ou=system" },
Log
GET response after page refresh
{ "name": "ConnectionName", "value": "uid=admin,ou=sys" }
How to reproduce:
Expected behavior:
Environment information (Please complete the following information; remove any unnecessary fields) :
Optional Fields
Related issues:
Suggested labels: