Skip to main content

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

Tony Thompson wrote:
> Greg,
> 
> Any chance this quacks like a bug that could be fixed as easily as the
> other one?

Potentially.

It would be of great assistance if you could raise this as a bugzilla.

cheers



> Thanks
> Tony
> 
> Tony Thompson wrote:
>> 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.
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> jetty-users mailing list
>> jetty-users@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/jetty-users
>>   
>  
> 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.
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> jetty-users mailing list
> jetty-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/jetty-users



Back to the top