Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Java-SCA-2.x
-
None
-
All
Description
There is code in the BindingURIBuilder as follows....
if (baseURI == null) {
if (componentURI == null) {
if (bindingURI != null)
else
{ uriString = name; } } else {
if (bindingURI != null) {
if (bindingURI.toString().startsWith("/"))
else
{ uriString = componentURI.resolve(name + "/" + bindingURI).toString(); }} else
{ uriString = componentURI.resolve(name).toString(); } }
} else {
if (componentURI == null) {
if (bindingURI != null)
else
{ uriString = basedURI(baseURI, URI.create(name)).toString(); } } else {
if (bindingURI != null)
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.