Please let me know if this a a wrong alias for bug reports.

I installed webserver7u4 and when I try to access a static file within my war 
which contains a space in the path, I get HTTP404.

$ ls webserver7/https-myapp/web-app/myapp/_default/images/ddtree/black\ 
spinner/1.png
webserver7/https-myapp/web-app/myapp/_default/images/ddtree/black spinner/1.png

$ wget -O /dev/null  "http://localhost:8080/images/ddtree/black spinner/1.png
"--13:47:06--  http://localhost:8080/images/ddtree/black%20spinner/1.png
           => `/dev/null'
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 404 Not found
13:47:06 ERROR 404: Not found.

Now, if I create a symlink to a path that contains url encoded space, 
everything works:

$ ls -l 
webserver7/https-myapp/web-app/myapp/_default/images/ddtree/black%20spinner
lrwxrwxrwx   1 root     root          13 Aug  1  2008 
webserver7/https-myapp/web-app/myapp/_default/images/ddtree/black%20spinner -> 
black spinner

$ wget -O /dev/null  "http://localhost:8080/images/ddtree/black spinner/1.png"
--13:49:37--  http://localhost:8080/images/ddtree/black%20spinner/1.png
           => `/dev/null'
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,446 (1.4K) [image/png]

100%[===============================================================================================================>]
 1,446         --.--K/s             

13:49:37 (89.76 MB/s) - `/dev/null' saved [1446/1446]

So to me it appears that webserver doesn't decode the path before searching the 
local file system, which to me looks like a bug.

Let me know if you need more info.

cheers,
Igor
-- 
This message posted from opensolaris.org

Reply via email to