Attachment from pages in the bin are still listed in the API #6194
Labels
No labels
Focus: A11y
Focus: Admin/Meta
Focus: Authentication
Focus: Back-End
Focus: Database
Focus: Design & UX
Focus: Editor - Markdown
Focus: Editor - WYSIWYG
Focus: Export System
Focus: Front-End
Focus: Translations
Focus: View Customization
Is: Docs Update
Is: Enhancement
Is: Priority
Is: Security
Is: Upstream
Status
Blocked
Status
Open to discussion
Status
Out of scope
Status
Pending Validation
Type
API Request
Type
Bug Report
Type
Feature Request
Type
Happy feedback
Type
Maintenance
Type
Question
Type
Support
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bookstack/bookstack#6194
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the Bug
When using
/api/attachments/, I have noticed someuploaded_toids link to missing pages. A request to/api/pages/{uploaded_to}give a 404 HTTP error code. I assume these pages have been deleted, but are still in the bin, awaiting their eventual complete deletion.Steps to Reproduce
/api/attachments/{id}and/api/pages/{id from attachment uploaded_to}. They should both give correct results./api/attachments/{id}and/api/pages/{id from attachment uploaded_to}. The attachment call should be unchanged, but the pages one will give a 404 error.Expected Behaviour
Given that the ID of a deleted page doesn’t have a usable meaning, I would expect either to see a 404 for the attachment (ideally, as the attachment become unusable from the web interface anyway), or a null value.
Screenshots or Additional Context
See the original message here : https://community.bookstackapp.com/#narrow/channel/4-help-and-support/topic/Attachment.27s.20parent.20page.20could.20not.20be.20found/with/1470
We use a slighty modified Bookstack version, with a couple of small cosmetic changes. The API has not been modified.
Browser Details
No response
Exact BookStack Version
v26.03.4