hierynomus / smbj

Server Message Block (SMB2, SMB3) implementation in Java
Other
713 stars 180 forks source link

com.hierynomus.mssmb2.SMBApiException: STATUS_OTHER (0xc0000205) #611

Closed SShnoodles closed 3 years ago

SShnoodles commented 3 years ago

Query directory failed for SMB2FileId{persistentHandle=15 44 03 00 60 02 00 00}

com.hierynomus.mssmb2.SMBApiException: STATUS_OTHER (0xc0000205): Query directory failed for SMB2FileId{persistentHandle=15 44 03 00 60 02 00 00}
    at com.hierynomus.smbj.share.Share.receive(Share.java:371)
    at com.hierynomus.smbj.share.Share.sendReceive(Share.java:351)
    at com.hierynomus.smbj.share.Share.queryDirectory(Share.java:217)
    at com.hierynomus.smbj.share.Directory$DirectoryIterator.queryDirectory(Directory.java:173)
    at com.hierynomus.smbj.share.Directory$DirectoryIterator.<init>(Directory.java:129)
    at com.hierynomus.smbj.share.Directory.iterator(Directory.java:107)
    at com.hierynomus.smbj.share.Directory.list(Directory.java:62)
    at com.hierynomus.smbj.share.DiskShare.list(DiskShare.java:241)
    at com.hierynomus.smbj.share.DiskShare.list(DiskShare.java:210)
DiskShare share = (DiskShare) session.connectShare(shareDir);
List<FileIdBothDirectoryInformation> fileList = share.list("receive");  // query the directory error

The "receive" directory is exist, and more than 20 files in the folder. I can't find the reason.

hierynomus commented 3 years ago

The server has insufficient resources. An STATUS_OTHER status code means this one is not mapped yet. Looking it up in MS-ERREF gives:

0xC0000205   STATUS_INSUFF_SERVER_RESOURCES | Insufficient server resources exist to complete the request.

You will need to look up how to configure the server to have more resources available to your request.

hierynomus commented 3 years ago

I've added the enum to the NtStatus enum. Other than that, smbj cannot do anything else for this status, the server should get more resources.

I'm closing this ticket.