[Bug Report]: Webhook fails for specific recycle bin operations #2564

Closed
opened 2026-02-05 04:31:22 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @ssddanbrown on GitHub (Jan 10, 2022).

Describe the Bug

Recycle bin item restore/destroy operations lead to the below error when a webhook is active using the recycle_bin_restore/destroy operations.

Too few arguments to function BookStack\Entities\Models\Deletion::getUrl(), 0 passed in /home/dan/web/bookstack/app/Actions/DispatchWebhookJob.php on line 123 and exactly 1 expected

Is due to the getUrl on the Deletion model requiring a param. Needs to have a default or the usage of URL within webhook data needs to be more targeted.


Reported by abe on discord.

Originally created by @ssddanbrown on GitHub (Jan 10, 2022). ### Describe the Bug Recycle bin item restore/destroy operations lead to the below error when a webhook is active using the `recycle_bin_restore/destroy` operations. ``` Too few arguments to function BookStack\Entities\Models\Deletion::getUrl(), 0 passed in /home/dan/web/bookstack/app/Actions/DispatchWebhookJob.php on line 123 and exactly 1 expected ``` Is due to the `getUrl` on the `Deletion` model requiring a param. Needs to have a default or the usage of URL within webhook data needs to be more targeted. --- Reported by abe on discord.
OVERLORD added the 🐛 Bug label 2026-02-05 04:31:22 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2564