Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
ResourceUrlEncodingFilter versioning breaks when URL contains fragment [SPR-17535] #22067
resolveUrlPath in ResourceUrlEncodingRequestWrapper in ResourceUrlEncodingFilter checks for query string, but not for fragment. This breaks versioning when URLs with fragment are used (tested with Thymeleaf):
does not add version. Replacing getQueryParamsIndex with something that checks for both question mark and hash mark fixes it.