Skip to content
This repository has been archived by the owner on Jun 18, 2020. It is now read-only.

removal of oldsessions #468

Closed
wants to merge 1 commit into from
Closed

Conversation

fchapoton
Copy link
Contributor

that is apparently not used anywhere

that is apparently not used anywhere
@kcrisman kcrisman added the Minor label Mar 4, 2019
@kcrisman
Copy link
Member

kcrisman commented Mar 4, 2019

See #184 where this was added because of some flask issues. I guess I would make sure to have people try this out a reasonable amount before getting rid of it - especially if there isn't a big reason to 'clean up' bad code here. The last thing we want is sagenb breaking abruptly instead of going quietly into the night.

@embray
Copy link
Contributor

embray commented Mar 4, 2019

I guess the question is, what motivated this, and can you be sure it isn't being used?

@fchapoton
Copy link
Contributor Author

(1) motivation is : "removing dead branches" as cleanup service
(2) git grep "oldsessions" returns nothing

@kcrisman
Copy link
Member

kcrisman commented Mar 4, 2019

Yes, I noticed (2) as well. But I think it was the kind of thing that really did break sagenb. Here is the relevant flask documentation:

The biggest change going from 0.9 to 0.10 is that the cookie serialization format changed from pickle to a specialized JSON format. This change has been done in order to avoid the damage an attacker can do if the secret key is leaked. When you upgrade you will notice two major changes: all sessions that were issued before the upgrade are invalidated and you can only store a limited amount of types in the session.

It seems that sage-on-gentoo (which is usually pretty good about removing unneeded stuff) still has it, see e.g. https://github.com/cschwan/sage-on-gentoo/blob/master/sci-mathematics/sage-notebook/sage-notebook-1.1.2.ebuild

@fchapoton fchapoton closed this Jan 26, 2020
@fchapoton fchapoton deleted the patch-13 branch January 26, 2020 13:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants