cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Blevins (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CXF-5084) URIBuilder optimization prevents relative paths that startWith "h" "t" "t" "p"
Date Tue, 18 Jun 2013 06:49:20 GMT

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

David Blevins updated CXF-5084:
-------------------------------

    Attachment: CXF-5084.patch
    
> URIBuilder optimization prevents relative paths that startWith "h" "t" "t" "p"
> ------------------------------------------------------------------------------
>
>                 Key: CXF-5084
>                 URL: https://issues.apache.org/jira/browse/CXF-5084
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.5.10, 2.6.8, 2.7.5
>            Reporter: David Blevins
>         Attachments: CXF-5084.patch
>
>
>         URI uri = new URI("http://foo/bar/baz;m1=m1value");
>         URI newUri = new UriBuilderImpl(uri).replacePath("httppnewpath").build();
>         assertEquals("URI is not built correctly", "http://foo/httppnewpath", newUri.toString());
> Should pass, but results in:
> FAILURE!
> org.junit.ComparisonFailure: URI is not built correctly expected:<http:[//foo/]httppnewpath>
but was:<http:[]httppnewpath>
> 	at org.junit.Assert.assertEquals(Assert.java:115)
> 	at org.apache.cxf.jaxrs.impl.UriBuilderImplTest.testReplacePathHttpString(UriBuilderImplTest.java:537)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message