cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Downey (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CXF-3226) Going to a JAX-RS resource that contains a space in the path returns a 404 response code
Date Sat, 01 Jan 2011 23:32:11 GMT

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

Jason Downey updated CXF-3226:
------------------------------

    Attachment: cxf_jax_rs_space_bug.zip

File Description
================

Space       - Contains valid JAX-RS resource
Application - JAX-RS application
JettyServer - Launches Jetty hosting a CXFNonSpringJaxrsServlet servlet to demo bug

Example URLs
============

http://localhost:1334/?_wadl - generates WADL for Space resource
http://localhost:1334/nospace - returns a text/plain document
http://localhost:1334/has%20space - returns a blank text/xml document with a 404 response
code

> Going to a JAX-RS resource that contains a space in the path returns a 404 response code
> ----------------------------------------------------------------------------------------
>
>                 Key: CXF-3226
>                 URL: https://issues.apache.org/jira/browse/CXF-3226
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.3.1
>         Environment: Java 1.6_22
> Apache CXF 2.3.1
>            Reporter: Jason Downey
>             Fix For: 2.3.2
>
>         Attachments: cxf_jax_rs_space_bug.zip
>
>
> If you go to a JAX-RS resource that contains a space in the path, the Apache CXF JAX-RS
runtime returns a 404 response code. In the STDERR log, you'll see the following message:
> Jan 1, 2011 3:05:01 PM org.apache.cxf.jaxrs.utils.JAXRSUtils findTargetMethod
> WARNING: .No operation matching request path /has%20space is found, HTTP Method : GET,
ContentType : */*, Accept : application/xml,application/xhtml+xml,image/png,text/html;q=0.9,text/plain;q=0.8,*/*;q=0.5,.
> The cause for this problem may be found in AbstractServerController.getBaseURL. It assumes
pathInfo is always decoded but in the JAX-RS circumstances it it actually still decoded.
> Relevant sample code + patch attached.

-- 
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