-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Assess the situation with Framework's trailing slash matching changes #31563
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
Note that there's also #31547 which I assume this issue partly duplicates. |
We see the two as separate problems. Boot's been using PathPatternParser as the default for some time now. #31547 is about adapting to Framework now using it by default too. Those changes didn't break Boot's build but we may need to review the configuration properties that we offer and what happens when certain properties are used in combination. This issue's about adapting to a change in how trailing slashes are handled which did break our build. |
e9136e0 will hopefully fix the build. It raises a few questions:
|
We've discussed this today and we are happy with things the way they are. We are not going to introduce a property to enable a deprecated Spring Framework feature. |
Can you clarify what does happy with things the way they are mean? I'm mostly interested in the first point from your previous comment:
Am I reading this right that the Actuator endpoints will continue to behave the same as if trailing slash matching was on? |
Yes. An actuator endpoint may only support |
The Also, this is now a bit surprising as it diverges from the new default behavior in the Framework. |
@rstoyanchev Is there a pattern or combination of patterns that we can use that will match |
A path variable, on the other hand, expects a path segment, and so
That said, taking a step back, the trailing slash option essentially is about retrying with the same pattern + trailing slash. A pattern such as In short, I'm questioning whether a prefix pattern is in the same category as other patterns. I would expect a similar strategy for securing through a pattern by prefix and there should be no mismatch there as far as I can see. |
Right now our build is failing because of recent changes in Framework's defaults for trailing slash match: spring-projects/spring-framework#28552.
This issue should assess the situation and:
The text was updated successfully, but these errors were encountered: