Requests with forms could be created with required fields empty

XMLWordPrintable

    • 12
    • Severity 3 - Minor
    • 244

      Issue Summary

      Required fields from a form can be empty if the issue is created through API using the public endpoint below, or through the frontend API used by JSM portal frontend.

      This also happens with a required field within a conditional section. If a section condition matches, the field within the section can be empty even if it's required.  (This is not reproducible)

      This is because:

      • The frontend API does not validate whether a form was submitted with the request
      • Neither API validates required form fields are filled in

      Steps to Reproduce

      1. Create a form and mark a field as required.
      2. Raise a ticket using API and keep the required field empty.

      Expected Results

      The API should respect the field requirement and prevent the issue creation.

      Actual Results

      The issue will be created, but the form will show the required field as empty:

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

        1. image-2024-09-09-14-43-12-551.png
          14 kB
          Nataniel Rocha
        2. image-2024-09-09-14-43-20-210.png
          14 kB
          Nataniel Rocha

            Assignee:
            Mrunal Kharod
            Reporter:
            Nataniel Rocha
            Votes:
            6 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated: