Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-751

unable to query sasl bucket

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.1.3
    • None
    • None
    • Security Level: Public
    • None

    Description

      Bucket bucket = cluster.openBucket("travel-sample","password");

      QueryResult result = bucket.query(Query.simple("CREATE PRIMARY INDEX ON default:`travel-sample` using gsi&creds=[

      {\"user\":\"local:travel-sample\",\"pass\":\"password\"}

      ]"));

      gives syntax error at creds. However curl works

      curl -v http://172.23.105.230:8093/query -d 'statement=CREATE PRIMARY INDEX ON default:`travel-sample` using gsi&creds=[

      {"user":"local:travel-sample","pass":"password"}

      ]'

      Attachments

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

        Activity

          People

            daschl Michael Nitschinger
            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