[ 
https://issues.apache.org/jira/browse/JENA-2271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17487397#comment-17487397
 ] 

Bruno P. Kinoshita commented on JENA-2271:
------------------------------------------

Reproduced. I added some code to remove double slashes from URL, starting from 
the query path... but forgot about valid double slashes in the Graph Name. 
Sorry! PR submitted (with unit tests)

> 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
>            Assignee: Bruno P. Kinoshita
>            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)

Reply via email to