Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-18249

Fix getUri() in HttpRequest has been deprecated

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.0
    • 3.4.0
    • common
    • Reviewed

    Description

      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

      Attachments

        1. getUri() deprecated -1.png
          41 kB
          Shilun Fan

        Issue Links

          Activity

            People

              slfan1989 Shilun Fan
              slfan1989 Shilun Fan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m