Skip to content

jaxws x-forwarded-host through multiple reverse proxies not handled correctly #706

@bdrx312

Description

@bdrx312

Pull request #36 added support for using the value of x-forwarded-host header in wsdls. However if there are multiple proxies in the chain then apache httpd will set the x-forwarded-host value to a comma separated listed of each proxy in the chain with the first proxy accessed by the request being the first entry in the CSV.
When a request is made for the wsdl the response results in a 400 Bad Request with the description "The request sent by the client was syntactically incorrect."

The x-forwarded-host header should be split on ", *' and only use the first value for value of getBaseAddress.

https://github.com/eclipse-ee4j/metro-jax-ws/blame/f16a1ae592527d48034e3f6f3ed2e1ec11a8c869/jaxws-ri/runtime/rt/src/main/java/com/sun/xml/ws/transport/http/server/ServerConnectionImpl.java#L286

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions