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

Error in Document Editor with root array: badarg,[{erlang,iolist_to_binary...

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Minor
    • bug-backlog
    • 2.0
    • UI
    • Security Level: Public
    • Untriaged

    Description

      Currently we allow a valid JSON object to be created with an Array as the root object.

      When editing the Document from the GUI the is an error and the object can not be changed.

      {'EXIT',{badarg,[{erlang,iolist_to_binary, [[{[

      {<<"gameLevel">>,1}

      ,

      {<<"rows">>,8}

      ]}, {[

      {<<"gameLevel">>,2}

      ,

      {<<"rows">>,10}

      ]}]]},

      {couch_doc,to_raw_json_binary_views,1}

      ,

      {capi_crud,update_doc,3}

      ,

      {rpc,local_call,3}

      ,

      {capi_frontend,attempt,6}

      ,

      {capi_frontend,update_doc,3}

      ,

      {couch_httpd_db,update_doc,5}

      ,

      {couch_httpd,handle_request,6}

      ]}}

      Example doc:
      [

      { "gameLevel": 1, "rows": 8 }

      ,

      { "gameLevel": 2, "rows": 10 }

      ]

      Attachments

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

        Activity

          People

            artem Artem Stemkovski
            james.mauss James Mauss (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty