Uploaded image for project: 'Couchbase Ruby client library'
  1. Couchbase Ruby client library
  2. RCBC-461

Setting the expiry through the setter instead of the constructor for KV mutations results in an ArgumentError

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.5.0
    • None
    • library
    • None
    • 1
    • SDK44

    Description

      Utils::Time.extract_expiry_time(expiry) transforms the expiry to the format expected by the wrapper C++ backend. Currently it is called in the constructor, which means that if expiry is set through the setter, it is not being called and the expiry is sent to the backend in the incorrect format resulting in an ArgumentError.
       
      To resolve this, extract_expiry_time should be called in the #to_backend method instead

      Attachments

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

        Activity

          People

            Dimitris.Christodoulou Dimitris Christodoulou
            Dimitris.Christodoulou Dimitris Christodoulou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty