HADOOP-18249. Fix getUri() in HttpRequest has been deprecated.#4335
Merged
hemanthboyina merged 3 commits intoapache:trunkfrom May 24, 2022
Merged
HADOOP-18249. Fix getUri() in HttpRequest has been deprecated.#4335hemanthboyina merged 3 commits intoapache:trunkfrom
hemanthboyina merged 3 commits intoapache:trunkfrom
Conversation
WebHdfsHandler.java req.getUri() replace uri(), req.getMethod() replace method() HostRestrictingAuthorizationFilterHandler.java req.getUri() replace uri() TestHostRestrictingAuthorizationFilterHandler.java remove throws Exception, channelResponse.getStatus() replace status().
|
🎊 +1 overall
This message was automatically generated. |
Contributor
hemanthboyina
left a comment
There was a problem hiding this comment.
thanks for the PR @slfan1989 , there were few more places where httprequest getUri() is used, can you modify them as well ?
Contributor
Author
Thanks @hemanthboyina , I'll try to fix the other locations. |
|
💔 -1 overall
This message was automatically generated. |
Contributor
hemanthboyina
left a comment
There was a problem hiding this comment.
+1
will wait for build result
|
🎊 +1 overall
This message was automatically generated. |
Contributor
Author
|
@hemanthboyina please help me to review the code again, thank you very much! |
Contributor
Author
|
@hemanthboyina Thank you very much for your help reviewing the code! |
HarshitGupta11
pushed a commit
to HarshitGupta11/hadoop
that referenced
this pull request
Nov 28, 2022
…e#4335) * HADOOP-18249. Fix getUri() in HttpRequest has been deprecated. WebHdfsHandler.java req.getUri() replace uri(), req.getMethod() replace method() HostRestrictingAuthorizationFilterHandler.java req.getUri() replace uri() TestHostRestrictingAuthorizationFilterHandler.java remove throws Exception, channelResponse.getStatus() replace status(). * HADOOP-18249. Fix getUri() in HttpRequest has been deprecated. * HADOOP-18249. Fix Some CheckStyle. Co-authored-by: slfan1989 <louj1988@@>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
JIRA: HADOOP-18249. Fix getUri() in HttpRequest has been deprecated.
When reading the code, I found that the method used has been deprecated due to the upgrade of the netty component. The main methods are as follows:
io.netty.handler.codec.http#HttpRequest
io.netty.handler.codec.http#DefaultHttpResponse