You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by an...@apache.org on 2019/01/25 15:04:50 UTC
[syncope] branch 2_0_X updated: [SYNCOPE-1428] read by key not
authenticated now returns 401
This is an automated email from the ASF dual-hosted git repository.
andreapatricelli pushed a commit to branch 2_0_X
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/2_0_X by this push:
new 3150b5b [SYNCOPE-1428] read by key not authenticated now returns 401
3150b5b is described below
commit 3150b5bd658ac9cec7bccdf2e1338f36e7b3ca45
Author: Andrea Patricelli <an...@apache.org>
AuthorDate: Fri Jan 25 16:02:55 2019 +0100
[SYNCOPE-1428] read by key not authenticated now returns 401
---
.../org/apache/syncope/core/rest/cxf/service/AbstractServiceImpl.java | 3 ---
1 file changed, 3 deletions(-)
diff --git a/core/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/AbstractServiceImpl.java b/core/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/AbstractServiceImpl.java
index caef5d8..1d3642a 100644
--- a/core/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/AbstractServiceImpl.java
+++ b/core/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/AbstractServiceImpl.java
@@ -71,9 +71,6 @@ abstract class AbstractServiceImpl implements JAXRSService {
String actualKey = pretendingKey;
if (!SyncopeConstants.UUID_PATTERN.matcher(pretendingKey).matches()) {
actualKey = dao.findKey(pretendingKey);
- if (actualKey == null) {
- throw new NotFoundException("User, Group or Any Object for " + pretendingKey);
- }
}
return actualKey;