Skip to content
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

MvcUriComponentsBuilder should not include empty query parameters in build URI [SPR-14405] #18976

Closed
spring-projects-issues opened this issue Jun 27, 2016 · 0 comments
Assignees
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Jun 27, 2016

Michael Vitz opened SPR-14405 and commented

Expected: When building an URI with the MvcUriComponentsBuilder to a Controller-Method that references an optional query parameter (@RequestParam) which value isn't specified I would expected that this query parameter is left out.

Actual: The empty query parameter is defined without an equal sign and value.

This prevents the usage of such generated URIs as action of a form with a GET method. See the referenced GIST for an simple Spring-Boot Configuration/Controller to reproduce this issue.


Affects: 4.2.6

Reference URL: https://gist.github.com/mvitz/02b216b0e8a8064ec7af8413d8e5273b

Referenced from: commits 2cdcf75

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants