Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON parsing fails for empty JSON arrays. #48

Closed
imulab opened this issue Feb 24, 2020 · 0 comments
Closed

JSON parsing fails for empty JSON arrays. #48

imulab opened this issue Feb 24, 2020 · 0 comments
Assignees
Labels
Milestone

Comments

@imulab
Copy link
Owner

imulab commented Feb 24, 2020

Defined custom resource:

{
  "name": "default",
  "description": "Default AbsurdLab Password Control Policy",
  "maxLength": 32,
  "minLength": 8,
  "minAlphas": 2,
  "minNumerals": 1,
  "minAlphaNumerals": 1,
  "minSpecialChars": 1,
  "maxSpecialChars": 0,
  "minUpperCase": 1,
  "minLowerCase": 1,
  "maxRepeatedChars": 4,
  "startsWithAlpha": true,
  "firstNameDisallowed": true,
  "lastNameDisallowed": true,
  "userNameDisallowed": true,
  "minPasswordAgeInDays": 1,
  "warningAfterDays": 25,
  "expiresAfterDays": 30,
  "disallowedChars": "",
  "disallowedSubStrings": [],
  "passwordHistorySize": 5,
  "maxIncorrectAttempts": 5
}

Parsing fails right after finishing disallowedSubStrings , error is "attribute name is expected". If change "disallowedSubStrings": [] to "disallowedSubStrings": null, parsing becomes successful.

Suspects scanner stepping in the case of empty array isn't right.

@imulab imulab added the bug label Feb 24, 2020
@imulab imulab self-assigned this Feb 24, 2020
@imulab imulab added this to the pkg/v2.1.0 milestone Feb 25, 2020
@imulab imulab closed this as completed Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant