Skip to content

Fix SMB3 directory leasing parent tracking - #2262

Open
gabrielg5 wants to merge 2 commits into
masterfrom
fix/smb3-directory-leasing-parent
Open

Fix SMB3 directory leasing parent tracking#2262
gabrielg5 wants to merge 2 commits into
masterfrom
fix/smb3-directory-leasing-parent

Conversation

@gabrielg5

Copy link
Copy Markdown
Collaborator

Fix SMB3 GlobalFileTable parent tracking when directory leasing is negotiated.

  • Avoid referencing an uninitialized parentDir for shallow paths.
  • Distinguish opening the share root from opening a root-level file.
  • Include the share name in non-DFS global file keys.
  • Reuse existing parent entries instead of raising an exception.
  • Add regression coverage for share-root, root-level, nested, and repeated-parent cases.

This PR fixes #2256

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UnboundLocalError: parentDir in SMB3.create() for root-level opens when the server supports directory leasing

1 participant