https://issues.apache.org/bugzilla/show_bug.cgi?id=51402

             Bug #: 51402
           Summary: "ForceLanguagePriority Fallback" not working as
                    implied in the documentation
           Product: Apache httpd-2
           Version: 2.2.17
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_negotiation
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified


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).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to