You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2016/10/05 09:51:26 UTC

[3/3] syncope git commit: [SYNCOPE-877] Using javax.ws.rs.NotFoundException rather than org.apache.syncope.core.persistence.dao.NotFoundException for global policies so that RestServiceExceptionMapper is not involved and nothing is logged

[SYNCOPE-877] Using javax.ws.rs.NotFoundException rather than org.apache.syncope.core.persistence.dao.NotFoundException for global policies so that RestServiceExceptionMapper is not involved and nothing is logged


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

Branch: refs/heads/1_2_X
Commit: 844d37e24378cf6f34550f56398ca4012b22e157
Parents: 747075f
Author: Francesco Chicchiricc� <il...@apache.org>
Authored: Wed Oct 5 11:50:47 2016 +0200
Committer: Francesco Chicchiricc� <il...@apache.org>
Committed: Wed Oct 5 11:51:04 2016 +0200

----------------------------------------------------------------------
 .../apache/syncope/core/rest/controller/PolicyController.java  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/844d37e2/core/src/main/java/org/apache/syncope/core/rest/controller/PolicyController.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/syncope/core/rest/controller/PolicyController.java b/core/src/main/java/org/apache/syncope/core/rest/controller/PolicyController.java
index 9136fdd..025e719 100644
--- a/core/src/main/java/org/apache/syncope/core/rest/controller/PolicyController.java
+++ b/core/src/main/java/org/apache/syncope/core/rest/controller/PolicyController.java
@@ -111,7 +111,7 @@ public class PolicyController extends AbstractTransactionalController<AbstractPo
     public PasswordPolicyTO getGlobalPasswordPolicy() {
         PasswordPolicy policy = policyDAO.getGlobalPasswordPolicy();
         if (policy == null) {
-            throw new NotFoundException("No password policy found");
+            throw new javax.ws.rs.NotFoundException("No global password policy found");
         }
 
         return (PasswordPolicyTO) binder.getPolicyTO(policy);
@@ -121,7 +121,7 @@ public class PolicyController extends AbstractTransactionalController<AbstractPo
     public AccountPolicyTO getGlobalAccountPolicy() {
         AccountPolicy policy = policyDAO.getGlobalAccountPolicy();
         if (policy == null) {
-            throw new NotFoundException("No account policy found");
+            throw new javax.ws.rs.NotFoundException("No global account policy found");
         }
 
         return (AccountPolicyTO) binder.getPolicyTO(policy);
@@ -131,7 +131,7 @@ public class PolicyController extends AbstractTransactionalController<AbstractPo
     public SyncPolicyTO getGlobalSyncPolicy() {
         SyncPolicy policy = policyDAO.getGlobalSyncPolicy();
         if (policy == null) {
-            throw new NotFoundException("No sync policy found");
+            throw new javax.ws.rs.NotFoundException("No global sync policy found");
         }
 
         return (SyncPolicyTO) binder.getPolicyTO(policy);