Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8965

Apache CXF Netty Integration, URI not encoded

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.5.7, 3.6.2, 4.0.3
    • 3.5.8, 3.6.3, 4.0.4
    • Transports
    • None
    • Novice

    Description

      There is an issue when using Apache CXF with Netty. It seems that URI encoding of pathes, e.g. containing whitespaces doesn't work.
      The suspect org.apache.cxf.transport.http.netty.client.NettyHttpClientRequest line 57 to be the problem.
      There the request uri is past but with uri.getPath() which decodes the URI, instead using uri.getRawPath() should be used.

       this.request  =
           new DefaultFullHttpRequest(HttpVersion.HTTP_1_1,
                                      HttpMethod.valueOf(method),
                                      uri.getPath(), content);

       instead using

       this.request  =
       new DefaultFullHttpRequest(HttpVersion.HTTP_1_1,
                                      HttpMethod.valueOf(method),
                                      uri.getRawPath(), content);
       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              wilhelmjo Jochen Wilhelm
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 4h
                  4h
                  Remaining:
                  Remaining Estimate - 4h
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified