Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 470B27EC7 for ; Thu, 15 Dec 2011 16:21:00 +0000 (UTC) Received: (qmail 6218 invoked by uid 500); 15 Dec 2011 16:21:00 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 6190 invoked by uid 500); 15 Dec 2011 16:21:00 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 6182 invoked by uid 99); 15 Dec 2011 16:21:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Dec 2011 16:21:00 +0000 X-ASF-Spam-Status: No, hits=-2001.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Dec 2011 16:20:51 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B667B1142FB for ; Thu, 15 Dec 2011 16:20:30 +0000 (UTC) Date: Thu, 15 Dec 2011 16:20:30 +0000 (UTC) From: "Daniel Kulp (Resolved) (JIRA)" To: issues@cxf.apache.org Message-ID: <1798541837.16084.1323966030748.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <786969026.10745.1323867690588.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (CXF-3976) SoapTransportFactory.getConduit(EndpointInfo ei, EndpointReferenceType target) ignores second parameter MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-3976?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Kulp resolved CXF-3976. ------------------------------ Resolution: Fixed Fix Version/s: 2.4.6 2.5.1 Assignee: Daniel Kulp > SoapTransportFactory.getConduit(EndpointInfo ei, EndpointReferenceType target) ignores second parameter > ------------------------------------------------------------------------------------------------------- > > Key: CXF-3976 > URL: https://issues.apache.org/jira/browse/CXF-3976 > Project: CXF > Issue Type: Bug > Components: Core > Affects Versions: 2.5 > Environment: Windows > Reporter: Andrei Shakirin > Assignee: Daniel Kulp > Fix For: 2.5.1, 2.4.6 > > Attachments: SoapTransportFactory.patch > > > Hi, > I faced the problem in custom conduit selector scenario. > Use case: custom conduit selector (extends AbstractConduitSelector) resolves endpoints dynamically (using external ServiceRegistry). > When address is resolved, resolved address cannot be set to AbstractConduitSelector.endpoint, because different concurrent consumers using the same configuration can resolve endpoint differently. > Therefore address is just set to the message: message.set(Message.ENDPOINT_ADDRESS, resolvedAddress) > In this case addresses in message: message.get(Message.ENDPOINT_ADDRESS) and in endpoint: AbstractConduitSelector.endpoint.getEndpointInfo().getAddress() are different. > AbstractConduitSelector check it and prepares EndpointReferenceType for this case: > {code:java} > String add = (String)message.get(Message.ENDPOINT_ADDRESS); > if (StringUtils.isEmpty(add) > || add.equals(ei.getAddress())) { > replaceEndpointAddressPropertyIfNeeded(message, add); > selectedConduit = conduitInitiator.getConduit(ei); > } else { > EndpointReferenceType epr = new EndpointReferenceType(); > AttributedURIType ad = new AttributedURIType(); > ad.setValue(add); > epr.setAddress(ad); > selectedConduit = conduitInitiator.getConduit(ei, epr); > } > {code} > Problem: unfortunately SoapTransportFactory.getConduit(EndpointInfo ei, EndpointReferenceType target) ignores second parameter and calls SoapTransportFactory.getConduit(EndpointInfo ei). In my case it causes wrong Conduit resolving. > Proposal: update SoapTransportFactory.getConduit() in way that it uses address in EndpointReferenceType if it is provided. > Patch is attached. > Regards, > Andrei. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira