Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 934801099E for ; Tue, 18 Jun 2013 06:49:22 +0000 (UTC) Received: (qmail 13727 invoked by uid 500); 18 Jun 2013 06:49:21 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 13700 invoked by uid 500); 18 Jun 2013 06:49:21 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 13691 invoked by uid 99); 18 Jun 2013 06:49:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jun 2013 06:49:20 +0000 Date: Tue, 18 Jun 2013 06:49:20 +0000 (UTC) From: "David Blevins (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CXF-5084) URIBuilder optimization prevents relative paths that startWith "h" "t" "t" "p" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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: but was: > 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