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

TLSClientParameters are erased when changing the endpoint address

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 3.2.4, 3.2.6
    • Fix Version/s: None
    • Component/s: Transports
    • Labels:
      None
    • Environment:

      Windows/Windows server. CXF 3.2.4. Java 1.8.

    • Estimated Complexity:
      Unknown

      Description

      I have a set of WSDLs that I cannot change. They do not have the correct endpoint address for the server but that is easily changed by using provider.getRequestContext.put(ENDPOINT_ADDRESS_PROPERTY...

      This works fine as long as the server is not using a self signed certificate. But when I add the code to trust the certificate and also change the endpoint address, the TLSClientParameters are ignored because the conduit is reconfigured and replaced with a new conduit without the parameters. If I run once in a try block and then update the conduit with the TLSClientParameters and run a second time, this works.

      I've included a test case to show the problem.

        Attachments

        1. CXFTLSTestCase.zip
          560 kB
          James Bailey

          Activity

            People

            • Assignee:
              ffang Freeman Yue Fang
              Reporter:
              jbailey_jacobs James Bailey
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: