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 DB088200BC7 for ; Fri, 25 Nov 2016 16:56:02 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D9B53160AFA; Fri, 25 Nov 2016 15:56:02 +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 164FF160B1D for ; Fri, 25 Nov 2016 16:56:01 +0100 (CET) Received: (qmail 82547 invoked by uid 500); 25 Nov 2016 15:56:01 -0000 Mailing-List: contact dev-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 dev@syncope.apache.org Received: (qmail 82312 invoked by uid 99); 25 Nov 2016 15:56:01 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Nov 2016 15:56:01 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id F41072C03E2 for ; Fri, 25 Nov 2016 15:56:00 +0000 (UTC) Date: Fri, 25 Nov 2016 15:56:00 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: dev@syncope.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SYNCOPE-974) Incorrect error reported when creating notification with missing events MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 25 Nov 2016 15:56:03 -0000 [ https://issues.apache.org/jira/browse/SYNCOPE-974?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D156= 96169#comment-15696169 ]=20 ASF subversion and git services commented on SYNCOPE-974: --------------------------------------------------------- Commit fba91e145593bd8ac44af74dd5fa2820ea509a8e in syncope's branch refs/he= ads/master from [~ilgrosso] [ https://git-wip-us.apache.org/repos/asf?p=3Dsyncope.git;h=3Dfba91e1 ] [SYNCOPE-974] Moving validity checks in the NotificationDataBinderImpl befo= re the NotificationManager gets involved and pollutes the error reporting > Incorrect error reported when creating notification with missing events > ----------------------------------------------------------------------- > > Key: SYNCOPE-974 > URL: https://issues.apache.org/jira/browse/SYNCOPE-974 > Project: Syncope > Issue Type: Bug > Components: core > Affects Versions: 2.0.1 > Reporter: Francesco Chicchiricc=C3=B2 > Assignee: Francesco Chicchiricc=C3=B2 > Fix For: 2.0.2, 2.1.0 > > > When creating a Notification instance with the following JSON payload: > {code} > { > "recipientAttrName":"email", > "selfAsRecipient":false, > "sender":"sender@ukr.net", > "subject":"subject 21", > "template":"requestPasswordReset", > "traceLevel":"ALL", > "active":true > } > {code} > an HTTP 500 error is reported with the following message: > {code} > InvalidStateException: The field "template" of instance "JPANotification[= a96fff27-1b5d-4167-afff-271b5db1674f]" contained a null value; the metadata= for this field specifies that nulls are illegal. > {code} > while instead an HTTP 400 with message > {code} > RequiredValuesMissing [events] > {code} > is expected. -- This message was sent by Atlassian JIRA (v6.3.4#6332)