Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DEA3F200CAD for ; Wed, 28 Jun 2017 10:49:01 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DD4FF160BFA; Wed, 28 Jun 2017 08:49:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2F22B160BE8 for ; Wed, 28 Jun 2017 10:49:01 +0200 (CEST) Received: (qmail 74641 invoked by uid 500); 28 Jun 2017 08:48:59 -0000 Mailing-List: contact commits-help@syncope.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@syncope.apache.org Delivered-To: mailing list commits@syncope.apache.org Received: (qmail 74626 invoked by uid 99); 28 Jun 2017 08:48:59 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Jun 2017 08:48:59 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 064C4DFA28; Wed, 28 Jun 2017 08:48:59 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: ilgrosso@apache.org To: commits@syncope.apache.org Date: Wed, 28 Jun 2017 08:48:59 -0000 Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: [1/2] syncope git commit: Better error reporting in case of AnyObject search query without archived-at: Wed, 28 Jun 2017 08:49:02 -0000 Repository: syncope Updated Branches: refs/heads/2_0_X 11a428cfb -> d87f829d6 refs/heads/master f09caa082 -> 8ae693218 Better error reporting in case of AnyObject search query without Project: http://git-wip-us.apache.org/repos/asf/syncope/repo Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/d87f829d Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/d87f829d Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/d87f829d Branch: refs/heads/2_0_X Commit: d87f829d6e8b6073884a3da096f89906a7608b85 Parents: 11a428c Author: Francesco Chicchiriccò Authored: Wed Jun 28 10:48:42 2017 +0200 Committer: Francesco Chicchiriccò Committed: Wed Jun 28 10:48:42 2017 +0200 ---------------------------------------------------------------------- .../syncope/core/rest/cxf/service/AnyObjectServiceImpl.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/syncope/blob/d87f829d/core/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/AnyObjectServiceImpl.java ---------------------------------------------------------------------- diff --git a/core/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/AnyObjectServiceImpl.java b/core/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/AnyObjectServiceImpl.java index c5ae33e..ba7334b 100644 --- a/core/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/AnyObjectServiceImpl.java +++ b/core/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/AnyObjectServiceImpl.java @@ -18,12 +18,13 @@ */ package org.apache.syncope.core.rest.cxf.service; -import javax.ws.rs.BadRequestException; import org.apache.commons.lang3.StringUtils; +import org.apache.syncope.common.lib.SyncopeClientException; import org.apache.syncope.common.lib.patch.AnyObjectPatch; import org.apache.syncope.common.lib.search.SpecialAttr; import org.apache.syncope.common.lib.to.AnyObjectTO; import org.apache.syncope.common.lib.to.PagedResult; +import org.apache.syncope.common.lib.types.ClientExceptionType; import org.apache.syncope.common.rest.api.beans.AnyQuery; import org.apache.syncope.common.rest.api.service.AnyObjectService; import org.apache.syncope.core.logic.AbstractAnyLogic; @@ -54,7 +55,9 @@ public class AnyObjectServiceImpl extends AbstractAnyService