BookStackApp / BookStack

A platform to create documentation/wiki content built with PHP & Laravel
https://www.bookstackapp.com/
MIT License
15.43k stars 1.94k forks source link

Save Draft Error #5254

Closed ospouh closed 1 month ago

ospouh commented 1 month ago

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

ssddanbrown commented 1 month ago

Hi @ospouh,

ospouh commented 1 month ago

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

ssddanbrown commented 1 month ago

@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).