[
https://issues.apache.org/jira/browse/SYNCOPE-974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15696168#comment-15696168
]
ASF subversion and git services commented on SYNCOPE-974:
---------------------------------------------------------
Commit 672be178c3748e899892e6efd32e9d08b9baf7fe in syncope's branch
refs/heads/2_0_X from [~ilgrosso]
[ https://git-wip-us.apache.org/repos/asf?p=syncope.git;h=672be17 ]
[SYNCOPE-974] Moving validity checks in the NotificationDataBinderImpl before
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ò
> 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":"[email protected]",
> "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)