-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Referenced by page leads to HTTP 500 #4918
Comments
Thanks for reporting @ChriFo. If possible, it would be great to confirm your case is the same, either by viewing/restoring the content of the recycle bin to see if cross-references exist, or by emptying the recycle bin to see if the references page then loads without error. |
I can confirm after emptying the recycle bin (two references were removed) the "references" page is shown without errors in the log. |
@ChriFo Thanks for confirming. I've assigned this to the next feature release otherwise it could be part of a sooner patch release. |
Count and reference list would get references then attempt to load entities, which could fail to load if in the recycle bin. This updates the queries to effectively ignore references for items we can't see (in recycle bin). Added test to cover. For #4918
Describe the Bug
Clicking the link "referenced by x items" on a page leads to a error page showing "An Error Occurred".
Steps to Reproduce
Go to page which is referenced on other pages.
Click "Referenced by x items" in the details section.
Expected Behaviour
Show a list of pages which referencing the current page.
Screenshots or Additional Context
In the Apache error log the follwing stacktrace is shown:
Details
Browser Details
No response
Exact BookStack Version
24.02.2
The text was updated successfully, but these errors were encountered: