Uploaded image for project: 'XNAT'
  1. XNAT
  2. XNAT-6950

Event subscriptions are modified on a PUT even if validation fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.8.4
    • 1.8.3
    • Event Services
    • None
    • Rank:
      0|0hzycd:zzzr07zzzzxzxi

    Description

      Related to XNAT-5936, I discovered that editing an existing event subscription can inadvertently save invalid values, even when a validation error is returned.

      To reproduce:

      1. Create a valid Event Subscription and save it.
      2. Then edit the subscription and change the value of the JSON Path payload filter to something invalid. (i.e. (@.modality==MR) without enclosing quotes).
      3. Then click "OK" to save the subscription. You will get an error dialog saying that the validation failed.
      4. Close the error dialog AND close the edit dialog, without further changes
      5. Refresh the Event Service table (this may need to be done manually) and notice that the subscription is now flagged as "INVALID"
      6. Edit the subscription and notice that the invalid JSON Path payload filter was saved regardless of the error

      Attachments

        Issue Links

          Activity

            People

              kelseym@wustl.edu Matt Kelsey
              hortonw@wustl.edu Will Horton
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: