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

Andy Seaborne commented on JENA-1088:
-------------------------------------

Previously, the server made no checks and datasets with spaces could come 
about.  Except of course, URls can not have spaces in (and there no decoding). 
i.e. it goes wrong.

The checking code in the server is at: 
[ActionDatasets.java#L169|https://github.com/apache/jena/blob/master/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/mgt/ActionDatasets.java#L169].

People writing to the API are writing assembler files: strings have "" round 
them and extra leading/trailing spaces are obvious.  The server should check 
but not change IMO.

But in a UI it's easy to put the odd space in and not be able to see it.  So 
good to have the same checks (nicer error messages) but also prepare the name 
by trimming leading and trailing WS to be helpful.



> Fuseki 2 allows duplicate datasets when using only spaces in name
> -----------------------------------------------------------------
>
>                 Key: JENA-1088
>                 URL: https://issues.apache.org/jira/browse/JENA-1088
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Fuseki
>            Reporter: Bruno P. Kinoshita
>            Assignee: Andy Seaborne
>              Labels: web
>         Attachments: JENA-1088.png, Jena-1088-AFS-1.patch
>
>   Original Estimate: 2h
>          Time Spent: 2h
>  Remaining Estimate: 0h
>
> Was testing Fuseki 2, before reviewing the docs, and decided to experiment a 
> few things. Looks like if you use just spaces in the dataset name, you are 
> allowed to create a new one, and it gets the name "/". Which is fine.
> But if you try that again with another random number of spaces, it inserts 
> another dataset with the same name.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to