Details

    • Type: Improvement
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: UI
    • Security Level: Public
    • Labels:
      None

      Description

      A user on the forums asked why it is that we don't send an error to the client for invalid JSON. My response was compatibility with Membase as well as being abe to allow users to use Couchbase as both a document and key-value store. While I certainly wouldn't advocate that we change the way we are doing things. It might be a goo idea to have a checkbox in the settings that the user can check to say that the server should return an error if they are not using valid JSON. This will allow people to put Couchbase in a full document store mode.

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

        Activity

        Show
        mikew Mike Wiederhold added a comment - Forum post link: http://www.couchbase.org/forums/thread/save-value-which-invalid-json#comment-1004728
        Hide
        robtindall Rob Tindall added a comment -

        This is a big deal to us, mainly due to the way that the client has now indication that the json was considered invalid and therefore could not detect or prevent, also the value is lost so we cant recover for it.
        I suggest you need a content type so that json can be specified and then you can return an error accordingly.

        Show
        robtindall Rob Tindall added a comment - This is a big deal to us, mainly due to the way that the client has now indication that the json was considered invalid and therefore could not detect or prevent, also the value is lost so we cant recover for it. I suggest you need a content type so that json can be specified and then you can return an error accordingly.
        Hide
        mikew Mike Wiederhold added a comment -

        I think I added this to your forum post to, but in case I didn't (and also for others reading this) we do have this feature planned for Couchbase Server 2.0.

        Show
        mikew Mike Wiederhold added a comment - I think I added this to your forum post to, but in case I didn't (and also for others reading this) we do have this feature planned for Couchbase Server 2.0.
        Hide
        peter peter added a comment -

        Syntax highlighting in the UI reveals invalid JSON.

        Show
        peter peter added a comment - Syntax highlighting in the UI reveals invalid JSON.
        Hide
        mikew Mike Wiederhold added a comment -

        The idea here is that the user wants to receive an error from the server that basically says "This is not JSON so I am not going to store it". You can think it as an option to say I want Couchbase to be a strict document store and I never want to use it to store blobs.

        Show
        mikew Mike Wiederhold added a comment - The idea here is that the user wants to receive an error from the server that basically says "This is not JSON so I am not going to store it". You can think it as an option to say I want Couchbase to be a strict document store and I never want to use it to store blobs.
        Hide
        dipti Dipti Borkar added a comment -

        The UI does not allow you to save JSON that is invalid now.

        Show
        dipti Dipti Borkar added a comment - The UI does not allow you to save JSON that is invalid now.

          People

          • Assignee:
            dipti Dipti Borkar
            Reporter:
            mikew Mike Wiederhold
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes