Issue Bug Closed

#108523Wrong label on log error for invalid folder name

Riccardo De Contardi 12/18/25, 14:38 updated 03/31/26, 08:59

Description

on sysext/core/Classes/Utility/File/ExtendedFileUtility.php , lines 896-900

$this->writeLog(SystemLogFileAction::NEW_FOLDER, SystemLogErrorClassification::USER_ERROR, 'Invalid folder name "{identifier}"', ['identifier' => $folderName]);
            $this->addMessageToFlashMessageQueue('FileUtility.YouAreNotAllowedToCreateDirectories', [$folderName]);
        } catch (InsufficientFolderWritePermissionsException $e) {
            $this->writeLog(SystemLogFileAction::NEW_FOLDER, SystemLogErrorClassification::USER_ERROR, 'You are not allowed to create directories');
            $this->addMessageToFlashMessageQueue('FileUtility.YouAreNotAllowedToCreateDirectories');

as you can see addMessageToFlashMessageQueue use the same label FileUtility.YouAreNotAllowedToCreateDirectories but the log message for the first one is 'Invalid folder name "{identifier}"...'

Counting that sysext/core/Resources/Private/Language/fileMessages.xlf contains a label (not used)

<trans-unit id="FileUtility.InvalidFolderName">
        <source>Invalid folder name "%s"!</source>
      </trans-unit>

This is a bug

Reviews 1

History 35

  1. Riccardo De Contardi changed subject Wrong label Wrong label on log error for invalid folder name <span data-processor="relativetime" data-value="2025-12-18T15:10:08+00:00" > 12/18/25, 15:10 </span>

  2. Riccardo De Contardi commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-12-18T15:20:08+00:00" > 12/18/25, 15:20 </span>

    Applied in changeset commit:01548fdb9c2616d799824f14676b3d5a5991a0ed.