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

[N1QL] Json encoded creds is not recognized by query

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.5.0
    • 4.1.0
    • query
    • None
    • 4.1.0-5005
    • Untriaged
    • Unknown

    Description

      Query accepts only form encoded creds parameter, it fails when using json encoding.

      curl -H "Content-Type: application/json" -X POST http://127.0.0.1:8093/query/service -d '{ "statement" : "create primary index on default","creds": [

      {"user":"default", "pass": ""}

      ] }'
      {
      "requestID": "0fd85fa1-242b-4a5e-b460-4557c241c8d9",
      "errors": [
      {
      "code": 1070,
      "msg": "creds has to be of type array of

      { user, pass }

      "
      }
      ],
      "status": "fatal",
      "metrics":

      { "elapsedTime": "152.899µs", "executionTime": "144.236µs", "resultCount": 0, "resultSize": 0, "errorCount": 1 }

      }

      Attachments

        For Gerrit Dashboard: MB-19218
        # Subject Branch Project Status CR V

        Activity

          People

            johan.larson Johan Larson (Inactive)
            subhashni Subhashni Balakrishnan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty