www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Axel Beckert <a...@dagstuhl.de>
Subject mod_negotiation/5462: Accept-Header has no effect on returned content-type if qs parameter misses in type-map
Date Mon, 13 Dec 1999 14:29:17 GMT

>Number:         5462
>Category:       mod_negotiation
>Synopsis:       Accept-Header has no effect on returned content-type if qs parameter misses
in type-map
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Mon Dec 13 06:30:01 PST 1999
>Last-Modified:
>Originator:     axel@dagstuhl.de
>Organization:
apache
>Release:        1.3.9
>Environment:
uname -a: SunOS dagoffice 4.1.4 11 sun4m
gcc --version: 2.95.2
>Description:
I tried to use content negotiation for offering both WML (WAP) and HTML pages
at the same URL. I offer 3 versions: english HTML, german HTML and english WML.

If a request has the "Accept-Language: en" header, the Apache server always
returns the WML page, also if a header "Accept: text/html" exists in the
request. (Tested with mconnect -p 80 and wget --header="...".)

And in the answer Apache says, as it should: 
Vary: accept,accept-language,accept-charset

If I add the qs parameter to the content-type entry in the type-map, everything
works fine and the server returns the content-type that was requested. (Any
other changes like level=xy hadn't any effect on this behavior.)

But in the Apache documentation the qs parameter everywhere is marked as 
optional, not as necessary, so this is either a software bug (this is what I 
guess, because the Accept header should be paid attention, regardless of the
amount of information in the type-map) or a documentation bug.
>How-To-Repeat:
My type-map has the following content:
---8<---
URI: /ENG/index.html
Content-type: text/html; charset=iso-8859-1; level=3
Content-language: en

URI: /WAP/index.wml
Content-type: text/vnd.wap.wml;
Content-language: en

URI: /DEU/index.html
Content-type: text/html; charset=iso-8859-1; level=3
Content-language: de
--->8---
If your preferred language is "en", you'll get a WML page, if it's "de" you'll
get a German HTML page.
>Fix:
Nope.
>Audit-Trail:
>Unformatted:
[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!     ]




Mime
View raw message