tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21168] - Incorrect paths in generated SMAP file entries
Date Tue, 22 Jul 2003 08:40:25 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21168>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21168

Incorrect paths in generated SMAP file entries

ecarmich@alumni.rice.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |PatchAvailable



------- Additional Comments From ecarmich@alumni.rice.edu  2003-07-22 08:40 -------
The second line of the SMAP contains path information on Windows machines 
because SmapUtil.java's generateSmap() method calls unqualify() to remove the 
path information, and unqualify() only works on pathname strings with "/" as 
the name-separator character.  I fixed this by rewriting unqualify().

The leading slash in the source path in the "*F" section originates deep 
within Tomcat (for instance, in a call to HttpServletRequest.getServletPath() 
when the request is first touched), so I chose to remove the leading slash 
just before writing the source path to the SMAP.

I will attach a patch containing these fixes.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message