Relative binding URIs not handled correctly when non-default root is specified ------------------------------------------------------------------------------
Key: TUSCANY-3996 URL: https://issues.apache.org/jira/browse/TUSCANY-3996 Project: Tuscany Issue Type: Bug Components: SCA Java Runtime Affects Versions: Java-SCA-2.x Environment: All Reporter: Simon Laws Priority: Minor Fix For: Java-SCA-2.x There is code in the BindingURIBuilder as follows.... if (baseURI == null) { if (componentURI == null) { if (bindingURI != null) { uriString = name + "/" + bindingURI.toString(); } else { uriString = name; } } else { if (bindingURI != null) { if (bindingURI.toString().startsWith("/")) { uriString = componentURI.resolve(bindingURI).toString(); } else { uriString = componentURI.resolve(name + "/" + bindingURI).toString(); } } else { uriString = componentURI.resolve(name).toString(); } } } else { if (componentURI == null) { if (bindingURI != null) { uriString = basedURI(baseURI, bindingURI).toString(); } else { uriString = basedURI(baseURI, URI.create(name)).toString(); } } else { if (bindingURI != null) { uriString = basedURI(baseURI, componentURI.resolve(bindingURI)).toString(); } else { uriString = basedURI(baseURI, componentURI.resolve(name)).toString(); } } } Note that the branch where baseURI is non-null behaves differently w.r.t. adding name to the final URI compared to when baseURI is null. -- 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