Bug 51402 - "ForceLanguagePriority Fallback" not working as implied in the documentation
"ForceLanguagePriority Fallback" not working as implied in the documentation
Status: NEW
Product: Apache httpd-2
Classification: Unclassified
Component: mod_negotiation
PC Linux
: P2 normal (vote)
: ---
Assigned To: Apache HTTPD Bugs Mailing List
Depends on:
  Show dependency tree
Reported: 2011-06-21 11:33 UTC by Jan Lanik
Modified: 2011-06-21 11:42 UTC (History)
1 user (show)


Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lanik 2011-06-21 11:33:40 UTC
Suppose we have files hello.html.en, hello.html.de and hello.html.fr

The MultiViews option is enabled and the language priority is set as follows:
LanguagePriority en de fr es

Furthermore we have 
ForceLanguagePriority Fallback

Now let start the server and send a request for hello.html with 
Accept-Language: sp; q=0.8, en; q=0.2, de; q=0.2, fr; q=0.2

As ForceLanguagePriority Prefer is not set, we should (according to http://httpd.apache.org/docs/2.2/mod/mod_negotiation.html )
we should get a http status 300 (MULTIPLE CHOICES).

But when I run it actually I got hello.html.fr (!). So not only it does not
conform to the documentation which implies that an error should be returned,
but also intuitively the result is wrong as the logical choice would be english (as it is when Prefer specified).
Comment 1 Jan Lanik 2011-06-21 11:42:24 UTC

If we set
ForceLanguagePriority None

then as a response for the request for hello.html without Accept-Language header 
the french file was returned