Language Change ? Pending

User tests: Successful: Unsuccessful:

avatar okonomiyaki3000
okonomiyaki3000
21 Jun 2019

Pull Request for Issue #24539 .

Summary of Changes

This issue has already been addressed but only partially. This should cover the cases not handled by the original fix.

As of now, it's possible to use a symlink as your files directory but symlinks nested within it are not allowed. This change adds a whitelist config to specifically allow any root paths you may be symlinking to. As long as you know where your symlinks are going (you should, right?) you will be able to have symlinked directories within the files folder.

Testing Instructions

Add one or more symlinks to external directories within the files folder. Go to the media manager and try to navigate to them, upload files into them, delete files from them.

Expected result

From the user point of view, symlink directories should indistinguishable from normal ones.

Actual result

Prior to this change, you can not navigate into symlink directories or (obviously) perform any tasks inside of them.

Documentation Changes Required

No but the current documentation doesn't seem to specify whether symlinks are supported or not. Since they're just a normal thing, I think they should be supported unless there is a specific reason no to do so.

avatar okonomiyaki3000 okonomiyaki3000 - open - 21 Jun 2019
avatar okonomiyaki3000 okonomiyaki3000 - change - 21 Jun 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 21 Jun 2019
Category Administration com_media Language & Strings Libraries
avatar okonomiyaki3000
okonomiyaki3000 - comment - 21 Jun 2019

Ah, right. I forgot about that

avatar okonomiyaki3000 okonomiyaki3000 - change - 21 Jun 2019
Labels Added: ? ?
avatar franz-wohlkoenig franz-wohlkoenig - change - 21 Jun 2019
Title
Add a whitelist for directories the media manager is allowed to use.
Add a whitelist for directories the media manager is allowed to use
avatar franz-wohlkoenig franz-wohlkoenig - edited - 21 Jun 2019
avatar HLeithner
HLeithner - comment - 21 Jun 2019

Did you checked how it's implemented in J4, I'm also not sure if I would like to add this to J3 because it's more a new feature then a bugfix...

avatar okonomiyaki3000
okonomiyaki3000 - comment - 24 Jun 2019

@HLeithner I haven't been able to get J4 to run, so no. It's definitely a bugfix because symlinks used to work but now they don't. You can call that a bug or a bc break but it's not possible to make the case that it's just normal operation and doesn't require any fix. With this patch, they can work again. Maybe it doesn't work as transparently or automatically as one could hope but the bottom line is that it restores functionality that was recently removed.

avatar viocassel viocassel - test_item - 25 Jun 2019 - Tested successfully
avatar viocassel
viocassel - comment - 25 Jun 2019

I have tested this item successfully on 2bbdb49


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25288.

avatar okonomiyaki3000
okonomiyaki3000 - comment - 30 Sep 2019

I guess I need to update this branch but are we going to get another human tester?

avatar laoneo
laoneo - comment - 8 Apr 2022

I second the argument from @HLeithner that this should be done against J4. I made a quick test and there are symlinks working as expected, even with uploads. As you can there also specify multiple directories I would say most of this pr is covered already. And if you still think there is something missing, then feel free to create your own adapter and publish it in the JED. So I'm closing it.

avatar laoneo laoneo - close - 8 Apr 2022
avatar laoneo laoneo - change - 8 Apr 2022
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2022-04-08 15:16:39
Closed_By laoneo
Labels Added: Language Change ?
Removed: ? ?

Add a Comment

Login with GitHub to post a comment