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

[CX] Wrong error message when bucketname is left empty in file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • CBAS DP
    • CBAS DP
    • analytics
    • None
    • Untriaged
    • Centos 64-bit
    • Unknown
    • CX Sprint 21, CX Sprint 22

    Description

      Contents of file.txt:
      create bucket multiple_Bucket with {"bucket":"","nodes":"127.0.0.1","password":""};
      create shadow dataset m123 on multiple_Bucket;
      connect bucket multiple_Bucket;
       
      Try following curl command:
      curl -s --data pretty=true --data format=CLEAN_JSON --data-urlencode statement@file.txt http://localhost:8095/analytics/service
      {
      	"requestID": "2fe83536-6051-4c31-a2e0-1f8f2a917b95",
      	"signature": "*",
      	"errors": [{ 
      	"code": "1",
      	*"msg": "A bucket with this name m123 doesn't exist."*
      	}],
      	"status": "fatal",
      	"metrics": {
      		"elapsedTime": "77.220948ms",
      		"executionTime": "76.690088ms",
      		"resultCount": "0",
      		"resultSize": "0"
      	}
      }
       
      Error message should be : Bucketname left empty.
      
      

      Attachments

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

        Activity

          People

            ritesh.agarwal Ritesh Agarwal
            Prerna.Manaktala Prerna Manaktala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty