Uploaded image for project: 'Jira Server and Data Center'
  1. Jira Server and Data Center
  2. JRASERVER-8100

Exception thrown by validate() method of custom Validator handled as a server error

    XMLWordPrintable

Details

    Description

      I've made a custom Validator for workflow transitions that checks that a given field isn't left empty.
      As required, the validate() method of the Validator throws an InvalidInputException when the user leaves the field empty.

      Problem: this exceptions is treated as a server error by JIRA and written in the log files and on the console!

      Bad user input is not a server error, it is a normal use case... I'd like my validator to behave just like a normal date/time or username validator.

      Thanks for any help...
      Rémy.

      Attachments

        1. ValueValidator.java
          2 kB
          Rémy Mouton

        Issue Links

          Activity

            People

              Unassigned Unassigned
              e5e14e4e5311 Rémy Mouton
              Votes:
              0 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: