[SYNCOPE-937] Bad call from REST to Logic
Project: http://git-wip-us.apache.org/repos/asf/syncope/repo Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/144da88e Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/144da88e Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/144da88e Branch: refs/heads/master Commit: 144da88e87987c70f6ee52b24b31ba92eee1898c Parents: 07ff284 Author: Francesco Chicchiriccò <[email protected]> Authored: Mon Sep 12 12:22:09 2016 +0200 Committer: Francesco Chicchiriccò <[email protected]> Committed: Mon Sep 12 12:22:09 2016 +0200 ---------------------------------------------------------------------- .../java/org/apache/syncope/core/logic/SecurityQuestionLogic.java | 2 +- .../syncope/core/rest/cxf/service/SecurityQuestionServiceImpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/syncope/blob/144da88e/core/logic/src/main/java/org/apache/syncope/core/logic/SecurityQuestionLogic.java ---------------------------------------------------------------------- diff --git a/core/logic/src/main/java/org/apache/syncope/core/logic/SecurityQuestionLogic.java b/core/logic/src/main/java/org/apache/syncope/core/logic/SecurityQuestionLogic.java index 3f13a29..5bbddc4 100644 --- a/core/logic/src/main/java/org/apache/syncope/core/logic/SecurityQuestionLogic.java +++ b/core/logic/src/main/java/org/apache/syncope/core/logic/SecurityQuestionLogic.java @@ -107,7 +107,7 @@ public class SecurityQuestionLogic extends AbstractTransactionalLogic<SecurityQu } @PreAuthorize("isAnonymous() or hasRole('" + StandardEntitlement.ANONYMOUS + "')") - public SecurityQuestionTO readForUsername(final String username) { + public SecurityQuestionTO readByUser(final String username) { if (username == null) { throw new NotFoundException("Null username"); } http://git-wip-us.apache.org/repos/asf/syncope/blob/144da88e/core/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/SecurityQuestionServiceImpl.java ---------------------------------------------------------------------- diff --git a/core/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/SecurityQuestionServiceImpl.java b/core/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/SecurityQuestionServiceImpl.java index 3aa5382..570ab3a 100644 --- a/core/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/SecurityQuestionServiceImpl.java +++ b/core/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/SecurityQuestionServiceImpl.java @@ -66,7 +66,7 @@ public class SecurityQuestionServiceImpl extends AbstractServiceImpl implements @Override public SecurityQuestionTO readByUser(final String username) { - return logic.read(username); + return logic.readByUser(username); } }
