[
https://issues.apache.org/jira/browse/SYNCOPE-1819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17844327#comment-17844327
]
Francesco Chicchiriccò commented on SYNCOPE-1819:
-------------------------------------------------
The docs of the given REST endpoint do not include passing name values, only
key:
https://github.com/apache/syncope/blob/3_0_X/common/idrepo/rest-api/src/main/java/org/apache/syncope/common/rest/api/service/AnyObjectService.java#L62
> API search of any objects by name returns wrong empty result
> ------------------------------------------------------------
>
> Key: SYNCOPE-1819
> URL: https://issues.apache.org/jira/browse/SYNCOPE-1819
> Project: Syncope
> Issue Type: Bug
> Components: core
> Affects Versions: 3.0.6
> Reporter: Andrea Patricelli
> Priority: Major
> Fix For: 3.0.7, 4.0.0
>
>
> Searching any objects by name like this in the playground environment
> {code:java}
> curl -X 'GET' \
>
> 'https://syncope-vm2.apache.org/syncope/rest/anyObjects/Canon%20MF%208030cn' \
> -H 'accept: */*' \
> -H 'X-Syncope-Domain: Master' \
> -H 'Authorization: Basic YWRtaW46cGFzc3dvcmQ='{code}
> returns bad 404 result instead of the any object with name "Canon MF 8030cn".
> Search by key still works and the same issue happens on Json persistence.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)