You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2010/10/26 18:08:22 UTC

[jira] Resolved: (CXF-3088) UriBuilderImpl#clone does not clone leadingSlash

     [ 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.