All my images are on one domain, so I work with a symlink on index.php
All other subdomains(3.9) working with this.
Only the 4.0 Beta has got a problem to handle that.
Result is --> "Joomla\CMS\Filesystem\Path::check() - Snooping out of bounds @ /mnt/....../htdocs/ksv23000/images/" and no Images in the list.
Whenever you post code or code blocks please surround them with backticks. Then they are easier to read: https://docs.github.com/en/github/writing-on-github/basic-writing-and-formatting-syntax#quoting-code
One backtick for inline
code.
3
backticks
around
multilne
code
Thank you!
I don't understand
so I work with a symlink on index.php
Really index.php
? Shouldn't it be /images/
On my Subdomains with cms 3.9.19 this syntax is working
system wide well, on cms 4.0.0-beta4-dev Nightly Builds 12 September 2020 02:01:10 UTC it's not working well!?
"symlink('/mnt/web101/...103/htdocs/ksv23000/images/', '/mnt/web101/...103/htdocs/ligatest/images');"
=========================================================================================================
First test environment
Provider: Strato Server
Server: ???
Operating system: ???
Internet: speed 100Mb/s
Page load-time: 731ms
Browsers: Opera, Firefox, Chrome, Edge
PHP Versions: 7.4.9
SQL Version: 5.6.42
UTF: 8_general_ci
CMS: Nightly Builds 4.0.0.beta4-dev of 12.09.2020 02:01:10 UTC
Second test environment
Provider: localhost xampp
Computer: Intel Core I9-9900K 3.60GHz with 32GB RAM and NVIDIA RTX 2080S
Operating system: Windows 10 Pro 64 Bit
Internet: responce-time <1ms
Page load-time: 407ms
Browsers: Opera, Firefox, Chrome, Edge
PHP Versions: 7.4.4
SQL Version: 10.4.11
UTF: 8_general_ci
CMS: Nightly Builds 4.0.0.beta4-dev of 12.09.2020 02:01:10 UTC
By the way, the JCE Filebrowser works well. The Joomla Mediamanger takes no result !?
Is this still a problem?
Labels |
Added:
No Code Attached Yet
Information Required
Removed: ? |
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-04-07 01:37:09 |
Closed_By | ⇒ | Quy |
Closing due to no response with additional info.
Is this still a problem?
Yes, it is. Error throwing method Path::check
has never been adapted to respect symlinks.
Joomla 4.1.5-dev, Joomla 4.1.4.
No issues with Joomla 3 sites with identical symlinks. Only Joomla 4.
Symlink from Joomla 4 folder:
/www/htdocs/abcd/joomla4/images/
Symlink to /www/htdocs/abcd/images-ghsvs-symlink-target/
Error:
Joomla\CMS\Filesystem\Path::check() - Snooping out of bounds @ /www/htdocs/abcd/images-ghsvs-symlink-target/
Could someone please reopen this issue?
Status | Closed | ⇒ | New |
Closed_Date | 2022-04-07 01:37:09 | ⇒ | |
Closed_By | Quy | ⇒ |
Still an issue with J!4.2.5.
Is it possible to make the title of this issue more meaningful? Something like "[4] Media Manager fails with SymLinks" or so.
Thank you!
And could you please remove the Information Required
label. Thx again.
Title |
|
Labels |
Removed:
Information Required
|
Labels |
Added:
bug
|
Still an issue with J!4.3.2
This is a real issue whenever you use a symlink for your images folder. In one particular website, a symlink for the images folder is used to link to a NAS where multiple sites use the same storage.
So I looked to see if there is a quick fix related to the symlinks but not that I can see. The particular block in the Path::check
function has been in place since at least 28 May 2009.
This was not a problem in Joomla 3 because that function is never called, however the Local Adapter plugin calls it many times. The code is a bit misleading because it calls the function getLocalPath()
but all this does is call the Path::check()
function.
A quick fix here would be to strip out the Path::check()
function and simply return the rootPath and provided path until symlink support is added to the Path::check()
function.
Would be nice if this was fixed!!!!
Modded the following file:
/webdata/joomla/v009/libraries/src/Filesystem/Path.php
Commenteded out the following starting around line #171.
$path = self::clean($path);
/*
if ((JPATH_ROOT != '') && strpos($path, self::clean(JPATH_ROOT)) !== 0) {
throw new \Exception(
sprintf(
'%1$s() - Snooping out of bounds @ %2$s',
__METHOD__,
self::removeRoot($path)
)
);
}
*/
return $path;
Seems to have worked but still testing
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30616.