Closed ondrahb closed 10 months ago
Hmm I think you are right, I must have interpreted the FileId
set to -1
as representing the session and tree connect id. I'll have to do some testing to ensure that removing those lines won't break anything.
Thanks for the report, the PR https://github.com/jborean93/smbprotocol/pull/266 removes the setting of these fields so it should now be part of the spec.
Thanks!
Hello, we've hit a STATUS_NETWORK_NAME_DELETED error while testing this library against a smb server implementation that didn't follow this section of the specification:
It looked for treeconnect with id 0xff..ff and didn't find one. While that is a fault of the server, it looks to me that the current behavior of the smbprotocol library might also not follow the specification:
I understand "as it would do normally" as that it should also set the SessionId/TreeId fields as what the section for SMB2_CLOSE for instance prescribes:
Is there some section of the specification from which the 0xff..ff setting that is done in smbprotocol/connection.py around 1254 follows? Should/can these two lines just be safely deleted? It seems both Windows and Linux CIFS client just keep whatever was sent in the previous requests.