This is an automated email from the ASF dual-hosted git repository.

sgarofalo pushed a commit to branch 3_0_X
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/3_0_X by this push:
     new ed7de01fb3 return user memberships with SCIM search endpoint (#940)
ed7de01fb3 is described below

commit ed7de01fb38174d3f2fefdae040c95baddf0958a
Author: Samuel Garofalo <[email protected]>
AuthorDate: Tue Dec 17 11:17:38 2024 +0100

    return user memberships with SCIM search endpoint (#940)
---
 .../org/apache/syncope/ext/scimv2/cxf/service/AbstractSCIMService.java  | 2 +-
 .../src/test/java/org/apache/syncope/fit/core/SCIMITCase.java           | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/ext/scimv2/scim-rest-cxf/src/main/java/org/apache/syncope/ext/scimv2/cxf/service/AbstractSCIMService.java
 
b/ext/scimv2/scim-rest-cxf/src/main/java/org/apache/syncope/ext/scimv2/cxf/service/AbstractSCIMService.java
index 223d559712..61b8f7cbfa 100644
--- 
a/ext/scimv2/scim-rest-cxf/src/main/java/org/apache/syncope/ext/scimv2/cxf/service/AbstractSCIMService.java
+++ 
b/ext/scimv2/scim-rest-cxf/src/main/java/org/apache/syncope/ext/scimv2/cxf/service/AbstractSCIMService.java
@@ -192,7 +192,7 @@ abstract class AbstractSCIMService<R extends SCIMResource> {
                 sort,
                 SyncopeConstants.ROOT_REALM,
                 true,
-                false);
+                true);
 
         if (result.getLeft() > 
confManager.get().getGeneralConf().getFilterMaxResults()) {
             throw new BadRequestException(ErrorType.tooMany, "Too many results 
found");
diff --git 
a/fit/core-reference/src/test/java/org/apache/syncope/fit/core/SCIMITCase.java 
b/fit/core-reference/src/test/java/org/apache/syncope/fit/core/SCIMITCase.java
index cd4e5a6600..192ce565cf 100644
--- 
a/fit/core-reference/src/test/java/org/apache/syncope/fit/core/SCIMITCase.java
+++ 
b/fit/core-reference/src/test/java/org/apache/syncope/fit/core/SCIMITCase.java
@@ -451,6 +451,7 @@ public class SCIMITCase extends AbstractITCase {
             });
             assertNotNull(users);
             assertEquals(1, users.getTotalResults());
+            assertFalse(users.getResources().get(0).getGroups().isEmpty());
 
             // Extension User
             response = webClient().path("Users").query(

Reply via email to