[redland-dev] [Raptor RDF Syntax Library 0000604]: Reflect change on Content-Location header from RFC7231 (HTTP)
Mantis Bug Tracker
mantis-bug-sender at librdf.org
Wed Oct 7 12:40:51 EDT 2015
The following issue has been SUBMITTED.
======================================================================
http://bugs.librdf.org/mantis/view.php?id=604
======================================================================
Reported By: ruediger05
Assigned To:
======================================================================
Project: Raptor RDF Syntax Library
Issue ID: 604
Category: utilities
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Syntax Name: RDF/XML ; Turtle ; ...
======================================================================
Date Submitted: 2015-10-07 09:40
Last Modified: 2015-10-07 09:40
======================================================================
Summary: Reflect change on Content-Location header from
RFC7231 (HTTP)
Description:
Appendix B to RFC7231 says [1]:
The definition of Content-Location has been changed to no longer
affect the base URI for resolving relative URI references, due to
poor implementation support and the undesirable effect of potentially
breaking relative links in content-negotiated resources.
Rapper resolves against the URI in the Content-Location header.
[1] http://tools.ietf.org/html/rfc7231#appendix-B
Steps to Reproduce:
request a RDF resource from a HTTP server that does content-negotiation and
states the actual URI of the representation using the Content-Location header,
like:
> GET /foaf HTTP/1.1
> Host: example.org
> Accept: application/rdf+xml
=
< HTTP/1.1 200 OK
< Content-Location: /foaf.rdf
< Content-Type: application/rdf+xml
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
<rdf:Description rdf:about="">
<rdfs:label>Test</rdfs:label>
</rdf:Description>
</rdf:RDF>
--- or ---
> GET /foaf HTTP/1.1
> Host: example.org
> Accept: text/turtle
=
< HTTP/1.1 200 OK
< Content-Location: /foaf.ttl
< Content-Type: text/turtle
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
<> rdfs:label "Test" .
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-10-07 09:40 ruediger05 New Issue
======================================================================
More information about the redland-dev
mailing list