zhanghai / zhanghai/MaterialFiles

SMB - Deleting folder causes an error (STATUS_ACCESS_DENIED)

Open
#1,454 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
9k
Forks
736
PR merge metrics
No merged PRs in 30d

Description

SMB version: 4.21.4 (though this also happens on 4.19)

In an SMB share, create a folder. Then try to delete it.

Causes an error: STATUS_ACCESS_DENIED, followed by "Close failed for SMB2FileId". HOWEVER, the folder is deleted successfully.

Same flow works fine on other apps with the same credentials.

Contributor guide

No contributing guide indexed for this repository

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

Start by reproducing the SMB folder deletion flow described for versions 4.21.4 and 4.19, then trace the delete and close-error handling. Done means the folder is deleted without reporting STATUS_ACCESS_DENIED or "Close failed for SMB2FileId".

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.