-
Notifications
You must be signed in to change notification settings - Fork 9.4k
FileSystem IO Ftp connection ls() method error for empty folders #31288
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
Comments
Hi @Nazar65. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. Please, add a comment to assign the issue:
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento I am working on this |
Hi @engcom-Alfa. Thank you for working on this issue.
|
✅ Confirmed by @engcom-Alfa Issue Available: @engcom-Alfa, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
Preconditions (*)
Magento\Framework\Filesystem\Io\Ftp
Regarding to the PHP documentation
ftp_nlist()
method can return as array and the false,and in case of empty folder it returns false.
magento2/lib/internal/Magento/Framework/Filesystem/Io/Ftp.php
Line 316 in ad29452
Need to add additional check for the (false) case ad not put result of
ftp_nlist()
directly to the foreach loopSteps to reproduce (*)
Expected result (*)
2.. empty array returned
Actual result (*)
Invalid argument supplied for foreach() in vendor/magento/framework/Filesystem/Io/Ftp.php on line 319
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
The text was updated successfully, but these errors were encountered: