www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Iwan Standley <sle...@yahoo.co.uk>
Subject mod_negotiation/6282: Content negotiation being pedantic
Date Fri, 07 Jul 2000 11:13:19 GMT

>Number:         6282
>Category:       mod_negotiation
>Synopsis:       Content negotiation being pedantic
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          change-request
>Submitter-Id:   apache
>Arrival-Date:   Fri Jul 07 04:20:01 PDT 2000
>Originator:     slebog@yahoo.co.uk
>Release:        1.3.11
Win95, Win98, SCO Unixware 7, Slackware 7
I'll explain by example, it's easier.

Say I've got four variants:

My browser is set to prefer html over pdf's, and the accept-language only contains 'en'. 
If I request 'page' or 'page.en' I get page.en.html, just as I should.  But if I request 'page.de'
I get a '406 Not acceptable' error.  I know my accept-language should really contain a 'de'
if I want to read German, but if I just want to show an example German page to an English
browser, it's rather unrealistic to ask people to alter their browser settings.

If I request 'page.de.html' then I get the page fine, since no negotiation takes place because
I've explicity said which file I want.  But in my example I've already explicity said which
language I want -- can't mod_negotiation take the lead from there, and just perform the negotiation
between .html and .pdf?

It's especially a problem for me since I provide sites in lesser-used and minority languages,
so the correct language codes are hardly ever present in the user's browser's Accept-Language.

At the moment I've got an ErrorDocument pointing to a perl script which reads the Accept string,
works out the correct variant to send, then forces a redirect using the full file name.  Not
the best solution, I'm sure...
See example above
Portions of the filename that have been specifically included in the request shouldn't be
taken into account when negotiating.
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@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!     ]

View raw message