Bug 15114 - Unable to delete AFP_Resource named stream
Summary: Unable to delete AFP_Resource named stream
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services (show other bugs)
Version: 4.13.4
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-01 21:41 UTC by suinn
Modified: 2022-07-22 00:21 UTC (History)
1 user (show)

See Also:


Attachments
SambaFailWindowsWorksPackets (48.79 KB, application/zip)
2022-07-01 21:41 UTC, suinn
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description suinn 2022-07-01 21:41:34 UTC
Created attachment 17407 [details]
SambaFailWindowsWorksPackets

Configuration:
QNAP TVS-h1288X (QuTS hero)
Firmware: h5.0.0.1892
smbd (samba daemon) Version 4.13.14

Steps to Reproduce:
1. SMB Client logs into the server
2. testfile is created
3. Named stream of AFP_Resource is created in testfile
4. Data is written to the AFP_Resource resulting in a length of 63
5. AFP_Resource is closed
6. AFP_Resource is deleted
7. Create/QueryInfo(SMB2_FILE_STRAM_INFO)/Close is done on testfile

Expected Results:
The AFP_Resource named stream should be deleted

Actual Results:
Samba server return the QueryInfo showing that AFP_Resource is still present and still has a length of 63

I have attached a packet trace showing the incorrect behavior from Samba (QueryInfo at 185) and the correct behavior from Windows (QueryInfo at 407).