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

named parameters cannot be found in JSON requests

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.0.0
    • cbq-DP4
    • query
    • Security Level: Public
    • None
    • Untriaged
    • Unknown

    Description

      The way the JSON request is parsed, named parameters "keys" are not stripped of their $ prefix, contrary to what is done for Http parsing here https://github.com/couchbaselabs/query/blob/master/server/http/service_request.go#L473

      (see JSON named parameters parsing here: https://github.com/couchbaselabs/query/blob/master/server/http/service_request.go#L626)

      Since named parameters are detected by noticing a $ prefix in the JSON request body, this can't be worked around by just not prefixing.

      Possible workarounds at the moment are using positional parameters or using http url-form-encoded request mode...

      Attachments

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

        Activity

          People

            colm Colm Mchugh (Inactive)
            simonbasle Simon Baslé (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