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

Preserve TTL when modifying document using REST API

    XMLWordPrintable

Details

    • 0

    Description

      Currently when a document with a defined TTL (Time to Live) is edited using the REST API, the TTL value resets to zero, effectively nullifying the original TTL setting.

      i.e. when using

      `pools/default/buckets/<bucket name>/scopes/<scope name>/collections/<collection name>/docs/<doc id>`.
       

      Attachments

        1. image-2023-10-26-21-01-36-183.png
          333 kB
          Ashwin Govindarajulu
        2. doc_get_req_after_TTL_time.png
          298 kB
          Ashwin Govindarajulu
        3. doc_upsert_with_preserveTTL.png
          428 kB
          Ashwin Govindarajulu
        4. doc_create_exp=40.png
          304 kB
          Ashwin Govindarajulu
        5. preseve_ttl.pcap
          1.05 MB
          Ashwin Govindarajulu
        6. test.log
          7 kB
          Ashwin Govindarajulu

        Issue Links

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

          Activity

            People

              ashwin.govindarajulu Ashwin Govindarajulu
              owend Daniel Owen
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty