The PublisherID constructor in caom2 with the URI argument constructs a resourceID from the path of the argument. However, the URI.getPath() contains the leading slash, which produces the following:
final PublisherID publisherID = new PublisherID(URI.create(PublisherID.SCHEME + "://com.myauth/MYCOLLECTION?OBSID/PRODID"));
System.out(publisherID.getResourceID()) // << Outputs ivo://com.myauth//MYCOLLECTION
The double slash MAY not be a problem for some parsers, but breaks tests.
The
PublisherID
constructor incaom2
with theURI
argument constructs aresourceID
from thepath
of the argument. However, theURI.getPath()
contains the leading slash, which produces the following:The double slash MAY not be a problem for some parsers, but breaks tests.