cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stian Soiland-Reyes (JIRA)" <>
Subject [jira] [Created] (CXF-4919) HttpUtils.relativize broken
Date Mon, 25 Mar 2013 10:09:18 GMT
Stian Soiland-Reyes created CXF-4919:

             Summary: HttpUtils.relativize broken
                 Key: CXF-4919
             Project: CXF
          Issue Type: Bug
          Components: JAX-RS
    Affects Versions: 2.7.3
            Reporter: Stian Soiland-Reyes

None of these tests pass:

    public void testRelativize() throws Exception {
        URI ab = URI.create("");
        URI abcd = URI.create("");
        assertEquals("b/", HttpUtils.relativize(ab, ab));
        assertEquals(URI.create("c/d"), HttpUtils.relativize(ab, abcd));
        assertEquals(URI.create("../"), HttpUtils.relativize(abcd, ab));
        assertEquals("", HttpUtils.relativize(abcd, abcd));
        URI abcd2 = URI.create("");
        assertEquals(URI.create("d2"), HttpUtils.relativize(abcd, abcd2));
        URI ab2cd = URI.create("");
        assertEquals(URI.create("../../b2/c/d"), HttpUtils.relativize(abcd, ab2cd));

This affects LinkBuilder.buildRelativize() and UriInfo.relativize()

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:

View raw message