Skip to content

Build LOWERS and PASSWORD_LOWERS from their own char arrays - #932

Open
VolodymyrLinuxovich wants to merge 1 commit into
ESAPI:developfrom
VolodymyrLinuxovich:issue-249
Open

VolodymyrLinuxovich wants to merge 1 commit into
ESAPI:developfrom
VolodymyrLinuxovich:issue-249

Conversation

@VolodymyrLinuxovich

Copy link
Copy Markdown

EncoderConstants.LOWERS was built from CHAR_PASSWORD_SPECIALS. So it held the nine password specials and none of the lowercase letters. PASSWORD_LOWERS had a similar mistake. It was built from CHAR_ALPHANUMERICS, so it held every letter and digit.

Both sets are now built from their own arrays. I also fixed the Javadoc on CHAR_LOWERS, which said a-b instead of a-z.

The new EncoderConstantsTest checks that every set holds exactly the chars of its array. The two tests for these sets fail on develop and pass with this change. StringUtilitiesTest and the encoder tests still pass. So do the authenticator and randomizer tests.

Closes #249

LOWERS was built from CHAR_PASSWORD_SPECIALS and PASSWORD_LOWERS from
CHAR_ALPHANUMERICS. Use CHAR_LOWERS and CHAR_PASSWORD_LOWERS instead and
fix the a-b Javadoc on CHAR_LOWERS. Add EncoderConstantsTest to check
that every set matches its array.

Closes ESAPI#249
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EncoderConstants.LOWERS consists of a set of EncoderConstants.CHAR_PASSWORD_SPECIALS.

1 participant