Ticket #5988 (new enhancement)

Opened 4 years ago

Last modified 3 years ago

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

Reported by: was Owned by: boothby
Priority: major Milestone:
Component: notebook Keywords:
Cc: timdumol Work issues:
Report Upstream: N/A Reviewers:
Authors: Merged in:
Dependencies: Stopgaps:

Description

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.

Thanks,
--
Kevin Horton
Ottawa, Canada

Change History

comment:1 Changed 4 years ago by mabshoff

See also #6069.

Cheers,

Michael

comment:2 Changed 4 years ago by mabshoff

  • Milestone changed from sage-4.0.1 to sage-wishlist

comment:3 Changed 3 years ago by mpatel

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

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 3 years ago by mpatel

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

Note: See TracTickets for help on using tickets.