You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Kai Rommel (JIRA)" <ji...@apache.org> on 2015/12/02 11:38:11 UTC

[jira] [Created] (CXF-6699) DefaultAddress not set in HTTPConduit class

Kai Rommel created CXF-6699:
-------------------------------

             Summary: DefaultAddress not set in HTTPConduit class
                 Key: CXF-6699
                 URL: https://issues.apache.org/jira/browse/CXF-6699
             Project: CXF
          Issue Type: Bug
          Components: Transports
    Affects Versions: 3.0.7
            Reporter: Kai Rommel


With [CXF-6404] changes to class HTTPConduit were introduced, which leads to regression errors.
Commit 1b7e0dfc9c2eb3249ec12624ef3aff473424265c removes the setting of the variable result with the DefaultAddress in line 682.

When in the latest implementation of method setupAddress() only  QUERY_STRING is set, in line 691 following address will be set:
            result = result + "?" + queryString;
To receive a valid address, result must be set before. Therefore add after  line 684:  result = defaultAddress.getString();

Section should look this way:
if (defaultAddress != null) {
   result = defaultAddress.getString();
   message.put(Message.ENDPOINT_ADDRESS,   
               defaultAddress.getString());
}

Best regards
Kai





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)