Opened 6 years ago
Last modified 6 years ago
#45296 new defect (bug)
Serious side-effects when login in another tab after session expiration in first tab
Reported by: | trejder | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Users | Keywords: | |
Focuses: | administration | Cc: |
Description (last modified by )
A. STEPS TO REPRODUCE:
- Start editing a new blog post.
- Open a preview of it in some other browser tab.
- Leave it open and hibernate computer for several hours (or otherwise expire the session without refreshing / closing the editor).
- Add a new comment to that blog that requires moderation or otherwise cause owner to receive e-mail with a link to a blog.
- Click on received link. New browser tab or window will open. Session is expired so login screen appears (correct!).
- Login to WordPress.
- Go back to the other / left open / hibernated browser tabs and try to do anything.
In that "old" / other tab you're logged-off / you have session expired (even though you have just logged in again), but WordPress isn't able to handle this situation gracefully.
B. SIDE-EFFECTS
B1. UNABLE TO ADD AN IMAGE
- An attempt to add an image causes image browser to display "loading knob" infinitely.
B2. UNABLE TO SAVE THE DRAFT
- An attempt to save the draft actually DESTROYS the draft in the database.
- Clicking this button causes WordPress to display login screen (even though you're already logged in; see below).
- From this moment on your draft preview (the other "old" tab) will be constantly showing "Page not found".
- After publishing and unpublishing the page it gets even worse -- only "Page not found" page title appears in tab and tab is constantly being refreshed endlessly by the browser.
B3. UNABLE TO LOGIN
- An attempt to refresh the page displays login screen (even though you're already logged in).
- Logging in is impossible. After login WordPress displays login page again and says that browser has cookies disabled (not true).
- To solve this problem one must restart entire browser (cleaning session cookies?) and login again.
C. Conclusions
Restarting browser solves the B3 and B1 problems only. B2 problem partially remains. Wordpress is able to save the draft, but still doing this incorrectly and later isn't able to show preview of the post, claiming that page is not found or reloading page forever.
To solve last part of B2 problem one must restart browser, re-login and save the draft several times.
Change History (2)
Note: See
TracTickets for help on using
tickets.
https://github.com/WordPress/gutenberg/issues/11531