[ 
https://issues.apache.org/jira/browse/CXF-3088?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sergey Beryozkin resolved CXF-3088.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.4
                   2.3.1
                   2.2.12
         Assignee: Sergey Beryozkin

> 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.3.0, 2.2.11
>            Reporter: Alex Wenckus
>            Assignee: Sergey Beryozkin
>             Fix For: 2.2.12, 2.3.1, 2.4
>
>
> 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.

Reply via email to