Repository navigation
[6.2] Prevent root copy failure in FileAdapter and improve fileset check - #48121
LadySolveig wants to merge 5 commits into
Conversation
|
I have tested this item ✅ successfully on 83c1019 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/48121. |
|
I have tested this item ✅ successfully on 3811bfd To test everything I had to update both prepared zip-files to not get this warning "File patcher skipped. Unsupported Joomla version detected: 6.2.0. Supported versions: 5.4.9-dev, 6.1.4-dev, 6.2.0-beta2-dev.". I changed in both zip-files This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/48121. |
|
Thank you for testing @beni71 Yes, I wasn’t sure if or when the fix would become relevant again, so at some point I stopped updating the plugins, thinking that if anyone wanted to test it, they’d surely let me know and I’d sort it out at short notice. All the better that you managed just fine as it was. Thank you so much! |

Pull Request resolves # .
Summary of Changes
This pull request introduces a safeguard to the file installation process in the
FileAdapterinstaller, preventing accidental copying of all files from a package root to the site root.It also fixes an error if no fileset is available in manifest file (for example, if everything is handled separately via an installer script).
Testing Instructions
Case 1 - no fileset in manifest file - only installer script
fileadaptertest2.zip
Case 2 - various configurations within the fileset using the
folderandtargetattributesfileadaptertest.zip
Actual result BEFORE applying this Pull Request
Case 1
Unfortunately, this error message occurs only sporadically and cannot always be reproduced.
However, the PHP error can be traced at this point.FileAdapter.php#L505
Case 2
These files can be found in the root of the site:
fileadaptertest.php
fileadaptertest.xml
i_should_not_be_in_root.txt
LICENSE
README.md
Expected result AFTER applying this Pull Request
Case 1
No
'JSON.parse: unexpected character at line 1 column 1 of the JSON data'- error message.If you visit the frontend using the standard Cassiopeia template, you should see this message

Or alternatively, this comment in the
index.phpin the cassiopeia template code - line 13.Case 2
You should see the same for the template
index.phpoverride in Cassiopeia template like in case 1.fatest1with the following filei_should_be_here.txtNew file under root on the site
i_should_be_here.txtfatest2with the following filesNew file under root on the site
i_should_be_here.txtYou should see this warning message
These files should not be copied to the root of the site:
Link to documentations
Please select:
Documentation link for guide.joomla.org:
No documentation changes for guide.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed