PR-5.1-dev Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
3 Apr 2024

This PR changes the error message so that the full path and not just the filename is displayed in the error log

Pull Request for Issue #43105 .

Testing Instructions

see original issue

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar brianteeman brianteeman - open - 3 Apr 2024
avatar brianteeman brianteeman - change - 3 Apr 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 3 Apr 2024
Category Libraries
avatar wilsonge
wilsonge - comment - 3 Apr 2024

Does this print the full path on disk? if so we probably want to substitute it with JPATH_ROOT or something (even in the UI) for the shared hosting environments. We typically don't print out the details of the hosting path into the UI.

avatar brianteeman
brianteeman - comment - 3 Apr 2024

@wilsonge don't know but based on the code immediately before it then it should be using jpath_root

avatar richard67
richard67 - comment - 3 Apr 2024

@brianteeman The error message from the issue seems to come from the filesystem library of the framework (Joomla\Filesystem\File::delete) and not from the CMS filesystem library (Joomla\CMS\Filesystem\File::delete) which you modify here.

avatar brianteeman brianteeman - change - 3 Apr 2024
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2024-04-03 10:48:37
Closed_By brianteeman
Labels Added: PR-5.1-dev
avatar brianteeman
brianteeman - comment - 3 Apr 2024

guess this should be closed then and a pr made upstream

avatar brianteeman brianteeman - close - 3 Apr 2024
avatar richard67
richard67 - comment - 3 Apr 2024

@brianteeman The code line which produces the error message from the issue is https://github.com/joomla-framework/filesystem/blob/3.x-dev/src/File.php#L163 .

However, a few lines below we have another log which could need the same change: https://github.com/joomla-framework/filesystem/blob/3.x-dev/src/File.php#L173 .

The path to the Joomla root can be removed from the message in the same way as it can be seen here: https://github.com/joomla-framework/filesystem/pull/44/files#diff-b56e199bd976f7eaf5aa9fca93ebc32041da2f701956fc2f3c20cf3d06f81ce7 .

Add a Comment

Login with GitHub to post a comment