-
-
Notifications
You must be signed in to change notification settings - Fork 487
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
sagenb: notebook cookies #8249
Comments
comment:1
I couldn't reproduce his by signing in/out of sagenb.org and demo.sagenb.org. Cookies are stored by domain (sagenb.org and demo.sagenb.org are two seperate sites), so differentiating by port should be all that's necessary. I made sure all instances of 'cookie' in twist.py were updated from #6353 (they were), so I really have no idea what is causing this. It could be a subtle bug in the 'cookie_test' cookie. |
This comment has been minimized.
This comment has been minimized.
comment:4
Has anyone been able to reproduce the problem reliably? It would help greatly to have specific instructions. |
Expire cookies on logout. sagenb repo. |
comment:5
Attachment: trac_8249-notebook_cookies.patch.gz I've attached a patch that should delete both the test and notebook session cookies, when a user logs out. |
comment:6
The patch may depend weakly on #6069. |
Author: Mitesh Patel |
comment:8
LGTM: I can't produce any cookie errors through normal use. However, selenium errors when logging out - I'm working on a new patch to fix the tests. (See attached for log) |
Selenium errors with patch. Same errors when the patch for #6069 -missing_pub_ws.3 is applied. |
comment:9
Attachment: trac_8249-notebook_cookies-selenium_errors.log Thanks for catching the Se test errors. I should have checked. The patch fixes for me the one cookie-related problem I could reproduce reliably: Logging out in Chrom* displays a browser error page:
But with the patch, clicking on "Sign Out" just returns me to the login page. I'm not sure if it helps with the reported problems, but making the cookies expire on logout seems logical. |
comment:10
For some reason Selenium doesn't like HTTP redirect responses. I keep getting this 'Problem loading page' error (in firefox):
This always happens when the selenium gets the redirect HTTP response. Perhaps we should change it back to a dedicated logout page, but add a |
Adjust |
comment:11
Attachment: trac_8249-notebook_cookies.2.patch.gz V2 replaces |
comment:13
I'm signing this off since it's a good idea, and may help. I'm unable to replicate the cookie issue though, with or without this patch, but it may be related to the performance issues of the sagenb server. |
Reviewer: Tim Dumol |
comment:15
Woops. Forgot to add Alex. |
Changed reviewer from Tim Dumol to Alex Leone, Tim Dumol |
Merged: sagenb-0.8 |
This is a followup to #6353. That ticket improved cookie naming a bit. However, it appears to be not enough.
See sage-support.
CC: @sagetrac-acleone @qed777 @sagetrac-mhampton
Component: notebook
Author: Mitesh Patel
Reviewer: Alex Leone, Tim Dumol
Merged: sagenb-0.8
Issue created by migration from https://trac.sagemath.org/ticket/8249
The text was updated successfully, but these errors were encountered: