System info fatal error on symbolic linked folders#13553
System info fatal error on symbolic linked folders#13553HLeithner merged 9 commits intojoomla:stagingfrom n3t:staging
Conversation
1/ isDot check is faster than isDir 2/ if main directory is just symlink checking .. could lead to open basedir restriction
This reverts commit 4feff5e.
|
@n3t it looks like you committed to the wrong branch? |
|
:-/ yeah, I am not so much familier with github, bit lost now... |
|
Ok, now it should be as before, sorry for complications... |
|
@n3t close this Issue? |
|
@franz-wohlkoenig no this should be still a valid fix for the issue. |
|
@franz-wohlkoenig even commits are bit masched up, it still solves the initial issue, and the PR is back in its initial state. |
|
I have tested this item ✅ successfully on 277b7ae This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13553. |
|
I couldn't reproduce the issue on Linux-4.17.8-1 with PHP7 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13553. |
|
I have tested this item 🔴 unsuccessfully on e1d08ad This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13553. |
|
@n3t Can you please followup on the unsuccessful tests? Thank you. |
|
IMO negative tests were not carried out with full understanding of the problem. Example. $folder = new DirectoryIterator(JPATH_ROOT . '/images'); // In real, it will be `/var/images`and now we have a list of elements: .
..
image1.png
image2.pngwhen we are in line This PR is valid. I did code review. |
|
@csthomas Thank you for your input. @Schmidie64 @niklas-deworetzki-thm Please review your testing and check again. |
|
@csthomas oh, now I see the problem here. I'm sorry, I misunderstood at first, that he had problems with accessing the symlinked directory. I'm testing it now, knowing the real issue. Thank you for clarifying it. |
|
I have tested this item ✅ successfully on e1d08ad This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13553. |
|
@henkrijneveld can you please retest? |
|
@csthomas yes your explanation is exact. problem is not symlink itself, but isdir check to dots folders, which don't need to be accessible... |
|
@Schmidie64 Can you please test this again? |
|
Thx @n3t, good things need sometime sometimes... |
Pull Request for Issue #13552.
Summary of Changes
isDot check first, before isDir
Testing Instructions
Follow the Issue tracker https://issues.joomla.org/tracker/joomla-cms/13552