jpmccu / sadi

Automatically exported from code.google.com/p/sadi
0 stars 0 forks source link

sadi.py mod_python conneg missing #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When sadi.py services are deployed via mod_python, conneg is not recognized. 
This prevents one from requesting RDF/XML or Turtle, when a request without 
connect returns Turtle.

bash-3.2$ curl -s 
http://aquarius.tw.rpi.edu/projects/datafaqs/services/sadi/core/select-faqts/ide
ntity | head
@prefix datafaqs: <http://purl.org/twc/vocab/datafaqs#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix mygrid: <http://www.mygrid.org.uk/mygrid-moby-service#> .
@prefix protegedc: <http://protege.stanford.edu/plugins/owl/dc/protege-dc.owl#> 
.
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

bash-3.2$ curl -sH "Accept: application/rdf+xml" -L  
http://aquarius.tw.rpi.edu/projects/datafaqs/services/sadi/core/select-faqts/ide
ntity
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>406 Not Acceptable</title>
</head><body>
<h1>Not Acceptable</h1>
<p>An appropriate representation of the requested resource 
/services/sadi/core/select-faqts/identity could not be found on this server.</p>
Available variants:
<ul>
<li><a href="identity.py">identity.py</a> , type text/x-python</li>
</ul>
<hr>
<address>Apache/2.2.14 (Ubuntu) Server at 192.168.1.5 Port 80</address>
</body></html>

bash-3.2$ curl -sH "Accept: text/turtle" -L  
http://aquarius.tw.rpi.edu/projects/datafaqs/services/sadi/core/select-faqts/ide
ntity
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>406 Not Acceptable</title>
</head><body>
<h1>Not Acceptable</h1>
<p>An appropriate representation of the requested resource 
/services/sadi/core/select-faqts/identity could not be found on this server.</p>
Available variants:
<ul>
<li><a href="identity.py">identity.py</a> , type text/x-python</li>
</ul>
<hr>
<address>Apache/2.2.14 (Ubuntu) Server at 192.168.1.5 Port 80</address>
</body></html>

Original issue reported on code.google.com by tim...@gmail.com on 21 May 2012 at 5:14

GoogleCodeExporter commented 9 years ago

Original comment by elmccar...@gmail.com on 30 May 2012 at 6:13

GoogleCodeExporter commented 9 years ago
Turns out this was because MultiViews was enabled for the services directory. 
If MultiViews are enabled and are redirecting to a different extension, this 
will result in this behavior.

Original comment by mccus...@gmail.com on 14 Jun 2012 at 6:45