Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 42191 invoked from network); 18 Feb 2009 13:31:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Feb 2009 13:31:25 -0000 Received: (qmail 90489 invoked by uid 500); 18 Feb 2009 13:31:25 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 90476 invoked by uid 500); 18 Feb 2009 13:31:25 -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 90452 invoked by uid 99); 18 Feb 2009 13:31:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Feb 2009 05:31:25 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Feb 2009 13:31:24 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4E07A234C495 for ; Wed, 18 Feb 2009 05:31:04 -0800 (PST) Message-ID: <1033121947.1234963864318.JavaMail.jira@brutus> Date: Wed, 18 Feb 2009 05:31:04 -0800 (PST) From: "VERGNES Denis (JIRA)" To: issues@cxf.apache.org Subject: [jira] Commented: (CXF-1717) URI returned by UriInfo.getAbsolutePath only contains relative portion of the URI In-Reply-To: <1498773840.1216836811798.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-1717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12674613#action_12674613 ] VERGNES Denis commented on CXF-1717: ------------------------------------ It seems to be fixed in 2.1.4 version > URI returned by UriInfo.getAbsolutePath only contains relative portion of the URI > --------------------------------------------------------------------------------- > > Key: CXF-1717 > URL: https://issues.apache.org/jira/browse/CXF-1717 > Project: CXF > Issue Type: Bug > Components: REST > Affects Versions: 2.1.1 > Environment: Tomcat 6.x running on Windows XP and Java 1.6 > Reporter: Bill Simons > > With a class like: > @Path("/helloWorld") > public class HelloWorldResource { > @Context > private UriInfo context; > > /** Creates a new instance of HelloWorldResource */ > public HelloWorldResource() { > } > /** > * Retrieves representation of an instance of helloworld.HelloWorldResource > * @return an instance of java.lang.String > */ > @GET > @ProduceMime("text/plain") > public String getXml() { > return context.getAbsolutePath().toString(); > } > } > The String returned by the context.getAbsolutePath().toString only contains the path( /helloWorld )portion of the URI. It should contain the full URI (http://localhost:8080/helloWorld). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.