Details
-
Bug
-
Resolution: Unresolved
-
Test Blocker
-
None
Description
"If the absolute value of the expiry is less than 30 days (such as 60 * 60 * 24 * 30), it is considered an offset. If the value is greater, it is considered an absolute time stamp. For more on expiration see the expiration section of our documents discussion doc."
The wording here is misleading to customers. The value is strictly a duration (in seconds). [ If a timestamp is passed, the SDK will add now() in seconds to it, resulting in the expiring being set to the timestamp plus roughly 54 years. The SDK adds now() (i.e. converts it from a duration to a timestamp), because the server treats anything over 30 days as a timestamp]
https://issues.couchbase.com/browse/CBSE-17666
https://issues.couchbase.com/browse/CBSE-17780
Browser environment: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Attachments
Issue Links
- relates to
-
DOC-12454 NodeJS SDK Expiration/TTL wording issue
- Open