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

DCP Data Type is non-JSON for docs containing zero-value JSON numbers with exponent

    XMLWordPrintable

Details

    • Untriaged
    • Unknown

    Description

      When creating a document containing a zero-value JSON number using an exponent (E.g: "0e5", or "0e-5"), the document is sent over DCP without a JSON data type flag set.

      The document appears to have a JSON data type set correctly in the UI when viewing the document. This issue is just seen in the data type field over DCP.

      If the number is non-zero using an exponent (e.g: "0.1e5", or "0.1e-5"), or contains no exponent (e.g. "0.0000") it is correctly interpreted as JSON and sent with the JSON data type.

      Issue originally reported here: https://github.com/couchbase/sync_gateway/issues/4508

      Attachments

        1. Screenshot 2020-02-24 at 13.54.50.png
          280 kB
          Ben Brooks
        2. Screenshot 2020-03-12 at 4.53.48 PM.png
          440 kB
          Anitha Kuberan
        3. Screenshot 2020-03-12 at 4.54.12 PM.png
          86 kB
          Anitha Kuberan
        4. Screenshot 2020-03-12 at 4.54.25 PM.png
          14 kB
          Anitha Kuberan
        5. Screenshot 2020-03-12 at 4.56.06 PM.png
          118 kB
          Anitha Kuberan
        For Gerrit Dashboard: MB-38034
        # Subject Branch Project Status CR V

        Activity

          People

            anitha.kuberan Anitha Kuberan
            ben.brooks Ben Brooks
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty