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

Error message is not user-friendly when user tries to compile a query and pass string for startkey and endkey

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • bug-backlog
    • 2.0.1, 2.1.0
    • UI
    • Security Level: Public
    • None
    • Untriaged
    • Ubuntu 32-bit
    • a

    Description

      If user do not add quotes to string key error appears:
      {"error":"bad_request","reason":"invalid UTF-8 JSON: error,{1,\"lexical error: invalid char in json text.\\n\",\n \"simple\"}"}
      but there is no invalid char, just the string is not quoted.

      Steps:
      1. create some doc with string key ('simple' in my case)
      2. create some view
      3. go to view page and enter just simple in startkey parameter
      4. perform query

      Attachments

        Issue Links

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

          Activity

            People

              mikew Mike Wiederhold [X] (Inactive)
              iryna iryna
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty