This is an automated email from the ASF dual-hosted git repository.
ilgrosso pushed a commit to branch 4_1_X
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/4_1_X by this push:
new 8fe152ed8f [SYNCOPE-1985] Fix typo in AnyTypeKeyComparator causing
incorrect AnyType ordering (#1460)
8fe152ed8f is described below
commit 8fe152ed8ff5ffb055a176b270104cafd8e61935
Author: alberto bogi <[email protected]>
AuthorDate: Fri Jul 17 15:19:50 2026 +0200
[SYNCOPE-1985] Fix typo in AnyTypeKeyComparator causing incorrect AnyType
ordering (#1460)
---
.../java/org/apache/syncope/client/console/rest/AnyTypeRestClient.java | 2 +-
.../java/org/apache/syncope/client/enduser/rest/AnyTypeRestClient.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git
a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/rest/AnyTypeRestClient.java
b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/rest/AnyTypeRestClient.java
index ae38b0d7c2..364c49d39c 100644
---
a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/rest/AnyTypeRestClient.java
+++
b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/rest/AnyTypeRestClient.java
@@ -80,7 +80,7 @@ public class AnyTypeRestClient extends BaseRestClient {
if (AnyTypeKind.GROUP.name().equals(o1)) {
return -1;
}
- if (AnyTypeKind.GROUP.name().equals(2)) {
+ if (AnyTypeKind.GROUP.name().equals(o2)) {
return 1;
}
return ObjectUtils.compare(o1, o2);
diff --git
a/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/rest/AnyTypeRestClient.java
b/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/rest/AnyTypeRestClient.java
index 17843a9ac3..eff1733387 100644
---
a/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/rest/AnyTypeRestClient.java
+++
b/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/rest/AnyTypeRestClient.java
@@ -80,7 +80,7 @@ public class AnyTypeRestClient extends BaseRestClient {
if (AnyTypeKind.GROUP.name().equals(o1)) {
return -1;
}
- if (AnyTypeKind.GROUP.name().equals(2)) {
+ if (AnyTypeKind.GROUP.name().equals(o2)) {
return 1;
}
return ObjectUtils.compare(o1, o2);