-
Notifications
You must be signed in to change notification settings - Fork 38.5k
Expected lookupPath in request attribute "org.springframework.web.util.UrlPathHelper.PATH" error with Spring Data REST #26415
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
You can also run |
I'm wondering if this is a Spring Data issue caused by the use of an limited constructor. It looks to me like Unfortunately the constructor that I think needs to be called is |
Changing |
That certainly sounds like a problem. The Perhaps it is this recent change that might be the cause spring-projects/spring-data-rest@b9c0293? In any case I suspect a Spring Data REST issue here. /cc @odrotbohm |
I think I've finally tracked this down to a Spring Data Rest issue. Unfortunately it can't be fixed without some framework updates. I'll open some new issues. |
I'm not totally sure if this is a Spring MVC or Spring Data issue. I suspect it's a Spring MVC issue that's hard to replicate without Spring Data.
Whilst working on spring-projects/spring-boot#24805 I've hit the following exception:
I think this is caused by a mix of
AbstractHandlerMapping
where some have aPathPatternParser
and some do not.Debugging the test I see that
AbstractHandlerMapping.initLookupPath
is called several times. The last call before the exception triggers arequest.removeAttribute(UrlPathHelper.PATH_ATTRIBUTE)
which causesRequestMappingInfoHandlerMapping.getMatchingMapping
to fail.Running
SampleDataRestApplicationTests.testHome
from https://github.com/philwebb/spring-boot/tree/gh-24805 will replicate the problem.The text was updated successfully, but these errors were encountered: