owncloud / owncloud/core

rmdir fails because iterator is not released

Open
#41,361 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
8.8k
Forks
2.1k
Avg merge
20h 7m
Merged PRs (30d)
41

Description

Sorry for not following bug report model but the issue is also reported on nextcloud and fixed

https://help.nextcloud.com/t/unable-to-delete-directories-text-file-busy/86468/3

Adding unset($it); as they say on forum post fixes it

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no repository file or test; start by tracing the PHP code path that calls rmdir and inspecting the iterator lifetime around it. Compare the linked Nextcloud report and the suggested unset($it); workaround. Done means reproducing the failure and confirming that directory removal succeeds after the iterator is released.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.