You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (Jira)" <ji...@apache.org> on 2022/02/02 18:21:00 UTC
[jira] [Updated] (JENA-2271) Fuseki UI: Uploading a triples file to a named graph is "Bad Request".
[ https://issues.apache.org/jira/browse/JENA-2271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Seaborne updated JENA-2271:
--------------------------------
Description:
On the "add data" tab, if the graph name is set to "http://example/graphname" in the UI, a file upload to the server returns "400 Bad request".
Chrome dev tools show the POST as:
{noformat}
http://localhost:3030/ds/data?graph=http:/example/graphname
{noformat}
The request ends up as {{?graph=http:/example/graphname}} with one slash.
Using three /// in the graph name also produces a single-slash {{{}graph={}}}.
Using {{http:%2F/example/graphname}} does send the data successfully to the named graph.
(This is not an encoding issue - the query string is right without encoding. "{{/}}" and "{{:}}" are valid in the query string of a URI.)
was:
On the "add data" tab, if the graph name is set to "http://example/graphname" in the UI, a file upload to the server returns "400 Bad request".
Chrome dev tools show the POST as:
{noformat}
http://localhost:3030/ds/data?graph=http:/example/graphname
{noformat}
The request ends up as {{?graph=http:/example/graphname}} with one slash.
Using three /// in the graph name also produces a single-slash {{{}graph={}}}.
Using {{http:%2F/example/graphname}} does send the data successfully to the named graph.
> Fuseki UI: Uploading a triples file to a named graph is "Bad Request".
> ----------------------------------------------------------------------
>
> Key: JENA-2271
> URL: https://issues.apache.org/jira/browse/JENA-2271
> Project: Apache Jena
> Issue Type: Bug
> Components: Fuseki
> Affects Versions: Jena 4.4.0
> Reporter: Andy Seaborne
> Priority: Major
>
> On the "add data" tab, if the graph name is set to "http://example/graphname" in the UI, a file upload to the server returns "400 Bad request".
> Chrome dev tools show the POST as:
> {noformat}
> http://localhost:3030/ds/data?graph=http:/example/graphname
> {noformat}
> The request ends up as {{?graph=http:/example/graphname}} with one slash.
> Using three /// in the graph name also produces a single-slash {{{}graph={}}}.
> Using {{http:%2F/example/graphname}} does send the data successfully to the named graph.
> (This is not an encoding issue - the query string is right without encoding. "{{/}}" and "{{:}}" are valid in the query string of a URI.)
--
This message was sent by Atlassian Jira
(v8.20.1#820001)