Closed ShanikaWickramasinghe closed 2 weeks ago
Same issue observed when using both the back slash and forward slash in the username evennthough in the username regex it is mentioned as a allowed character
This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!
Suggested Labels Affected : 5.8.0- alpha3 Severity: Major Priority: Critical Component: SCIM2 Type-Bug
Environment Linux, EmbeddedLDAP UserStore
Steps to Reproduce the Issue
<Property name="UsernameJavaRegEx">[a-zA-Z0-9._\-|//]{3,30}$</Property>
4.Try the sample Request to provision a user anonymously including special characters in the usernamecurl -v -k --data '{"schemas":[],"name":{"familyName":"Johnson","givenName":"Alex"},"userName":"alex2//ferdinanz","password":"alexwso2","emails":[{"primary":true,"value":"alex.j@gmail.com","type":"home"},{"value":"alex_j@wso2.com","type":"work"}],"EnterpriseUser":{"employeeNumber":"123A","manager":{"value":"Taylor"}}}' --header "Content-Type:application/json" https://is580.qa.com:443/scim2/Me
Will get the following response as saying scim is not enabled. This is a wrong information to the user because SCIM is enabled in the system and the request fails due to the special character.
{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Cannot add user through scim to user store . SCIM is not enabled for user store ALEX2","status":"500"}