-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Session renewal failure #209
Comments
@emlaver and I have been debugging this and I'm now confident that the problem is that The reason that Firstly, RFC 6265 says
Since CouchDB sends cookies with both Secondly, RFC 6265 5.3.11.3 is quite clear that the creation time of the cookie should be preserved on update
This means that the creation time of the cookie after the session renewal update remains the original session creation time. The spec is unclear on whether a |
Describe the bug
Session renewal does not complete successfully. It is not yet clear whether this is always the case or intermittent.
To Reproduce
Discovered during E2E testing where the client was running for longer than the session cookie lifetime.
COUCHDB_SESSION
auth401
responses because cookie is expiredRelevant logs:
_session
request is made for a new cookie401
failures are observedExpected behavior
The renewal process should replace the old cookie with a new one, but although a new cookie is obtained it appears to not be correctly applied to later requests.
Screenshots
Must gather (please complete the following information):
0.0.14
(+dev)10.24.0
Additional context
ibm-cloud-sdk-core@2.8.2
Since the request to renew the session was made and was successfully answered by the server it seems like either the new cookie is not saved correctly into the cookie jar or the value from the cookie jar is not applied to requests.
The text was updated successfully, but these errors were encountered: