Skip to content

Conversation

Zerkath
Copy link

@Zerkath Zerkath commented Sep 23, 2025

Tests for #2671 which are now failing with the following output:

- should pass cookies during redirections *** FAILED *** (13 milliseconds)
  Vector() did not contain element "session" (in Checkpoint) at FollowRedirectsBackendTest.scala:90
  Vector() did not contain element "session" (in Checkpoint) at FollowRedirectsBackendTest.scala:90
  Vector() did not contain element "session" (in Checkpoint) at FollowRedirectsBackendTest.scala:90
  Vector() did not contain element "session" (in Checkpoint) at FollowRedirectsBackendTest.scala:90
  Vector() did not contain element "session" (in Checkpoint) at FollowRedirectsBackendTest.scala:90
  Vector(session=final) did not equal List(0-fuzz=, 1-fuzz=, 2-fuzz=, 3-fuzz=, 4-fuzz=, session=final) (in Checkpoint) 

at FollowRedirectsBackendTest.scala:118 (FollowRedirectsBackendTest.scala:119)

Before submitting pull request:

  • Check if the project compiles by running sbt compile
  • Verify docs compilation by running sbt compileDocs
  • Check if tests pass by running sbt test
  • Format code by running sbt scalafmt

Redirects do not apply set-cookie in the request chain meaning
multistep request chains that track state will be missing cookies in the
middle of redirection, only real alternative is manual control

After redirection chain completes any set-cookies that started or were
in the middle of the request chain get ignored. Only the last responses set-cookie's
will be applied. It is possible to collect the cookies / headers from
response.history, but adds complexity.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant