You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If cookie expiries while redirecting(Set-Cookie: cook=1 Expires=1999), it still present on next redirected request.
Android successfully copes with this, but unfortunately the implementation for IOS does not.
I think problem in this code: /jre_emul/Classes/com/google/j2objc/net/IosHttpURLConnection.java:794
It cannot determine that a cookie similar to this "sessionid=22; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT; HttpOnly"
shoul be removed.
To test this problem here is a test service with GET method https://damp-dawn-68572.herokuapp.com/myapp
It checks cookies and if it contains "sessionid=22" expires that cookie and redirects to itself
Thanks for the clear explanation, along with the test server example. We won't be able to include the Node.js code in a regression test, but it will be used independently to fix this, and hopefully can be reworked as a MockWebServer config.
No, I've been stretched really thin the past few months.
Would anyone want to try fixing this and submitting a pull request? If I remember correctly, the cookie support is 100% Java, so one doesn't need to be an iOS expert to investigate it. There's an IntelliJ project, jre_emul/jre_emul.iml that makes working on the Java side relatively easy. A Mac is still necessary to build, of course.
If cookie expiries while redirecting(Set-Cookie: cook=1 Expires=1999), it still present on next redirected request.
Android successfully copes with this, but unfortunately the implementation for IOS does not.
I think problem in this code:
/jre_emul/Classes/com/google/j2objc/net/IosHttpURLConnection.java:794
It cannot determine that a cookie similar to this "sessionid=22; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT; HttpOnly"
shoul be removed.
To test this problem here is a test service with GET method https://damp-dawn-68572.herokuapp.com/myapp
It checks cookies and if it contains "sessionid=22" expires that cookie and redirects to itself
Server Node.js source code:
The text was updated successfully, but these errors were encountered: