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:25:38 UTC
[syncope] branch master 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 master
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/master by this push:
new 9f3b3e3 [SYNCOPE-1428] read by key not authenticated now returns 401
9f3b3e3 is described below
commit 9f3b3e39f820d6d1445206e77323b5140d744179
Author: Andrea Patricelli <an...@apache.org>
AuthorDate: Fri Jan 25 16:25:00 2019 +0100
[SYNCOPE-1428] read by key not authenticated now returns 401
---
.../org/apache/syncope/core/rest/cxf/service/AbstractServiceImpl.java | 4 ----
1 file changed, 4 deletions(-)
diff --git a/core/idrepo/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/AbstractServiceImpl.java b/core/idrepo/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/AbstractServiceImpl.java
index be1acfe..73eaf5b 100644
--- a/core/idrepo/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/AbstractServiceImpl.java
+++ b/core/idrepo/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/AbstractServiceImpl.java
@@ -44,7 +44,6 @@ import org.apache.syncope.common.rest.api.service.JAXRSService;
import org.apache.syncope.common.rest.api.Preference;
import org.apache.syncope.common.rest.api.RESTHeaders;
import org.apache.syncope.core.persistence.api.dao.AnyDAO;
-import org.apache.syncope.core.persistence.api.dao.NotFoundException;
import org.apache.syncope.core.persistence.api.search.SearchCondVisitor;
import org.apache.syncope.core.persistence.api.dao.search.OrderByClause;
import org.apache.syncope.core.persistence.api.dao.search.SearchCond;
@@ -70,9 +69,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;