syncope-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francesco Chicchiriccò (JIRA) <j...@apache.org>
Subject [jira] [Created] (SYNCOPE-974) Incorrect error reported when creating notification with missing events
Date Fri, 25 Nov 2016 15:13:59 GMT
Francesco Chicchiriccò created SYNCOPE-974:
----------------------------------------------

             Summary: 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)

Mime
View raw message