>Number: 4883 >Category: mod_jserv >Synopsis: getServletPath is wrong when the servlet's name appears more >than once on the url >Confidential: no >Severity: critical >Priority: medium >Responsible: jserv >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Fri Aug 20 10:30:02 PDT 1999 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: Apache 1.3.9 + JServ 1.0 >Environment: Solaris 2.6 JDK 1.2.2 >Description: getServletPath will return only the name of the servlet zone if the requested url contains the name of the servlet a second time. >How-To-Repeat: servlet zone: servlet servlet name: foo url 1: /servlet/foo/blah url 2: /servlet/foo/blah/foo
for url 1 getServletPath() returns "/servlet/foo" <--CORRECT for url 2 getServletPath() returns "/servlet" <--INCORRECT >Fix: >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include <[EMAIL PROTECTED]> in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]