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

Setting expiry too far into the future creates issues

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 3.x-backlog
    • None
    • None
    • None
    • 1

    Description

      If you set it 30, 40, 50 years ahead, not a problem. The document comes back with the expected expiry. However, try setting to 87 years from now, it fails to add the doc. Yet, 86 years from now works. If you get excited and try 200 years from now (2219), it ends up setting it for 2083. So of course it is just rolling over...

      Clearly the time is represented differently on the server (not a long, probably unsigned int). I think our great grandchildren will notice this and be sad. We can prevent this by maybe verifying the representation on the server, and raising an exception without sending this off if the expiry exceed this value.

      I doubt this is super high priority, but best to note it just in case we are in there for other things...

      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.kelly David Kelly (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty