Issue Bug Closed

#89705Folder selector should not throw `FolderDoesNotExistException` when folder is renamed

Stefan Franke 11/18/19, 15:22 updated 03/23/25, 18:50

Description

When editors select a folder in a content element via the folder selector, TYPO3 remembers this selection for the next time the folder selector is used.

Unfortunately the editor will be in trouble, if this folder gets renamed/moved/deleted as this results in a FolderDoesNotExistException.

The attached patch file deals with the problem (though I’m quite certain that this is the wrong way).

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Files 1

History 2

  1. Riccardo De Contardi commented <span data-processor="relativetime" data-value="2023-07-08T20:54:36+00:00" > 07/08/23, 20:54 </span>

    I’ve performed the following test with several TYPO3 versions:

    1) Filelist module > fileadmin > create a folder (e.g. “Images/test”)
    2) Upload a file “sample.png” inside “fileadmin/Images/test“
    3) Select a page > Create new content element: type: File links [uploads]
    4) Click on “add file” > select folder “fileadmin/Images/test” > add the file “sample.png“
    5) Save and Exit
    6) Open the content element again > Click on “add file” again

    Results:

    TYPO3 9.5.31, 10.4.37, 11.5.28

    - the select file popup actually starts again from the last selected folder i.e. “fileadmin/Images/test”

    7) Go on file list module > go to Images folder > rename the subfolder “test” into “test2“
    8) Go back to the content element created at point 3
    9) Open the content element again > Click on “add file”

    Result:*
    - no error, the popup starts from the folder *fileadmin/user_upload/

    TYPO3 12.4.2, 13.0.0-dev

    - the select file popup actually starts from the root folder (I mean “fileadmin”)
    I don’t know if this “amnesia” can be considered as another issue that affects version 12+

  2. Benni Mack commented and changed status New Closed <span data-processor="relativetime" data-value="2025-03-23T18:50:57+00:00" > 03/23/25, 18:50 </span>

    Hey,

    the issue that Stefan described was fixed in v9, we’ve reworked the “let’s remember the last selection” again in v11 once we worked on the tree situation, which now has been solved properly. We can close this case!