Issue Details (XML | Word | Printable)

Key: VALIDATOR-49
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: bart vandendriessche
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Validator

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

Created: 16/Feb/06 09:39 PM   Updated: 12/Nov/07 07:25 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Environment:
Operating System: All
Platform: All

Bugzilla Id: 38678


 Description  « Hide
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/%3c43F45A7E.8080902@nascom.be%3e



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no subversion log entries for this issue yet.