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

MockHttpServletRequest.getReader() returns null in case of no content [SPR-15215] #19780

spring-projects-issues opened this issue Feb 1, 2017 · 0 comments


Copy link

@spring-projects-issues spring-projects-issues commented Feb 1, 2017

Juergen Hoeller opened SPR-15215 and commented

After the MockHttpServletRequest revision in #16386, getInputStream() returns an empty stream in case of no content... but getReader() still returns null in such a case. Let's fix this for 4.3.7, along with #19779.

Affects: 4.3.6

Issue Links:

  • #19779 Principal check in ServletRequestMethodArgumentResolver can result in type mismatches
  • #16386 MockHttpServletRequest should not require setContent for non-null getInputStream() result
  • #19797 MockHttpServletRequest.protocol default should be "HTTP/1.1", not "http"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants