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

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

            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
files for duplicating the issue  (includes .htaccess)

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


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/

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' 

This issue happens regardless of the value of AcceptPathInfo.

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

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