[ 
https://issues.apache.org/jira/browse/SYNCOPE-974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15696169#comment-15696169
 ] 

ASF subversion and git services commented on SYNCOPE-974:
---------------------------------------------------------

Commit fba91e145593bd8ac44af74dd5fa2820ea509a8e in syncope's branch 
refs/heads/master from [~ilgrosso]
[ https://git-wip-us.apache.org/repos/asf?p=syncope.git;h=fba91e1 ]

[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)

Reply via email to