-
Notifications
You must be signed in to change notification settings - Fork 639
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
[5.x]: folder rename issue in assets control panel page #16215
Comments
Hi, thanks for getting in touch! |
Hello, I do have the @webroot alias overwritten via config/general.php.
And in my config/general.php I have I tried also with a clean install, without changing the folder structure and following the steps listed in my first post and I do get the same behaviour. |
@i-just I found the problem by debugging the renaming procedure in the codebase. The behaviour I reported is reproducible only on a windows machine. In the renameDirectory method in
DIRECTORY_SEPARATOR should be used instead of the hardcoded |
Craft 4.13.4 and 5.5.4 are out with that fix. Thanks again! |
What happened?
Description
Renaming a folder in the control panel page changes the physical location of the renamed folder from its defined filesystem to the @webroot of the app.
This creates issues when re-indexing assets from the assets index control panel because the re-indexing cannot find the physical renamed folder.
Steps to reproduce
Expected behavior
The renamed folder should stay in its original parent path
Actual behavior
The renamed folder gets moved to the @webroot of the app
Craft CMS version
5.5.3
PHP version
8.2.26
Operating system and version
WINNT 10.0
Database type and version
MariaDB 10.6.17
Image driver and version
GD 8.2.26
Installed plugins and versions
The text was updated successfully, but these errors were encountered: