-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Fix for removing the dirs while creating a TAR archive #18322
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
Fix for removing the dirs while creating a TAR archive #18322
Conversation
The bug caused issues during the export of analytics data from advanced reporting. The scandir has parameter were the sort can be placed, but using UNSORTED gives you unwanted lists of files/dirs. Therefor deleting the first 2 via array_shift, is not a proper way of dealing with this Signed-off-by: Harold Claus <[email protected]>
Hi @haroldclaus. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
Hi @ihor-sviziev, thank you for the review. |
@haroldclaus thank you for contributing. Please accept Community Contributors team invitation here to gain extended permissions for this repository. |
Hi @haroldclaus. Thank you for your contribution. |
@magento-engcom-team Has a backport to 2.2 been made yet? If not, I'll do it. |
@Ctucker9233 backport to 2.2 was already merged. #18283 |
Hello, |
such a shame that this issue still messes up your whole website what is even point using magento when the team is busy developing new features and can't even concentrate to fix the bugs and issues in new versions. |
@terrybakshi I agree. Bug fix release should be sped up while keeping code quality in mind. i.e. 20 bug fixes released every month. That seems doable to me. |
Description
The bug caused issues during the export of analytics data from advanced
reporting. The SCANDIR has a parameter where the sort can be determined, but
using UNSORTED gives you unwanted lists of files/dirs. Therefor deleting
the first 2 via array_shift, is not a proper way of dealing with this. With this PR, it doesn't matter how you sort the results of the SCANDIR function, you'll always remove in a proper way the "." and "..".
Fixed Issues (if relevant)
No issues were found about this issue
Manual testing scenarios
Contribution checklist