Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-10051

URL doesn't accept ; (Semicolons are no longer valid separators from go.1.17)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.1.1
    • 7.1.1, Morpheus
    • documentation, query
    • None
    • DOC-2022-S19
    • 5

    Description

      For every example that uses the Query Service Rest API to run a query, remove the semicolon ; from the end of the query statement, if present.

      (Note that this is not necessary if the query is specified as a parameter in the request body using the application/json MIME type with the Content-Type header.)

      For example, remove the semicolon from the end of the statement in the following example – between $name and &:

      curl -v http://Administrator:password@localhost:8093/query/service -d 'statement=select $name;&$name="k0"'
      

      I've attached a list of all locations in the docs-server component containing the text /query/service – see query_service.txt below. This should help you to find which files need to change. Note that there will be other examples that need changing in the cb-swagger component – I'll deal with these in DOC-10363.

      In addition, we should probably add an example to error code 1040 in the Error Codes – something like: "For example, when using the Query Service REST API, if you are specifying request parameters as form data, the statement may not contain an unescaped semicolon ;." Rephrase as necessary.


      Found by Kamini Jagtiani  as part of pytpcc 7.1.1 runs.

      "errors": [
        {"code":1040,"msg":"Error processing request form - cause: unable to parse form"}
      ]
      

       After upgrade go.1.18.1 it fails due to

      https://github.com/golang/go/issues/25192#issuecomment-789799446

      https://go-review.googlesource.com/c/go/+/325697

       

       

      Attachments

        Issue Links

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

          Activity

            People

              sarah.welton Sarah Welton
              Sitaram.Vemulapalli Sitaram Vemulapalli
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty