BugRat Mail System wrote:
> 
> Bug report #694 has just been filed.
> 
> You can view the report at the following URL:
> 
>    <http://znutar.cortexity.com/BugRatViewer/ShowReport/694>
> 
> REPORT #694 Details.
> 
> Project: Tomcat
> Category: Bug Report
> SubCategory: New Bug Report
> Class: swbug
> State: received
> Priority: high
> Severity: serious
> Confidence: public
> Environment:
>    Release: tomcat 3.2
>    JVM Release: 1.2
>    Operating System: win NT
>    OS Release: 4.0
>    Platform: pentium windows NT
> 
> Synopsis:
> Get Not found (404) for a mapped servlet if the Path Info is not null
> 
> Description:
> If I have a servle SnoopServlet mapped to /snoop.  I can access the servlet in two 
>different ways:
> 
> http://localhost:8080/snoop   or
> http://localhost:8080/servlet/SnoopServlet
> 
> but If add some String to the Path to make the first url look like 
>http://localhost:8080/snoop/test. The URL will return error, ie. File not found (404)
> However,
> http://localhost:8080/servlet/SnoopServlet/test works.

If you map to "/snoop" (an exact match rule), it will only match a
the (context-relative) URI "/snoop". It's not a bug; it's the way it's 
supposed to work.

If you want to match all URIs starting with "/snoop" you need to map
to "/snoop/*" (a path prefix rule). Note the wildcard "*" at the end.

Hans
-- 
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com
Author of JavaServer Pages (O'Reilly), http://TheJSPBook.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to