You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Shilun Fan (Jira)" <ji...@apache.org> on 2024/01/28 02:21:00 UTC
[jira] [Updated] (HADOOP-18249) Fix getUri() in HttpRequest has been deprecated
[ https://issues.apache.org/jira/browse/HADOOP-18249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shilun Fan updated HADOOP-18249:
--------------------------------
Hadoop Flags: Reviewed
Target Version/s: 3.4.0
> Fix getUri() in HttpRequest has been deprecated
> -----------------------------------------------
>
> Key: HADOOP-18249
> URL: https://issues.apache.org/jira/browse/HADOOP-18249
> Project: Hadoop Common
> Issue Type: Improvement
> Components: common
> Affects Versions: 3.4.0
> Reporter: Shilun Fan
> Assignee: Shilun Fan
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.4.0
>
> Attachments: getUri() deprecated -1.png
>
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> 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
> @Deprecated
> HttpMethod getMethod();
> Deprecated. Use method() instead.
> @Deprecated
> String getUri()
> Deprecated. Use uri() instead.
> io.netty.handler.codec.http#DefaultHttpResponse
> @Deprecated
> public HttpResponseStatus getStatus()
> { return this.status(); }
> Deprecated. Use status() instead.
>
> WebHdfsHandler.java:125:35:[deprecation] getUri() in HttpRequest has been deprecated
> HostRestrictingAuthorizationFilterHandler.java:200:27:[deprecation] getUri() in HttpRequest has been deprecated
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org