Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] ContextHandler issue

I am using a Jetty 7.0.2 code snapshot and it seems like there is an issue with org.eclipse.jetty.server.handler.ContextHandler.Context.getContext( String ).  For the uripath, I am passing in a resource that should be in the "/" context (/images/test.png).  If that resource is in another context like "/fred", a context is returned by getContext().  If it is in "/", null is returned.  It seems like this will never match "/":

                if (uripath.equals(context_path) || (uripath.startsWith(context_path)&&uripath.charAt(context_path.length())=='/'))


Maybe these need to be fixed ;)

            // TODO this is a very poor implementation!
            // TODO move this to Server

Any chance this could be fixed?

Thanks
Tony
 
This message (and any associated files) is intended only for the
use of the individual or entity to which it is addressed and may
contain information that is confidential, subject to copyright or
constitutes a trade secret. If you are not the intended recipient
you are hereby notified that any dissemination, copying or
distribution of this message, or files associated with this message,
is strictly prohibited. If you have received this message in error,
please notify us immediately by replying to the message and deleting
it from your computer. Messages sent to and from Stoneware, Inc.
may be monitored.


Back to the top