Describe the Bug
Performing an API attachment update following the API docs can result in a Undefined array key "name" error.
This is because the name is not required for validation, but assumed to be set in the called service:
|
$attachment->name = $requestData['name']; |
Steps to Reproduce
- Perform API attachment update call without a
name parameter.
- See 500 error
Expected Behaviour
API call succeeds and no error thrown.
Screenshots or Additional Context
No response
Browser Details
No response
Exact BookStack Version
v24.10.3
Describe the Bug
Performing an API attachment update following the API docs can result in a
Undefined array key "name"error.This is because the
nameis not required for validation, but assumed to be set in the called service:BookStack/app/Uploads/AttachmentService.php
Line 119 in b7476a9
Steps to Reproduce
nameparameter.Expected Behaviour
API call succeeds and no error thrown.
Screenshots or Additional Context
No response
Browser Details
No response
Exact BookStack Version
v24.10.3