UriBuilderImpl#clone does not clone leadingSlash
------------------------------------------------
Key: CXF-3088
URL: https://issues.apache.org/jira/browse/CXF-3088
Project: CXF
Issue Type: Bug
Components: JAX-RS
Affects Versions: 2.2.11, 2.3.0
Reporter: Alex Wenckus
When cloning a UriBuilderImpl the URI which results from a clone can be
different from the URI which would result from the original builder if the path
contains a leading slash. The reason for this is that the leading slash is not
cloned with the rest of the URI and thus is not retained in the new builder.
{code}
UriBuilder builder = new UriBuilderImpl(new URI("/this/is/my/path"));
assertEquals(builder.build(), builder.clone().build()); // assertion
fails
{code}
unit.framework.AssertionFailedError: expected:</this/is/my/path> but
was:<this/is/my/path>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.