[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug 62613] New: AcceptPathInfo is ignored when using type maps


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

            Bug ID: 62613
           Summary: AcceptPathInfo is ignored when using type maps
           Product: Apache httpd-2
           Version: 2.4.34
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_negotiation
          Assignee: bugs@xxxxxxxxxxxxxxxx
          Reporter: jose@xxxxxx
  Target Milestone: ---

Created attachment 36081
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36081&action=edit
files for duplicating the issue  (includes .htaccess)

Given the following structure (sent as a .zip file):

  hello.txt.var
  .htaccess
  files/hello.txt.en
  files/hello.txt.fr

with the .htaccess content as follows:
[[
AddHandler type-map .var
MultiviewsMatch any
AcceptPathInfo Off
]]

and the type map content (hello.txt.var) as follows:
[[
URI: hello.txt

Content-Language: en
Content-Type: text/plain
URI: files/hello.en.txt

Content-Language: fr
Content-Type: text/plain
URI: files/hello.fr.txt
]]

The following URLs work as expected:

GET '-H Accept-Language: en'  http://localhost/apache_test/hello.txt
GET '-H Accept-Language: fr'  http://localhost/apache_test/hello.txt
GET '-H Accept-Language: fr'  http://localhost/apache_test/hello
GET '-H Accept-Language: fr'  http://localhost/apache_test/files/hello

However, even though AcceptPathInfo is disabled, the following URLs
surprisingly also work although expected to fail:

GET '-H Accept-Language: en'  http://localhost/apache_test/hello.txt/foo
GET '-H Accept-Language: en'  http://localhost/apache_test/hello/foo
GET '-H Accept-Language: fr'  http://localhost/apache_test/hello/foo/bar
GET '-H Accept-Language: fr' 
http://localhost/apache_test/hello/jose/foo/bar/mon/day/

This issue happens regardless of the value of AcceptPathInfo.

In contrast, the following one, which doesn't depend on the type map fails as
expected:

GET '-H Accept-Language: fr'  http://localhost/apache_test/files/hello/foo

It semss that somewhere in the pile, the request path info

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: bugs-help@xxxxxxxxxxxxxxxx