-
Notifications
You must be signed in to change notification settings - Fork 38.4k
Improve check to preserve case sensitivity of scheme if URI variable present #33715
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
Conversation
…RI variable See spring-projectsGH-33699, Continue c261ca3 ``` Map has no value for 'thescheme' java.lang.IllegalArgumentException: Map has no value for 'thescheme' at org.springframework.web.util.UriComponents$MapTemplateVariables.getValue(UriComponents.java:348) at org.springframework.web.util.UriComponents.expandUriComponent(UriComponents.java:263) at org.springframework.web.util.HierarchicalUriComponents.expandInternal(HierarchicalUriComponents.java:436) at org.springframework.web.util.HierarchicalUriComponents.expandInternal(HierarchicalUriComponents.java:53) at org.springframework.web.util.UriComponents.expand(UriComponents.java:161) at org.springframework.web.util.UriComponentsBuilder.buildAndExpand(UriComponentsBuilder.java:364) ```
cc @rstoyanchev |
Thanks for taking a look. I'm curious if you actually have a case with a scheme that is part literal and part variable? |
No, I found it by code review. |
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.
Okay, I think it's fine. A scheme with {
is unlikely to be more useful in lowercase.
See gh-33715 ``` Map has no value for 'thescheme' java.lang.IllegalArgumentException: Map has no value for 'thescheme' at org.springframework.web.util.UriComponents$MapTemplateVariables.getValue(UriComponents.java:348) at org.springframework.web.util.UriComponents.expandUriComponent(UriComponents.java:263) at org.springframework.web.util.HierarchicalUriComponents.expandInternal(HierarchicalUriComponents.java:436) at org.springframework.web.util.HierarchicalUriComponents.expandInternal(HierarchicalUriComponents.java:53) at org.springframework.web.util.UriComponents.expand(UriComponents.java:161) at org.springframework.web.util.UriComponentsBuilder.buildAndExpand(UriComponentsBuilder.java:364) ```
This is now merged. Please, note we don't change the author tag for a trivial change. |
See GH-33699, Continue c261ca3