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] Commented: (CXF-1717) URI returned by UriInfo.getAbsolutePath only contains relative portion of the URI
Date Fri, 01 Aug 2008 22:07:31 GMT

    [ https://issues.apache.org/jira/browse/CXF-1717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12619151#action_12619151
] 

Sergey Beryozkin commented on CXF-1717:
---------------------------------------

Hmm...I'm wondering is it a CXFServlet issue ?

Or perhaps HttpUtils.toAbsoluteUri(u, message); is not taking this extra path segment into
consideration ?
Probably yes.

Unfortunately I won't be able to look at this issue during the next month, I'm traveling these
weekends. If you can get a chance to track the remaining problem down then it would be cool.
Otherwise I'll be able to have a look at it sometime in late August/early September.



> 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
>             Fix For: 2.1.2
>
>
> 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.


Mime
View raw message