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

Case-sensitive HttpHeaders with ReadOnlyHttpHeaders #33352

Closed
spencergibb opened this issue Aug 8, 2024 · 9 comments
Closed

Case-sensitive HttpHeaders with ReadOnlyHttpHeaders #33352

spencergibb opened this issue Aug 8, 2024 · 9 comments
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) status: superseded An issue that has been superseded by another

Comments

@spencergibb
Copy link
Member

Spring Cloud recently upgraded to boot 3.4.0-M1 and I came across an interesting regression. Spring Cloud Gateway has various filters that work on http headers. After upgrading to framework 6.2.0-M6 I ran into a situation trying to get a "host" header using getFirst(HttpHeaders.HOST). The host header existed, but as lower case. The input value to HttpHeaders is a ReadOnlyHttpHeaders but it appears that it is not case-sensitive. I had to work around it by creating a new HttpHeaders object and add all the values from the original. Does this ring any bells?

@spencergibb spencergibb changed the title Case-sensitive HttpHeaders sometimes Case-sensitive HttpHeaders with ReadOnlyHttpHeaders Aug 8, 2024
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Aug 8, 2024
@sbrannen sbrannen added the in: web Issues in web modules (web, webmvc, webflux, websocket) label Aug 8, 2024
@rstoyanchev
Copy link
Contributor

I don't see anything that stands out in the commit history for 6.2. How would we reproduce this?

@bclozel bclozel added the status: waiting-for-feedback We need additional information before we can continue label Aug 19, 2024
@spring-projects-issues
Copy link
Collaborator

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

@spring-projects-issues spring-projects-issues added the status: feedback-reminder We've sent a reminder that we need additional information before we can continue label Aug 26, 2024
@spring-projects-issues
Copy link
Collaborator

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.

@spring-projects-issues spring-projects-issues closed this as not planned Won't fix, can't repro, duplicate, stale Sep 2, 2024
@spring-projects-issues spring-projects-issues removed status: waiting-for-feedback We need additional information before we can continue status: feedback-reminder We've sent a reminder that we need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged or decided on labels Sep 2, 2024
@spencergibb
Copy link
Member Author

Sorry for the delay, I'll find the place in our build that was failing.

@spencergibb
Copy link
Member Author

@rstoyanchev rstoyanchev reopened this Oct 11, 2024
@rstoyanchev rstoyanchev added the status: waiting-for-triage An issue we've not yet triaged or decided on label Oct 11, 2024
@spencergibb
Copy link
Member Author

Possibly 4b732d6. I'll work on an isolated minimal reproducer

@spencergibb
Copy link
Member Author

I believe the fix for #33666 fixes this issue

@rstoyanchev

This comment was marked as duplicate.

@rstoyanchev rstoyanchev closed this as not planned Won't fix, can't repro, duplicate, stale Oct 11, 2024
@rstoyanchev rstoyanchev added status: superseded An issue that has been superseded by another and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) status: superseded An issue that has been superseded by another
Projects
None yet
Development

No branches or pull requests

5 participants