?
avatar bartnikj
bartnikj
25 Apr 2017

Steps to reproduce the issue

  1. On the backend go to Artciles -> Media
  2. Try to open a directory with non-latin characters (for example: "2017/2017-01-styczeń")

Expected result

The directory should open

Actual result

Being redirected to images root directory

System information (as much as possible)

Noticed since Joomla 3.5. Still happens in 3.7. Seems to be browser independent. Happened in PHP 5.2-7.0.

Additional comments

You could also navigate to a folder directly via /administrator/index.php?option=com_media&view=mediaList&tmpl=component&folder=2017/2017-01-stycze%C5%84

Possible solution

Seems to be a regex problem with JInput filter "path" that is used in list.php model of com_media. Regex:
$pattern = '/^[A-Za-z0-9_-]+[A-Za-z0-9_\.-]*([\\\\\/][A-Za-z0-9_-]+[A-Za-z0-9_\.-]*)*$/';

avatar bartnikj bartnikj - open - 25 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - change - 25 Apr 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 25 Apr 2017
avatar khikmatullaev
khikmatullaev - comment - 25 Apr 2017

If you want to create the folder with "2017/2017-01-styczeń" name you would get the error
image

avatar khikmatullaev
khikmatullaev - comment - 25 Apr 2017

Or did you create a folder not by Joomla admin?

avatar bartnikj
bartnikj - comment - 25 Apr 2017

This one was created using JCE. But you could create it in many different ways. Still a valid path though.

avatar franz-wohlkoenig franz-wohlkoenig - change - 26 Apr 2017
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 26 Apr 2017
Category Administration com_media
avatar infograf768
infograf768 - comment - 26 Apr 2017

This is totally OK. A possible url path should not contain unicode characters.
If we wanted to let do that, such names should be percent encoded (see unicode aliases).
It is a very different situation from folders path used in your OS itself.

Closing

avatar infograf768 infograf768 - change - 26 Apr 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-04-26 07:20:10
Closed_By infograf768
avatar infograf768 infograf768 - close - 26 Apr 2017
avatar bartnikj
bartnikj - comment - 26 Apr 2017

How is not being able to navigate to an existing folder with valid path because of that bug "totally ok"?

Add a Comment

Login with GitHub to post a comment