ISSUE-58

.htaccess 'accept header' ONLY responds to a header which EXACTLY matches

State:
CLOSED
Product:
Recipes
Raised by:
Jon Phipps
Opened on:
2007-07-17
Description:
Per Tim BL

"The recipe for responding to an accept header only responds to a header which
EXACTLY matches "application/rdf+xml". However, a client may send (and often
will) a header with many  comma-separated values, and they may have quality
parameters (q=0.xx).

This is a serious problem as people are copying the recipe, and making sites
which do not work."

This applies to Recipes 3, 4, 5 and references this part of the .htaccess Apache
configuration:

"...

# Rewrite rule to serve RDF/XML content if requested 
RewriteCond %{HTTP_ACCEPT} application/rdf\\+xml

..."

The rewrite condition regular expression: "application/rdf\\+xml" 
needs to be rewritten
Related emails:
  1. ISSUE-58: .htaccess \\'accept header\\' ONLY responds to a header which EXACTLY matches \\'application/rdf+xml\\' (from dean+cgi@w3.org on 2007-07-17)
  2. Re: [Recipes] ISSUE-58: .htaccess 'accept header' ONLY responds to a header which EXACTLY matches \\'application/rdf+xml\\' (from diego.berrueta@fundacionctic.org on 2007-07-18)
  3. RE: [Recipes] ISSUE-58: .htaccess 'accept header' ONLY responds to a header which EXACTLY matches \\'application/rdf+xml\\' (from A.J.Miles@rl.ac.uk on 2007-07-24)
  4. Re: [Recipes] ISSUE-58: .htaccess 'accept header' ONLY responds to a header which EXACTLY matches \\'application/rdf+xml\\' (from diego.berrueta@fundacionctic.org on 2007-07-25)
  5. RE: [Recipes] ISSUE-58: .htaccess 'accept header' ONLY responds to a header which EXACTLY matches \\'application/rdf+xml\\' (from A.J.Miles@rl.ac.uk on 2007-07-30)
  6. RE: [Recipes] ISSUE-58: .htaccess 'accept header' ONLY responds to a header which EXACTLY matches \\'application/rdf+xml\\' (from diego.berrueta@fundacionctic.org on 2007-08-06)
  7. Re: Agenda - Sep 04 2007 SWD telecon - 1500 UTC (from diego.berrueta@fundacionctic.org on 2007-09-04)
  8. [ALL] Discussion of 'Recipes' in Amsterdam (from baker@sub.uni-goettingen.de on 2007-09-04)
  9. [ALL] Agenda - Sep 18 2007 SWD telecon - 1500 UTC (from baker@sub.uni-goettingen.de on 2007-09-15)
  10. [RECIPES] Amsterdam topic 'Recipes' (from baker@sub.uni-goettingen.de on 2007-09-15)
  11. Re: [ALL] Agenda - Sep 18 2007 SWD telecon - 1500 UTC (from qreul@csd.abdn.ac.uk on 2007-09-18)
  12. Re: [ALL] Agenda - Sep 18 2007 SWD telecon - 1500 UTC (from aisaac@few.vu.nl on 2007-09-18)
  13. [Recipes] roadmap to the next draft (from diego.berrueta@fundacionctic.org on 2008-03-11)
  14. Re: [Recipes] roadmap to the next draft (from jphipps@madcreek.com on 2008-03-11)
  15. Meeting record: 2008-03-11 telecon (from aisaac@few.vu.nl on 2008-03-12)
  16. Re: [Recipes] Open issues in Recipes (from diego.berrueta@fundacionctic.org on 2008-10-04)
  17. Re: [Recipes] Open issues in Recipes (from diego.berrueta@fundacionctic.org on 2008-10-09)

Related notes:

2008-10-09: Closed (resolved in http://www.w3.org/2008/10/07-swd-minutes.html#item03 , see also http://lists.w3.org/Archives/Public/public-swd-wg/2008Oct/0067.html ). The current document contains an Editor's Note that explicitly acknowledges the issue and invites to send comments, see http://www.w3.org/TR/2008/NOTE-swbp-vocab-pub-20080828/#negotiation . Note that this issue isn't fixed from a technical perspective (we haven't found a proper solution using rewrite rules). Comments are still welcome on how to improve the recipes wrt this issue. Thus, the 'closed' status of this issue doesn't mean 'fixed', but 'acknowledged and discussed in the document'.