-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JFile::copy to check realpath #18352
Comments
Any Comment on this Feature Request? This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18352. |
Set to "closed" on behalf of @alikon by The JTracker Application at issues.joomla.org/joomla-cms/18352 |
lack of interest This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18352. |
Fixing it would be better because it's a vaild issue. |
If you're going to close issues because "lack of interest", use a more communicative message than that. Remember this is a public platform and people do get email notifications. |
what should be "a more communicative message" for an issue opened on 16 Oct 2017 without no response till i've closed it in 05 july 2019, sorry but i'm not an english native speaker, but nevermind, |
Can I suggest using these messages that I wrote for the last sprint I organised They can even be added as saved replies on github |
you should have shared this before, only option 2) and 11 and all was ok 🤣 |
You already had it from the Manchester sprint :) |
Closing old items isn't an issue, if:
The only thing keeping items open does is raise the number in the tabs at the top of the GitHub repo. Trying to arbitrarily close issues that people have been able to confirm as bugs because nobody is interested enough in fixing those bugs doesn't really help matters. It may very well be those issues are hard to address or edge case issues (like a couple of the IE8 related issues, they're still valid since 3.x supports IE8 but they're more than likely going to stay open and unactioned until 3.x EOLs because few are going to care enough to put in the effort to fix compat issues with that old of a browser), but they're still valid. |
closing here and moved issue to the framework: joomla-framework/filesystem#65 |
Steps to reproduce the issue
Hello friends, it would be nice if JFile::copy checked if the src and dest paths are the same. Right now it gives an error and thus installer or other dependencies fail upon such a case.
Usage:
during the development we are using an installer path in an component directory such as /administrator/components/com_test/install/systempluginname
which is symlinked to
/plugins/system/systempluginname
upon changes in the component BE config, it either enables or disables particular plugins that are used per the component's logic, but mainly it makes sure that the plugins is up-to-date by updating it with the Joomla installer.
it would be nice if JFile::copy did not return an error upon same src and dest especially if those directories are symlinked and are seen as the same by "realpath".
i do not really know how to do a PR, but i would suggest:
into:
\libraries\joomla\filesystem\file.php
on Joomla 3.8.1
at about line 99
full function would then look like:
Expected result
Do not give an error upon same src and dest
Actual result
It now fails...
System information (as much as possible)
Additional comments
The text was updated successfully, but these errors were encountered: