iand / moriarty

Automatically exported from code.google.com/p/moriarty
GNU General Public License v2.0
1 stars 0 forks source link

Authenticated SPARQL queries to endpoints without access control receives a 400 from Platform #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Create a Store object with Credentials passed into its constructor,
pointing at a Platform store which doesn't require authentication for
SPARQL queries
2. Get the sparql service from the Store object
3. Run a SPARQL query using the SparqlService's query() method

What is the expected output? What do you see instead?

Expected my query to run and return a 200.

However, because the Store object has authentication, this is passed on to
the SPARQL service; but if the store you're querying is open to the public,
the first request from moriarty (expecting a Digest auth header) instead
gets a 400 response from the Platform. (The POST body is not included in
the first request, as it's just being sent to get the digest.)

What version of the product are you using? On what operating system?

revision 59 of moriarty, PHP 5.2.6, curl 7.18.2, on Ubuntu Linux

Original issue reported on code.google.com by townxelliot on 3 Apr 2009 at 3:45