-
Notifications
You must be signed in to change notification settings - Fork 38.5k
MethodParameter.isOptional() fails with ArrayIndexOutOfBoundsException [SPR-17629] #22160
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
Comments
@jhoeller This issue has not been fixed in 5.1.4. I still get the same
The problem is that the spring-framework/spring-web/src/main/java/org/springframework/web/method/HandlerMethod.java Line 484 in 1faeeae
-1 (as documented in its JavaDoc) in the case of a return type. The change in 1faeeae only addresses checking the upper bounds of index but not the lower bounds.
|
I've edited your comment to improve the formatting. You might want to check out this Mastering Markdown guide for future reference. |
@rstoyanchev Thank you. |
I've created #22303 as a follow-up for 5.1.5, leaving this one as the ticket for the 5.1.4 release. |
The 5.1.5 release notes don't contain the update, do they? i don't find it out. |
@Moonergfp I'm seeing it listed under the bugs section on the release page: https://github.com/spring-projects/spring-framework/releases/tag/v5.1.5.RELEASE |
I see, but what is the difference between these two release notes? And why does the description in https://github.com/spring-projects/spring-framework/releases?page=9 have fewer details than https://github.com/spring-projects/spring-framework/releases/tag/v5.1.5.RELEASE? |
@Moonergfp The first link is a link to a page, a collection of releases. The second link is a link to a single release. |
@bclozel But the description content in the first link, regarding v5.1.5.RELEASE, is less detailed than the second |
I don't see a |
Uh oh!
There was an error while loading. Please reload this page.
shollander opened SPR-17629 and commented
Calling
org.springframework.core.MethodParameter.isOptional()
can fail with anArrayIndexOutOfBoundsException
. I have a customResponseBodyAdvice
class that calls this method insupports()
. It fails when it hitsorg.springframework.boot.actuate.endpoint.web.servelt.WebMvcEndpointHandlerMappings$WebMvcLinksHandler.links
with the following exception:Affects: 5.1.3
Issue Links:
Referenced from: commits 1faeeae
The text was updated successfully, but these errors were encountered: