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

[Validator] ValidatorResult.getActionMap() or ValidatorResult.getActions() only contain last run dependency per field

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 38678

    Description

      When calling ValidatorResult#getActionMap() on a ValidatorResult Object
      associated with a Field which depends on several ValidatorActions, only the last
      ValidatorAction will be present in the returned Map / Iterator.

      A fix for this appears to be moving the line

      844: ValidatorResults results = new ValidatorResults();

      in the org.apache.commons.validator.Field class up to outside the dependencies
      loop, putting it as:

      835: ValidatorResults results = new ValidatorResults();

      No patch submitted for this yet and no Unit Test written. Will try to do so if
      time permits.

      This bug is also reported to the Commons mailing list at
      http://mail-archives.apache.org/mod_mbox/jakarta-commons-dev/200602.mbox/%[email protected]%3e

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            bart@nascom.be bart vandendriessche
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment