I've debugged the problem:

   - The path is encoded by URIUtil.encodePath() [space replaced by '%20']
   - When looking up the file within the jar in JarFileResource.exists(),
   the encoded path is being compared to JarEntry.name() which is not encoded.


That way the file is never found.

I will submit a bug, test case and a description of my investigation.

Melissa


On Mon, Sep 7, 2015 at 5:01 PM, Simone Bordet <[email protected]> wrote:

> Hi,
>
> On Mon, Sep 7, 2015 at 7:29 AM, Melissa Mifsud
> <[email protected]> wrote:
> > I have migrated from Jetty 8 to 9 and everything seemed to be going well.
> >
> > I am running an embedded Jetty application from an uber jar. After the
> > upgrade, I noticed that static resources (located in the jar) are
> resulting
> > in 404 errors but only for resources with a space character in the file
> > name!
> >
> > ex: http://{host}/js/widgets/shape/simple%20circle.svg
> >
> > This all worked fine under Jetty 8.
>
> Can you put up a reproducible test case and attach it to an issue you
> create at https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Jetty ?
>
> Thanks !
>
> --
> Simone Bordet
> ----
> http://cometd.org
> http://webtide.com
> Developer advice, training, services and support
> from the Jetty & CometD experts.
> _______________________________________________
> jetty-users mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>



-- 

------------------------------
*Melissa Anne Mifsud*
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to