You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Simon Laws (Assigned) (JIRA)" <de...@tuscany.apache.org> on 2011/12/09 12:10:40 UTC
[jira] [Assigned] (TUSCANY-3996) Relative binding URIs not handled
correctly when non-default root is specified
[ https://issues.apache.org/jira/browse/TUSCANY-3996?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon Laws reassigned TUSCANY-3996:
-----------------------------------
Assignee: Simon Laws
> 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
> Assignee: 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