Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-1645

Expiry durations longer than 30 days are interpreted incorrectly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 3.0.6
    • 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.0.5
    • None
    • None
    • 1

    Description

      Expected behavior:

      If the user specifies a duration longer than 30 days, the SDK automatically converts the duration to an absolute timestamp in UNIX epoch seconds.

      Actual behavior:

      The SDK always uses the number of seconds in the duration, which leads to problems because Couchbase Server interprets an expiry value longer than 30 days as an absolute timestamp in UNIX epoch seconds... this causes the document to expire prematurely.

      Attachments

        Issue Links

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

          Activity

            People

              david.nault David Nault
              david.nault David Nault
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty