Ticket #64 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Strabon Endpoint does not accept multiple values for the Accept header

Reported by: charnik Owned by: charnik
Priority: trivial Milestone:
Component: endpoint Version: 3.2.8
Keywords: strabon endpoint, accept header, multiple values Cc:

Description

For more information see the bug report in the Jena bug reporting system (https://issues.apache.org/jira/browse/JENA-759) and the corresponding thread in our mailing list (http://cgi.di.uoa.gr/~mailman/pipermail/strabon-users/2014-August/000153.html).

We might also like to do it more generally and capture other parameters as well (like q=).

Change History

comment:1 Changed 3 years ago by charnik

  • Owner changed from pyravlos-team to charnik
  • Status changed from new to assigned

comment:2 Changed 3 years ago by charnik

Check this page (http://www.w3.org/Protocols/HTTP/HTRQ_Headers.html#z3) for information about the format of the accept header.

comment:3 Changed 3 years ago by charnik

  • Status changed from assigned to closed
  • Resolution set to fixed

Fixed in changeset 1357:c37086c4a55f.

comment:4 Changed 3 years ago by charnik

Debugging can be done using the following value for the accept header

*/*;q=0.1, application/sparql-results+json, text/csv;q=0.5, application/sparql-results+xml;q=0.9, text/tab-separated-values;q=0.7, application/json; q=0.2, application/xml;q=0.2

and the following command to invoke the endpoint (just take it from the command scripts/endpoint -d query http://localhost:8080 'SELECT (count(*) as ?c) {?s ?p ?o}'

curl -H 'Content-Type:application/x-www-form-urlencoded' -H 'Accept: */*;q=0.1, application/sparql-results+json, text/csv;q=0.5, application/sparql-results+xml;q=0.9, text/tab-separated-values;q=0.7, application/json; q=0.2, application/xml;q=0.2' --data-urlencode query='select (count(*) as ?c) where {?s ?p ?o}' --data maxLimit='0' http://localhost:8080/Query

Note: See TracTickets for help on using tickets.