Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-31903

Collection or Scope creation fails when the name has certain combination of special characters

    XMLWordPrintable

Details

    • Bug
    • Resolution: User Error
    • Major
    • 6.5.0
    • 6.5.0
    • couchbase-bucket
    • None

    Description

      Creation of scope or collection within a scope with name=Scope_With-Largename_%81 or name=Colle_With-Largename_%81 fails with the below error 

      {"errors":{"name":"Length must be in range from 1 to 30"}}.

      Name has only 24 characters. Without any special characters I can able to create a scope or collection with 30 characters.

      curl -u Administrator:password -i -X POST http://10.112.176.101:8091//pools/default/buckets/default/collections/ -d name=Scope_With-Largename_%81

      HTTP/1.1 400 Bad Request

      X-XSS-Protection: 1; mode=block

      X-Permitted-Cross-Domain-Policies: none

      X-Frame-Options: DENY

      X-Content-Type-Options: nosniff

      Server: Couchbase Server

      Pragma: no-cache

      Expires: Thu, 01 Jan 1970 00:00:00 GMT

      Date: Thu, 08 Nov 2018 06:53:03 GMT

      Content-Type: application/json

      Content-Length: 58

      Cache-Control: no-cache,no-store,must-revalidate

       

      {"errors":

      {"name":"Length must be in range from 1 to 30"}

      }

       

      Failing on 6.5.0-1545 and 6.5.0-1580 builds.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            anitha.kuberan Anitha Kuberan
            anitha.kuberan Anitha Kuberan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty