You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Henning Holtschneider <hh...@loca.net> on 2001/08/21 19:23:18 UTC

mod_negotiation/8220: default fallback for language negotiation instead of error 406 document

>Number:         8220
>Category:       mod_negotiation
>Synopsis:       default fallback for language negotiation instead of error 406 document
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   apache
>Arrival-Date:   Tue Aug 21 10:30:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     hh@loca.net
>Release:        1.3.12
>Organization:
apache
>Environment:
n/a
>Description:
When using multiviews to display different language pages depending on the
browser settings, no fallback language can be defined, i.e. if no document for
the desired language is available, only an error page can be displayed. This
breaks frame-based page layouts and scares off the average user.
>How-To-Repeat:

>Fix:
RFC 2616 says: "HTTP/1.1 servers are allowed to return responses which are not
acceptable according to the accept headers sent in the request. In some cases,
this may even be preferable to sending a 406 response."
[http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.7]

So, just add a configuration directive like "FallbackLanguage" which indicates
the language that should be served instead of an error document if no acceptable
language version of a document is available on the server. This should be an 
optional configuration directive. If omitted, the default "Not Acceptable" page
should be generated.
>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <ap...@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]