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

Incorrect error reported when creating notification with missing events

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.0.2, 2.1.0
    • Component/s: core
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: