Uploaded image for project: 'Commons Validator'
  1. Commons Validator
  2. VALIDATOR-14

Validator.validate() exception handling for ValidatorException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Nightly Builds
    • None
    • None
    • None
    • Operating System: other
      Platform: PC

    • 24369

    Description

      If a validator method throws a ValidatorException, the expected behavior is
      that Validator.validate() will rethrow the exception. The actual behavior is
      that a "false" is returned instead. This masks exceptions as rule failures.

      Users of the framework need to be able to distinguish between failure to pass a
      validation rule versus an exception that occurs while executing a rule.
      Failure to pass validation is a "normal" occurrance that is correctible by
      changing the data. An exception that occurs while executing a rule is not
      normal, could be caused by a configuration problem or other system problem, and
      cannot be corrected by corrections to the data.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--testpatch.txt
          11 kB
          Arun Thomas
        2. ASF.LICENSE.NOT.GRANTED--srcpatch.txt
          2 kB
          Arun Thomas

        Activity

          People

            Unassigned Unassigned
            janet.moyer@ibx.com Janet Moyer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: