Repository: syncope
Updated Branches:
  refs/heads/2_0_X 7c18a3331 -> 320f37d49
  refs/heads/master 44a818844 -> 65f19aaf5


Follow-up fix from SCIM


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/65f19aaf
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/65f19aaf
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/65f19aaf

Branch: refs/heads/master
Commit: 65f19aaf58fac746ed43ae16af7e9a33a1f10c02
Parents: 44a8188
Author: Francesco Chicchiriccò <[email protected]>
Authored: Wed Dec 20 13:43:08 2017 +0100
Committer: Francesco Chicchiriccò <[email protected]>
Committed: Wed Dec 20 13:43:08 2017 +0100

----------------------------------------------------------------------
 .../org/apache/syncope/ext/scimv2/cxf/SCIMExceptionMapper.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/65f19aaf/ext/scimv2/scim-rest-cxf/src/main/java/org/apache/syncope/ext/scimv2/cxf/SCIMExceptionMapper.java
----------------------------------------------------------------------
diff --git 
a/ext/scimv2/scim-rest-cxf/src/main/java/org/apache/syncope/ext/scimv2/cxf/SCIMExceptionMapper.java
 
b/ext/scimv2/scim-rest-cxf/src/main/java/org/apache/syncope/ext/scimv2/cxf/SCIMExceptionMapper.java
index 98a21ef..9ca2321 100644
--- 
a/ext/scimv2/scim-rest-cxf/src/main/java/org/apache/syncope/ext/scimv2/cxf/SCIMExceptionMapper.java
+++ 
b/ext/scimv2/scim-rest-cxf/src/main/java/org/apache/syncope/ext/scimv2/cxf/SCIMExceptionMapper.java
@@ -200,7 +200,7 @@ public class SCIMExceptionMapper implements 
ExceptionMapper<Exception> {
         ErrorType scimType = null;
         if (hType.name().startsWith("Invalid") || hType == 
ClientExceptionType.RESTValidation) {
             scimType = ErrorType.invalidValue;
-        } else if (hType == ClientExceptionType.DataIntegrityViolation) {
+        } else if (hType == ClientExceptionType.EntityExists) {
             scimType = ErrorType.uniqueness;
         }
 

Reply via email to