-
Notifications
You must be signed in to change notification settings - Fork 840
Fix ArrayIndexOutOfBoundsException in UaaRequestMatcher #3276
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
Fix ArrayIndexOutOfBoundsException in UaaRequestMatcher #3276
Conversation
duanemay
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch
| assertThat(matcher.matches(request("/somePath", null))).isTrue(); | ||
| } | ||
|
|
||
| @ParameterizedTest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you check sonar
https://sonarcloud.io/project/issues?sinceLeakPeriod=true&issueStatuses=OPEN%2CCONFIRMED&pullRequest=3276&id=cloudfoundry-identity-parent&open=AZTWuNP2sTkMRfYdBil0
and maybe merge it into one test
| } | ||
|
|
||
| List<MediaType> requestValues = MediaType.parseMediaTypes(requestValue); | ||
| if (requestValues.isEmpty()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-> maybe ObjectUtils.isEmpty(requestValues) so protect nullable requestValues case
No description provided.