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

Reverse proxy url is not reflected when use-x-forwarded-headers is true

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.7
    • Fix Version/s: 3.3.8, 3.4.1, 3.2.15
    • Component/s: Transports
    • Labels:
      None
    • Environment:

      OpenJdk 8

      Tomcat 9

      cxf 3.3.7

    • Estimated Complexity:
      Unknown

      Description

      Problem generating wsdl behind reverse proxy and setting use-x-forwarded-headers in true. 

      CXF ignores all  X-Forwarded headers to build this attribute: newRequestUrl

      AbstractHTTPServlet Line 306 3.3.7

       

      if (originalProtocol != null || originalRemoteAddr != null) {
      

      Why is mandatory one of this headers?  We have this config "use-x-forwarded-headers", is not enough?

      --------------------------

      This problem was mentioned here 

      https://issues.apache.org/jira/browse/CXF-7485

      comment:

      https://issues.apache.org/jira/browse/CXF-7485?focusedCommentId=16152794&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16152794

        Attachments

          Activity

            People

            • Assignee:
              reta Andriy Redko
              Reporter:
              fernando.las@gmail.com Fernando Daniel Las
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: