jlong/serve — Issue #62: url throws 404
Author: tenken
Created: 2011-12-13 16:43:17+00:00
State: open

Hi --

If I try to serve the file, "/patches/profiler_support_content_types--939808#comment-3628880.patch" , I get a 404 and in the log output it appears the filename is being truncated on the hashmark (Ruby comment symbol ... ):

web:serve david$ serve
Mongrel 1.1.5 available at http://0.0.0.0:4000
127.0.0.1 - - [13/Dec/2011 08:26:41] "GET /eap_base-7.x-1.x-dev.tar.gz HTTP/1.1" 200 2534 0.0153
127.0.0.1 - - [13/Dec/2011 08:27:01] "GET /patches/profiler_support_content_types--939808 HTTP/1.1" 404 0 0

If I remove the hash mark in the URL the file serves up ok:

Mongrel 1.1.5 available at http://0.0.0.0:4000
127.0.0.1 - - [13/Dec/2011 08:26:41] "GET /eap_base-7.x-1.x-dev.tar.gz HTTP/1.1" 200 2534 0.0153
127.0.0.1 - - [13/Dec/2011 08:27:01] "GET /patches/profiler_support_content_types--939808comment-3628880.patch
HTTP/1.1" 200 840 0.0008

I looked briefly at the source code -- but i'm in PHP land at the moment and my Ruby-fu isn't up to the task :/