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/320f37d4 Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/320f37d4 Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/320f37d4 Branch: refs/heads/2_0_X Commit: 320f37d49d99b8d8831e79a1950deb6c84d26efc Parents: 7c18a33 Author: Francesco Chicchiriccò <ilgro...@apache.org> Authored: Wed Dec 20 13:43:08 2017 +0100 Committer: Francesco Chicchiriccò <ilgro...@apache.org> Committed: Wed Dec 20 13:43:18 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/320f37d4/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; }