Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-11864

Create Collection API allows creating collection with trailing space

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 5.3.1
    • None
    • v2 API
    • None

    Description

      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:

      1. Create a collection through client with collection name having a space.
      2. 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            hemshah.zycus Hem
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: