https://bz.apache.org/bugzilla/show_bug.cgi?id=63214

            Bug ID: 63214
           Summary: Using JkAutoAlias, Filenames with Spaces Cannot be
                    found
           Product: Tomcat Connectors
           Version: 1.2.46
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_jk
          Assignee: dev@tomcat.apache.org
          Reporter: km4...@att.com
  Target Milestone: ---

Using the JkAutoAlias functionality to automatically include Tomcat content so
that static files can be served by httpd.

Any file (in the tomcat app directories) that contains one or more spaces
results in a 404 being returned from the server.  It appears that the space is
being encoded to %20 in mod_jk.c, resulting in the filename not being found on
the server.  Specifically, there is logic in mod_jk.c, at about line 3936
(jk_translate function) that utilizes ap_os_escape_path.  The resulting escaped
url is concatenated with the tomcat directory path and stored back into the
request_rec->filename. That filename, with one or more %20, eventually fails a
stat and results in the 404.

Files with spaces that don't go through the jk_translate function are not
impacted and are served as expected.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to