tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rogério Meneguelli Gatto <ga...@softwaredesign.com.br>
Subject [CONTRIBUTED PATCH] org.apache.tomcat.util.FileUtil.safePath()
Date Wed, 29 Nov 2000 16:30:30 GMT
Hello,

org.apache.tomcat.util.FileUtil.safePath() had a bug (at least from my point of 
view) that was preventing use of "\\machine\share" paths in context docBases, 
yielding a 404 on those contexts.

The patch was obtained with a "diff -u <old> <new>", I don't know if that's ok.

  I've made some testing, and the reasons that lead to safePath implementation 
in TC32 are still held, I believe (no paths fall outside docBase, case 
sensitiveness enforced, Win oddities like "*.jsp." prevented).  I haven't 
tested on *nix or netware, but the scope of the changes doesn't seem that big 
(but feel free to ignore them or apply only on the next bug fix release ;-)

Regards,

-- 
Rogério Meneguelli Gatto     |  ICQ# 25775025
Analista de Sistemas Pleno   |  +55 19 3254-6518 ext 223
Software Design Informática  |  http://www.softwaredesign.com.br
God is a comic playing to an audience that's afraid to laugh

Mime
View raw message