Opened 10 years ago

Closed 4 years ago

#5988 closed enhancement (worksforme)

notebook feature request -- make it so non-logged in users are redirected to login page

Reported by: was Owned by: boothby
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: notebook Keywords:
Cc: timdumol Merged in:
Authors: Reviewers: Karl-Dieter Crisman
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:


I strongly agree with the following feature request. I have wanted the same feature myself.

If the sage notebook server is restarted while a logged in user is
viewing a notebook page, a user attempt to refresh the page results in
a completely blank page titled "Error | Sage Notebook".  The user must
manually edit the URL to go back to the main server page and login
again, presumably because the login credentials have been lost with
the server reboot.

But, it may not be obvious to all users what they need to do to
recover from this situation.  Is there some twisted option I can set
to either redirect the browser back to the login page, or to add
explanatory text to the blank page with a link to the login page?  If
neither of these options is currently possible, I'd like to make a
feature request to enhance the server response to an attempt to access
a page when a user is apparently not logged in, to provide the user
with a useful page, rather than a completely blank page.

I'm running sage 3.4.2.

Kevin Horton
Ottawa, Canada

Change History (7)

comment:1 Changed 10 years ago by mabshoff

See also #6069.



comment:2 Changed 10 years ago by mabshoff

  • Milestone changed from sage-4.0.1 to sage-wishlist

comment:3 Changed 9 years ago by mpatel

  • Cc timdumol added
  • Milestone sage-wishlist deleted
  • Report Upstream set to N/A

I think this is no longer a problem, at least with SageNB 0.7 (#8051) and maybe even with SageNB 0.6. If I try to reload the home page or an opened worksheet, I get redirected to the login page or to a page with a message, e.g.,

You are not logged in or do not have access to the worksheet 'XXX'. Continue

Clicking "Continue" takes me to the login page. But clicking on "Log," "Settings," or "Help" returns 404 Not Found, instead of redirecting to the login page.

comment:4 Changed 9 years ago by mpatel

Actually, this may still be a problem in WebKit browsers.

comment:5 Changed 4 years ago by kcrisman

  • Milestone set to sage-duplicate/invalid/wontfix
  • Reviewers set to Karl-Dieter Crisman
  • Status changed from new to needs_review

I cannot replicate this in Safari, Chrome, or FF on Mac. The "searching for Sage server" takes care of most instances, and I don't see the page mentioned above. Presumably the flask transition?

comment:6 Changed 4 years ago by kcrisman

  • Status changed from needs_review to positive_review

comment:7 Changed 4 years ago by vbraun

  • Resolution set to worksforme
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.