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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.0
    • Fix Version/s: bug-backlog
    • Component/s: UI
    • Security Level: Public
    • Labels:
    • Triage:
      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 }

      ]

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

        Activity

        Hide
        maria Maria McDuff (Inactive) added a comment -

        per bug scrub. moving to 2.1. can't get to it in 2.0.2 release.

        Show
        maria Maria McDuff (Inactive) added a comment - per bug scrub. moving to 2.1. can't get to it in 2.0.2 release.
        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment -

        It has to be decided if we're actually supporting arrays us top-level "entity" in document. Classic couchdb does not.

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - It has to be decided if we're actually supporting arrays us top-level "entity" in document. Classic couchdb does not.
        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment -

        Artem recently fixed duplicate of this issue. We're simply not allowing arrays on document editor in ui

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - Artem recently fixed duplicate of this issue. We're simply not allowing arrays on document editor in ui
        Hide
        raju Raju Suravarjjala added a comment -

        Bulk closing all invalid bugs that are duplicate, user error, invalid. Please feel free to reopen them if you feel otherwise

        Show
        raju Raju Suravarjjala added a comment - Bulk closing all invalid bugs that are duplicate, user error, invalid. Please feel free to reopen them if you feel otherwise

          People

          • Assignee:
            artem Artem Stemkovski
            Reporter:
            james.mauss James Mauss
          • Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes