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

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.3.7
    • 3.3.8, 3.4.1
    • Transports
    • None
    • OpenJdk 8

      Tomcat 9

      cxf 3.3.7

    • 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

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

            Dates

              Created:
              Updated:
              Resolved: