You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@syncope.apache.org by "Francesco Chicchiriccò (JIRA)" <ji...@apache.org> on 2016/11/25 16:03:58 UTC
[jira] [Resolved] (SYNCOPE-974) Incorrect error reported when
creating notification with missing events
[ https://issues.apache.org/jira/browse/SYNCOPE-974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Francesco Chicchiriccò resolved SYNCOPE-974.
--------------------------------------------
Resolution: Fixed
> 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ò
> Assignee: Francesco Chicchiriccò
> 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)