[BUGFIX] Catch FolderDoesNotExistException in getCurrentFolder#27
Merged
helhum merged 1 commit intoprogrammfabrik:mainfrom Mar 2, 2026
Conversation
When a folder is selected and then deleted via context menu, the page reloads with the deleted folder's ID still in the query parameters. getCurrentFolder() tries to resolve this non-existent folder and throws FolderDoesNotExistException. Fall back to the root level folder when the requested folder no longer exists.
helhum
approved these changes
Mar 2, 2026
Collaborator
|
Thanks @mikelwohlschlegel While I would argue that this is a TYPO3 bug as well, it totally makes sense to fix it here. |
Collaborator
|
Released as 3.1.3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a folder is selected and then deleted via context menu, the page reloads with the deleted folder's ID still in the query parameters. getCurrentFolder() tries to resolve this non-existent folder and throws FolderDoesNotExistException.
Fall back to the root level folder when the requested folder no longer exists.
Steps to reproduce
user_upload/test/) — this sets theidquery parameter in the URL