Uploaded image for project: 'Couchbase Lite'
  1. Couchbase Lite
  2. CBL-681

Set-Cookie headers being split in two incorrectly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.8.0
    • 2.8.0
    • iOS
    • Security Level: Public
    • 5

    Description

      Via Github:

      I'm receiving this log using CBLite for Swift

      2020-02-10 21:25:17.508138+0100 MyApplication[3373:2253702] CouchbaseLite Network Verbose: {BLIPIO#23} WebSocket is hungry!
      2020-02-10 21:25:17.508279+0100 MyApplication[3373:2253702] CouchbaseLite Network Verbose: {BLIPIO#23} ...Wrote 0 bytes to WebSocket (writeable=1)
      2020-02-10 21:25:17.508487+0100 MyApplication[3373:2253706] CouchbaseLite Database WARNING: Couldn’t parse Expires in cookie
      2020-02-10 21:25:17.508688+0100 MyApplication[3373:2253706] CouchbaseLite Replicator WARNING: {Repl#22} Unable to set cookie AWSALB=A9LmneWamRVJU5JbBVAoUIUu9Q9ySyzKCcP0W74QLqAppVhTK6VIIuQ2blfrbYr905T9luOHseo5E3C479Pf9y4nNzKRxSXzyVa7wBIWvDHhTjf3kvQN9YNPxj2o; Expires=Mon: LiteCore error 9 “Invalid cookie”
      2020-02-10 21:25:17.509023+0100 MyApplication[3373:2253706] CouchbaseLite Replicator Verbose: {Repl#22} Set cookie: 17 Feb 2020 20:25:17 GMT; Path=/
      2020-02-10 21:25:17.509339+0100 MyApplication[3373:2253706] CouchbaseLite Database WARNING: Couldn’t parse Expires in cookie
      2020-02-10 21:25:17.509573+0100 MyApplication[3373:2253706] CouchbaseLite Replicator WARNING: {Repl#22} Unable to set cookie

      We noticed this is usually just logged as a warning but sometimes it leads the app to a sudden crash.

      Attachments

        Issue Links

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

          Activity

            People

              Jayahari.Vavachan Jay Vavachan
              jens Jens Alfke
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty