Bug 15917 - Directory rename doesn't patch names of childs (recursively) in our Leases DB
Summary: Directory rename doesn't patch names of childs (recursively) in our Leases DB
Status: ASSIGNED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Ralph Böhme
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-09-17 23:13 UTC by Ralph Böhme
Modified: 2025-09-17 23:23 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Böhme 2025-09-17 23:13:26 UTC
Scenario:
1. CREATE "foo/file" with leasekey=x
2. RENAME "foo" -> "bar"
3. CREATE "bar/file" with same leaskey=x

3 will fail with STATUS_INVALID_PARAMETER because lease_match() fails with STATUS_INVALID_PARAMETER as the paths don't match.

Possible fix: hook into the new smbd_smb2_setinfo_lease_break_check() infrastructure to patch the paths in the leases DB.
Comment 1 Ralph Böhme 2025-09-17 23:23:08 UTC
Note to future self: delay_for_handle_lease_break_below_fn() is the function that should be expanded to handle this.