att / rcloud

Collaborative data analysis and visualization
http://rcloud.social
MIT License
430 stars 142 forks source link

invalid tokens cause `notebook.R` to fail with no applicable method for 'rcs.get' applied to an object of class "NULL" #2664

Closed s-u closed 5 years ago

s-u commented 5 years ago

notebook.R fails with no applicable method for 'rcs.get' applied to an object of class "NULL" when token is invalid but user cookie is present.

notebook.R passes user and token cookies even in anonymous mode which fails if those are non-empty. It fails in the sesison.init stage which is unchecked for errors, so it manifests itself in rcs.session being NULL since it never got as far as to be initialized.