[ 
https://issues.apache.org/jira/browse/SOLR-11864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hem updated SOLR-11864:
-----------------------
    Summary: Create Collection API allows creating collection with trailing 
space  (was: API inconsistency in create and delete collection)

> Create Collection API allows creating collection with trailing space
> --------------------------------------------------------------------
>
>                 Key: SOLR-11864
>                 URL: https://issues.apache.org/jira/browse/SOLR-11864
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: v2 API
>    Affects Versions: 5.3.1
>            Reporter: Hem
>            Priority: Major
>
> When i create a collection through java using the client jar, if there is a 
> space following the collection name, the collection gets created.
> But when i try to delete the same collection with the space through delete 
> API from the browser I get the error of collection not found.
> Steps to reproduce:
>  # Create a collection through client with collection name having a space.
>  # Try to delete it using collection delete API through browser
> Another issue is the collection name with space at the end, the shards are 
> always in recovery state and after some time shifts to degraded state.
> The API should be able to delete the collection. And if collection name does 
> not require the space then there should be an internal trim or a validation 
> error thrown.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to