cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CXF-3088) UriBuilderImpl#clone does not clone leadingSlash
Date Tue, 26 Oct 2010 16:08:22 GMT

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


Mime
View raw message