Skip to content
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

stuck in infinite loop when deleting a file #113

Closed
wants to merge 1 commit into from
Closed

Conversation

dni
Copy link

@dni dni commented Jun 12, 2018

i use a S3 FAL Driver and it gets stuck in this infinite loop when trying to delete a file. i posted a issue there, andersundsehr/aus_driver_amazon_s3#36

but now i think its this error here, i noticed the error when updating from 8.7.15 to 8.7.16 and should also be here in master.

line 3082: to me it doesnt make ANY sense that the identifier of the parent is the same as the folder itself thus, the do while loop never exits. i hope my PR is the fix and doesnt break anything. it looks fine for me in 8.7.16

i also think its bad practice to use do while loops because its very easy to make a mistake and get stuck in the loop and also i found this very hard to understand and so it took me quite a while to understand this code, especially the isFolderLoop condition.

i use a S3 FAL Driver and it gets stuck in this infinite loop when trying to delete a file. i posted a issue there, andersundsehr/aus_driver_amazon_s3#36

but now i think its this error here, i noticed the error when updating from 8.7.15 to 8.7.16 and should also be here in master.

line 3082: to me it doesnt make ANY sense that the identifier of the parent is the same as the folder itself thus, the do while loop never exits. i hope my PR is the fix and doesnt break anything. it looks fine for me in 8.7.16

i also think its bad practice to use do while loops because its very easy to make a mistake and get stuck in the loop and also i found this very hard to understand and so it took me quite a while to understand this code, especially the isFolderLoop condition.
@TYPO3IncTeam
Copy link

Thank you for your contribution to TYPO3. We are using Gerrit Code Review for our contributions and took the liberty to convert your pull request to a review in our review system.
You can find your patch at: https://review.typo3.org/57203
For further information on how to contribute have a look at https://docs.typo3.org/typo3cms/ContributionWorkflowGuide/

@TYPO3 TYPO3 locked and limited conversation to collaborators Jun 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants