-
Notifications
You must be signed in to change notification settings - Fork 26.5k
FIX-15184 resolved NettyHttp Header add by set to empty String #15190
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
FIX-15184 resolved NettyHttp Header add by set to empty String #15190
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 3.4 #15190 +/- ##
=========================================
Coverage 60.72% 60.72%
- Complexity 10864 10866 +2
=========================================
Files 1881 1881
Lines 85967 85968 +1
Branches 12881 12882 +1
=========================================
+ Hits 52200 52204 +4
- Misses 28315 28320 +5
+ Partials 5452 5444 -8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
I think the target branch should be set to 3.3 instead of 3.4. |
hi @Stellar1999 actually the target branch was mentioned to be |
Version 3.3.3 is a subversion of 3.3, so I believe it should be merged into 3.3 first. After that, the Dubbo team usually merges it into 3.4 as well. I noticed you mentioned that this issue doesn’t affect 3.3. Does that mean you’re unable to reproduce this bug in version 3.3? |
Hi @Stellar1999, for version 3.3.3/3.4 the place where the error is happening ( However, the same line in 3.3 looks like this: Since you mentioned that 3.3.3 will be merged to 3.3, |
Oh, I see. I think this bug has already been fixed by PR #15141. All we need to do now is merge 3.3 into 3.4. PTAL @zrlw @AlbumenJ |
I will merge 3.3 into 3.4 later |
done |
What is the purpose of the change?
io.netty.handler.codec.Headers.HttpMetadataAdapter
is adding a null value forPseudoHeaderName.AUTHORITY
key. I checked the docs forio.netty.handler.codec.Headers
and it might be linked to this issue. So, I replaced with a default value of empty string "". All the client methods checking for the keyPseudoHeaderName.AUTHORITY
will do a null or empty value check usingStringUtils.isBlank()
andStringUtils.isNotBlank
Checklist