Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

bug: can't access static files with space in the path

807567Feb 17 2009 — edited Mar 2 2009
Please let me know if this a a wrong place to file 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 30 2009
Added on Feb 17 2009
7 comments
242 views