-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
Describe the Bug
Hello.
We have a lot of pages, books and shelves inside our bookstack service.
Now we have An unknown error occurred" we try to save any role via bookstack web interface.
The "production.ERROR: SQLSTATE[HY000]: General error: 1390 Prepared statement contains too many placeholders (SQL: select entity_id
, entity_type
, role_id
, view
from entity_permissions
where .. " record is placed into our laravel.log when error occurs.
As side effect, after saving any role some users lost his access to some books and shelves. So I need to restore it with
"php artisan bookstack:regenerate-permissions " bookstack command.
To remove same error from regenerate-permission command I have increase my mariadb
max_allowed_packet parameter to 1073741824
This mariadb reconfiguration was helpful for cli-command, but not for "Save Role" button
Steps to Reproduce
- Go to Settings ->Roles
- Select any role ( go to Edit Role page)
- Click Save Role
- See error
Expected Behaviour
Instead of error page we expected to see refreshed Edit Role page. Also we excepted that saving role will not break user access to bookstack objects.
Screenshots or Additional Context
Browser Details
Firefox 115.5.0esr linux
Exact BookStack Version
v23.10.4