mdarifmustafa / vt-middleware

Automatically exported from code.google.com/p/vt-middleware
0 stars 0 forks source link

vt-password: Wrong CharacterCharacteristicsRule validation message #155

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create CharacterCharacteristicsRule and add to it 4 character rules: 
DigitCharacterRule, NonAlphanumericCharacterRule, UppercaseCharacterRule, 
LowercaseCharacterRule
2. Set numberOfCharacteristics to 3 on CharacterCharacteristicsRule 
3. Validate blank password.

What is the expected output? What do you see instead?

Validation messages is 'Password matches 0 of 3 character rules, but 4 are 
required.' 
but should be 
'Password matches 0 of 4 character rules, but 3 are required.'

What version of the product are you using? On what operating system?
Version 3.1.1 on Windows, Linux

Please provide any additional information below.
Bug is in createRuleResultDetailParameters method of class 
CharacterCharacteristicsRule. Swapping lines 'minimumRequired' with 'ruleCount' 
should fixe bug.

Original issue reported on code.google.com by kosmala....@gmail.com on 28 Apr 2013 at 2:41

GoogleCodeExporter commented 8 years ago
This appears to be a duplicate of vt-password 138:
https://code.google.com/p/vt-middleware/issues/detail?id=138

Please try version 3.1.2 and confirm this issue is fixed.

Original comment by dfis...@gmail.com on 28 Apr 2013 at 10:18

GoogleCodeExporter commented 8 years ago

Original comment by dfis...@gmail.com on 28 Apr 2013 at 10:18

GoogleCodeExporter commented 8 years ago

Original comment by dfis...@gmail.com on 3 Aug 2013 at 2:19