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

            Bug ID: 55443
           Summary: never gives 300 multiple choices
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: mod_negotiation
          Assignee: bugs@httpd.apache.org
          Reporter: cales...@scientia.net

Hi.


There seems to something fishy with the static negotiation algos for
languages/mime types etc.

Sending
Accept: image/gif
while having
file.png
file.jpeg
correctly gives the 406 with the HTML and a list of alternatives

Sending
Accept: image/png, image/jpeg
while having
file.png
file.jpeg
though,
gives the jpeg (as this is smaller).

Well while this may be reasonable for some people, it breaks standards as one
should probably get the 300 mutliple choices.


So apache needs a flag to allow having standards compliant behaviour, i.e.
something like ForceLanguagePriority.

But now,
hen setting
ForceLanguagePriority none
which should be the default btw, as all others more or less break the RFCs.
one also doesn't get at 300.

E.g. sending
Accept: en, de
while having
file.en.txt
file.de.txt
again gives the smaller of the two.
Accept: fr
would again give a correct 406

Interestingly, having:
Accept: fr
while having
file.en.txt
file.de.txt
file.gif
returns the GIF... I'm not sure whether this breaks standards,... but
definitely sounds like a bad thing.


Cheers,
Chris.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org

Reply via email to