Rem Collier created JENA-2133: --------------------------------- Summary: Jena sends multiple media types in accept header when reading knowledge via a url Key: JENA-2133 URL: https://issues.apache.org/jira/browse/JENA-2133 Project: Apache Jena Issue Type: Bug Components: RIOT Affects Versions: Jena 4.1.0 Environment: Windows / WSL2 / Maven / Java 14.0.2 Reporter: Rem Collier Fix For: Jena 4.2.0
When I create a basic model and use the read(...) method to read a remote file, Jena includes multiple media types in the request header. {code:java} Accept: text/turtle,application/n-triples;q=0.9,application/rdf+xml;q=0.7,application/trig,application/n-quads;q=0.9,application/ld+json;q=0.8,*/*;q=0.5{code} The ordering and priorities of the media types does not change, even when different formats are chosen. i.e. the following code gives the above list of media types: {code:java} Model model = ModelFactory.createDefaultModel(); model.read("http://localhost:8080/sim", "TURTLE"); {code} However, the code below also gives the same list of media types: {code:java} Model model = ModelFactory.createDefaultModel(); model.read("http://localhost:8080/sim", "RDF/XML");{code} This results in the knowledge being downloaded in the incorrect format... -- This message was sent by Atlassian Jira (v8.3.4#803005)