Bug 51402 - "ForceLanguagePriority Fallback" not working as implied in the documentation
Summary: "ForceLanguagePriority Fallback" not working as implied in the documentation
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_negotiation (show other bugs)
Version: 2.2.17
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-21 11:33 UTC by Jan Lanik
Modified: 2011-06-21 11:42 UTC (History)
1 user (show)



Attachments

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
FurtherMore:

If we set
ForceLanguagePriority None

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