No Confirmation In Restore Function #1082

Closed
opened 2026-02-04 23:41:59 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @Bolthier on GitHub (Mar 10, 2019).

Originally assigned to: @ssddanbrown on GitHub.

Describe the bug
When using the restore function no confirmation query is shown before restore. While not a problem of its own the link is written into the browser history and can be activated accidently without knowing that you're about to restore a page into an older state.

Steps To Reproduce
Steps to reproduce the behavior:

  1. Create page with all permissions with this user.
  2. Update the page once.
  3. Use the restore function and restore the first revision.
  4. Look in your browser history and click on the entry.
  5. Page is restored without confirming it.

Expected behavior
A clear confirmation before restoring a revision.

Screenshots
2019 03 10-18 59

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings): BookStack v0.25.1
  • PHP Version: 7.2.10
  • Hosting Method (Nginx/Apache/Docker): Apache 2
Originally created by @Bolthier on GitHub (Mar 10, 2019). Originally assigned to: @ssddanbrown on GitHub. **Describe the bug** When using the restore function no confirmation query is shown before restore. While not a problem of its own the link is written into the browser history and can be activated accidently without knowing that you're about to restore a page into an older state. **Steps To Reproduce** Steps to reproduce the behavior: 1. Create page with all permissions with this user. 2. Update the page once. 3. Use the restore function and restore the first revision. 4. Look in your browser history and click on the entry. 5. Page is restored without confirming it. **Expected behavior** A clear confirmation before restoring a revision. **Screenshots** ![2019 03 10-18 59](https://user-images.githubusercontent.com/42382626/54089290-d7a33280-4367-11e9-977e-9c13333a1b43.png) **Your Configuration (please complete the following information):** - Exact BookStack Version (Found in settings): BookStack v0.25.1 - PHP Version: 7.2.10 - Hosting Method (Nginx/Apache/Docker): Apache 2
OVERLORD added the 🛠️ Enhancement🏭 Back-End labels 2026-02-04 23:41:59 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Mar 11, 2019):

Thanks for reporting @Bolthier, I agree with this, This should be a POST/PUT/PATCH request instead of a GET request to prevent it even being in the history.

I have assigned to myself for the next release as it would be good to do this as part of the design update.

@ssddanbrown commented on GitHub (Mar 11, 2019): Thanks for reporting @Bolthier, I agree with this, This should be a POST/PUT/PATCH request instead of a GET request to prevent it even being in the history. I have assigned to myself for the next release as it would be good to do this as part of the design update.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1082