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
6.2
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)
File or Folder not found
I have experienced this on J6.x.
I did not test it on J5.x.
No response
| Labels |
Added:
No Code Attached Yet
bug
|
||
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
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)
And when I click on the Select button then I get the File or Folder not found in the Modal:

So indeed it is the 2 sides of the same coin:
File or Folder not found in the Modal, which is a specific issuethe 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
tested on joomla 5.4.7
I manualy created a folder with a trailing space
testThe folder is not even displayed in the media manager
same test on 6.1.2