You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "tm-drtina (via GitHub)" <gi...@apache.org> on 2023/09/30 11:50:16 UTC

[GitHub] [directory-scimple] tm-drtina opened a new issue, #383: Photo resource has incorrect type in schemas endpoint

tm-drtina opened a new issue, #383:
URL: https://github.com/apache/directory-scimple/issues/383

   I'm testing my SCIM implementation against this library and getting errors because `referenceTypes` field is set, but the type is not `reference`. From my understanding of the [RFC7643](https://datatracker.ietf.org/doc/html/rfc7643) `referenceTypes` should be only set for `reference` type, not `string`.
   
   https://github.com/apache/directory-scimple/blob/66f2b9a1f01e64644404747ba8b607d6bb59a1db/scim-spec/scim-spec-schema/src/main/java/org/apache/directory/scim/spec/resources/Photo.java#L45-L47
   
   result from endpoint: (`curl http://localhost:8080/v2/Schemas` using spring boot example)
   ```
   {
     "name": "value",
     "type": "string",
     "multiValued": false,
     "description": "URL of a photo of the User.",
     "required": false,
     "caseExact": false,
     "mutability": "readWrite",
     "returned": "default",
     "uniqueness": "none",
     "referenceTypes": [
       "external"
     ]
   }
   ```
   
   Also found other instances:
   https://github.com/apache/directory-scimple/blob/66f2b9a1f01e64644404747ba8b607d6bb59a1db/scim-spec/scim-spec-schema/src/main/java/org/apache/directory/scim/spec/resources/ScimUser.java#L110-L112
   https://github.com/apache/directory-scimple/blob/66f2b9a1f01e64644404747ba8b607d6bb59a1db/scim-spec/scim-spec-schema/src/main/java/org/apache/directory/scim/spec/schema/ResourceReference.java#L55-L57


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org


Re: [I] Photo resource has incorrect type in schemas endpoint [directory-scimple]

Posted by "tm-drtina (via GitHub)" <gi...@apache.org>.
tm-drtina commented on issue #383:
URL: https://github.com/apache/directory-scimple/issues/383#issuecomment-1742805664

   Got an account in Jira, so moved the issue there: https://issues.apache.org/jira/browse/SCIMPLE-93


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org


[GitHub] [directory-scimple] tm-drtina commented on issue #383: Photo resource has incorrect type in schemas endpoint

Posted by "tm-drtina (via GitHub)" <gi...@apache.org>.
tm-drtina commented on issue #383:
URL: https://github.com/apache/directory-scimple/issues/383#issuecomment-1741749190

   I think the issue is that `type=reference` and field `ref` are switched. Group members schema:
   ```
               {
                 "name": "ref",
                 "type": "string",
                 "multiValued": false,
                 "description": "The URI of the corresponding resource ",
                 "required": false,
                 "caseExact": false,
                 "mutability": "readWrite",
                 "returned": "default",
                 "uniqueness": "none",
                 "referenceTypes": [
                   "User",
                   "Group"
                 ]
               },
               {
                 "name": "type",
                 "type": "reference",
                 "multiValued": false,
                 "description": "A label indicating the attribute's function; e.g., 'direct' or 'indirect'.",
                 "required": false,
                 "canonicalValues": [
                   "indirect",
                   "direct"
                 ],
                 "caseExact": false,
                 "mutability": "readWrite",
                 "returned": "default",
                 "uniqueness": "none"
               },
   ```
   vs. the schema:
   https://github.com/apache/directory-scimple/blob/66f2b9a1f01e64644404747ba8b607d6bb59a1db/scim-spec/scim-spec-schema/src/test/resources/schemas/urn%3Aietf%3Aparams%3Ascim%3Aschemas%3Acore%3A2.0%3AGroup.json#L35-L64


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org


Re: [I] Photo resource has incorrect type in schemas endpoint [directory-scimple]

Posted by "tm-drtina (via GitHub)" <gi...@apache.org>.
tm-drtina closed issue #383: Photo resource has incorrect type in schemas endpoint
URL: https://github.com/apache/directory-scimple/issues/383


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org