Save Draft Error #4995

Closed
opened 2026-02-05 09:32:18 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @ospouh on GitHub (Oct 10, 2024).

Describe the Bug

On a fresh installation with CloudLinux, save-draft gives error 404

image

Steps to Reproduce

Create a new page
press ctrl + s
error appears in console

Expected Behaviour

draft to save successfully

Screenshots or Additional Context

image

Browser Details

Chrome

Exact BookStack Version

24.10

Originally created by @ospouh on GitHub (Oct 10, 2024). ### Describe the Bug On a fresh installation with CloudLinux, save-draft gives error 404 ![image](https://github.com/user-attachments/assets/85c6f96d-5fe6-46b3-b375-df96b96a0bf7) ### Steps to Reproduce Create a new page press ctrl + s error appears in console ### Expected Behaviour draft to save successfully ### Screenshots or Additional Context ![image](https://github.com/user-attachments/assets/541fb630-d7a7-4754-8019-1c7fb46e4737) ### Browser Details Chrome ### Exact BookStack Version 24.10
OVERLORD added the 🐛 Bug label 2026-02-05 09:32:18 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Oct 10, 2024):

Hi @ospouh,

  • Are there some specific steps you followed to install BookStack on CloudLinux?
  • Can you share your apache config for BookStack?
  • Does the URL of the shown request exactly match the full base URL used to access the site homepage (including protocol) followed by /ajax/page/<number>/save-draft?
@ssddanbrown commented on GitHub (Oct 10, 2024): Hi @ospouh, - Are there some specific steps you followed to install BookStack on CloudLinux? - Can you share your apache config for BookStack? - Does the URL of the shown request exactly match the full base URL used to access the site homepage (including protocol) followed by `/ajax/page/<number>/save-draft`?
Author
Owner

@ospouh commented on GitHub (Oct 11, 2024):

Hi @ssddanbrown

i believe i might have discoverd the problem and it might be from mod_security
Request: PUT /ajax/page/612/save-draft

it looks like modsecurity by default blocked PUT and Delete Methods causing the API to fail

@ospouh commented on GitHub (Oct 11, 2024): Hi @ssddanbrown i believe i might have discoverd the problem and it might be from mod_security Request: PUT /ajax/page/612/save-draft it looks like modsecurity by default blocked PUT and Delete Methods causing the API to fail
Author
Owner

@ssddanbrown commented on GitHub (Oct 14, 2024):

@ospouh Good to hear you found the cause, I'll therefore close this off.
Note that, depending on configuration, other parts of BookStack may trigger mod security (commonly around using specific words/text in page/description content).

@ssddanbrown commented on GitHub (Oct 14, 2024): @ospouh Good to hear you found the cause, I'll therefore close this off. Note that, depending on configuration, other parts of BookStack may trigger mod security (commonly around using specific words/text in page/description content).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#4995