Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 54 for NTSTATUS (0.09 seconds)

  1. src/main/java/jcifs/smb/DirFileEntryEnumIterator1.java

            this.response.reset();
            try {
                getTreeHandle().send(this.nextRequest, this.response);
                return this.response.getStatus() != NtStatus.NT_STATUS_NO_MORE_FILES;
            } catch (final SmbException e) {
                if (e.getNtStatus() == NtStatus.NT_STATUS_NO_MORE_FILES) {
                    log.debug("No more entries", e);
                    return false;
                }
                throw e;
            }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb/SMBSignatureValidationExceptionTest.java

            assertTrue(ex instanceof SmbException, "Should be an SmbException subtype");
            // SmbException default ctor leaves status 0, which equals NT_STATUS_SUCCESS
            assertEquals(NtStatus.NT_STATUS_SUCCESS, ex.getNtStatus(), "Default status should be success (0)");
        }
    
        // Edge/null/empty: message-only constructor should propagate message and set unsuccessful status
        @ParameterizedTest
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb/SmbSessionImpl.java

                        }
                        if (!sessResponse.isReceived() || sessResponse.isError() || sessResponse.getStatus() != NtStatus.NT_STATUS_SUCCESS
                                && sessResponse.getStatus() != NtStatus.NT_STATUS_MORE_PROCESSING_REQUIRED) {
                            throw e;
                        }
                        ex = e;
                        response = sessResponse;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 68.9K bytes
    - Click Count (0)
  4. src/main/java/jcifs/internal/smb2/ServerMessageBlock2Response.java

    import jcifs.Configuration;
    import jcifs.internal.CommonServerMessageBlockRequest;
    import jcifs.internal.CommonServerMessageBlockResponse;
    import jcifs.internal.SMBProtocolDecodingException;
    import jcifs.smb.NtStatus;
    
    /**
     * Base class for SMB2/SMB3 response messages.
     *
     * This abstract class provides common functionality for handling
     * response messages in the SMB2/SMB3 protocol.
     *
     * @author mbechler
     */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java

            setStatus(response, NtStatus.NT_STATUS_NOTIFY_ENUM_DIR);
            assertFalse(response.isErrorResponseStatus());
    
            // Test with success status
            setStatus(response, NtStatus.NT_STATUS_SUCCESS);
            assertFalse(response.isErrorResponseStatus());
    
            // Test with error status
            setStatus(response, NtStatus.NT_STATUS_ACCESS_DENIED);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  6. src/main/java/jcifs/internal/smb2/io/Smb2ReadResponse.java

    import jcifs.Configuration;
    import jcifs.internal.SMBProtocolDecodingException;
    import jcifs.internal.smb2.ServerMessageBlock2Response;
    import jcifs.internal.smb2.Smb2Constants;
    import jcifs.internal.util.SMBUtil;
    import jcifs.smb.NtStatus;
    
    /**
     * SMB2 Read response message.
     *
     * This response contains the data that was read from the file
     * along with information about the read operation.
     *
     * @author mbechler
     */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java

    import org.mockito.Mock;
    import org.mockito.MockitoAnnotations;
    
    import jcifs.Configuration;
    import jcifs.internal.SMBProtocolDecodingException;
    import jcifs.internal.util.SMBUtil;
    import jcifs.smb.NtStatus;
    
    class Smb2EchoResponseTest {
    
        @Mock
        private Configuration mockConfig;
    
        @Mock
        private Smb2SigningDigest mockDigest;
    
        private Smb2EchoResponse echoResponse;
    
        @BeforeEach
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java

    import jcifs.internal.smb2.ServerMessageBlock2;
    import jcifs.internal.smb2.ServerMessageBlock2Response;
    import jcifs.internal.smb2.Smb2Constants;
    import jcifs.internal.util.SMBUtil;
    import jcifs.smb.NtStatus;
    
    /**
     * Test class for Smb2ReadResponse functionality
     */
    @DisplayName("Smb2ReadResponse Tests")
    class Smb2ReadResponseTest extends BaseTest {
    
        private Configuration mockConfig;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 22.1K bytes
    - Click Count (0)
  9. src/test/java/jcifs/smb1/smb1/SmbExceptionTest.java

                expected = errcode;
            } else {
                // Positive values not in DOS_ERROR_CODES map to NT_STATUS_UNSUCCESSFUL
                expected = NtStatus.NT_STATUS_UNSUCCESSFUL;
            }
            assertEquals(expected, ex.getNtStatus(), "Status should match mapping or fallback");
        }
    
        /**
         * Verify that root causes are stored and returned correctly.
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  10. src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java

                } else {
                    // second next -> no more files
                    setField(resp, jcifs.internal.smb1.trans.SmbComTransactionResponse.class, "status", NtStatus.NT_STATUS_NO_MORE_FILES);
                    setField(resp, Trans2FindFirst2Response.class, "lastName", null);
                }
                resp.received();
                return resp;
            });
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.7K bytes
    - Click Count (0)
Back to Top