Uploaded image for project: 'Syncope'
  1. Syncope
  2. SYNCOPE-974

Incorrect error reported when creating notification with missing events

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.1
    • 2.0.2, 2.1.0
    • core
    • None

    Description

      When creating a Notification instance with the following JSON payload:

      {
      "recipientAttrName":"email",
      "selfAsRecipient":false,
      "sender":"sender@ukr.net",
      "subject":"subject 21",
      "template":"requestPasswordReset",
      "traceLevel":"ALL",
      "active":true
      }
      

      an HTTP 500 error is reported with the following message:

      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.
      

      while instead an HTTP 400 with message

      RequiredValuesMissing [events]
      

      is expected.

      Attachments

        Activity

          People

            ilgrosso Francesco Chicchiriccò
            ilgrosso Francesco Chicchiriccò
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: