No Code Attached Yet bug
avatar woluweb
woluweb
15 Aug 2026

What happened?

On a given website I noticed that Media Manager would display
File or Folder not found
when there is a space at the end of the folder name.
Real-life example:
images/anna60/43/Sophie%20/Sophie.jpg

Indeed

  • if one creates a Folder directly from the Media Manager, the final space is automatically trimmed
  • but if the folder is created via Automation (or probably FTP), there is no such control

Version

6.2

Expected result

Even if there is a space (or %20) at the end of a folder name, the Media Manager should not crash.
(or at least, in such a case the error message should be more explicit: it could take ages to understand what is the rootcause with the current error message)

Actual result

File or Folder not found

System Information

I have experienced this on J6.x.
I did not test it on J5.x.

Additional Comments

No response

avatar woluweb woluweb - open - 15 Aug 2026
avatar joomla-cms-bot joomla-cms-bot - change - 15 Aug 2026
Labels Added: No Code Attached Yet bug
avatar joomla-cms-bot joomla-cms-bot - labeled - 15 Aug 2026
avatar brianteeman
brianteeman - comment - 15 Aug 2026

tested on joomla 5.4.7
I manualy created a folder with a trailing space test
The folder is not even displayed in the media manager

Image

same test on 6.1.2

Image
avatar brianteeman
brianteeman - comment - 15 Aug 2026

In other words I cannot replicate your reported crash or displayed error message as the media manager just ignored the folder with the extra space

avatar woluweb
woluweb - comment - 15 Aug 2026

Txs Brian for checking so quickly!

Sorry, I should have taken the time to make the screenshots in the first place.

Here is the screenshot of the Article in question, with the image having images/anna60/43/Sophie%20/Sophie.jpg
(note: that Article was not created manually but was created using the API or a Convert Forms > Task > Content. Via the interface, I could indeed not even have chosen the image since the Folder Sophie%20 is invisible (which is also not normal)

Image

And when I click on the Select button then I get the File or Folder not found in the Modal:
Image

So indeed it is the 2 sides of the same coin:

  • what I was mentioning with File or Folder not found in the Modal, which is a specific issue
  • what you found out, namely that the Folder is "invisible", which is the general issue
avatar brianteeman
brianteeman - comment - 5 Sep 2026

the problem is caused because everything is passed through Path::clean which intentionaly trims the space and I'm not sure if its a good idea to make anychanges there

Add a Comment

Login with GitHub to post a comment