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
the valid patch operation { "schemas": [ "urn:ietf:params:scim:api:messages:2.0:PatchOp" ], "Operations": [ { "op":"remove", "path":"urn:sap:cloud:scim:schemas:extension:custom:2.0:rus:ChannelPersonalization:User:productGroup[value eq \"ProductGroupToRemove\"]" } ] } fails with { "status": "400", "scimType": "invalidPath", "schemas": [ "urn:ietf:params:scim:api:messages:2.0:Error" ], "detail": "Attribute with name 'urn:ietf:params:scim:schemas:core:2.0:User:urn:sap:cloud:scim:schemas:extension:custom:2.0:rus:ChannelPersonalization:User:productGroup' does not exist" }
but the path is perfectly valid, as it works in my other calls for Patch add/replace/remove with the exact same path WITHOUT the [value eq "ProductGroupToRemove"].
So what happens here, is that PathAttributeExistenceValidator class fails, because schemaAPI.getComplexAttributePath(fullAttrNotation) delivers an empty set.
This happens, because in SchemasCallback.getComplexAttributePath the attr path splitter is COMPLEX_ATTRIBUTE_DELIMETER_REGEX, which splits this array in the unexpected:
["User:urn:sap:cloud:scim:schemas:extension:custom:2", "0:rus:ChannelPersonalization:User:productGroup"].
.
P.S.
There is also no workaround possible, as i cannot change the custom schema extension prefix e.g., as this is predefined by scimono and if using a different urn here, other functions fail.
The text was updated successfully, but these errors were encountered:
Hi,
the valid patch operation
{ "schemas": [ "urn:ietf:params:scim:api:messages:2.0:PatchOp" ], "Operations": [ { "op":"remove", "path":"urn:sap:cloud:scim:schemas:extension:custom:2.0:rus:ChannelPersonalization:User:productGroup[value eq \"ProductGroupToRemove\"]" } ] }
fails with{ "status": "400", "scimType": "invalidPath", "schemas": [ "urn:ietf:params:scim:api:messages:2.0:Error" ], "detail": "Attribute with name 'urn:ietf:params:scim:schemas:core:2.0:User:urn:sap:cloud:scim:schemas:extension:custom:2.0:rus:ChannelPersonalization:User:productGroup' does not exist" }
but the path is perfectly valid, as it works in my other calls for Patch add/replace/remove with the exact same path WITHOUT the [value eq "ProductGroupToRemove"].
So what happens here, is that PathAttributeExistenceValidator class fails, because
schemaAPI.getComplexAttributePath(fullAttrNotation)
delivers an empty set.This happens, because in SchemasCallback.getComplexAttributePath the attr path splitter is COMPLEX_ATTRIBUTE_DELIMETER_REGEX, which splits this array in the unexpected:
["User:urn:sap:cloud:scim:schemas:extension:custom:2", "0:rus:ChannelPersonalization:User:productGroup"].
.
P.S.
There is also no workaround possible, as i cannot change the custom schema extension prefix e.g., as this is predefined by scimono and if using a different urn here, other functions fail.
The text was updated successfully, but these errors were encountered: