Skip to content

[5.x]: folder rename issue in assets control panel page #16215

@ps-paxxion

Description

@ps-paxxion

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

  1. create local filesystem named "Test" and set base path to "@webroot/test"
  2. create volume named "Test" and attach it to the "Test" filesytem
  3. go to Assets > Test
  4. create folder named "test-01"
  5. check its physical location, it will be in @webroot/test/test-01
  6. rename the folder "test-01" to "test-02"
  7. check its physical location, it will be @webroot/test-02 instead of @webroot/test/test-02

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions