Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for NT_STATUS_SUCCESS (0.09 sec)

  1. src/main/java/jcifs/smb1/smb1/SmbException.java

             * negative so it with NT_STATUS_SUCCESS (0) the binary search will not be
             * performed properly. The effect is that the code at index 1 is never found
             * (NT_STATUS_UNSUCCESSFUL). So here we factor out NT_STATUS_SUCCESS
             * as a special case (which it is).
             */
            if (errcode == 0) {
                return "NT_STATUS_SUCCESS";
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/NtStatusTest.java

        @Test
        @DisplayName("Should define well-known NT status constants")
        void testWellKnownStatusConstants() {
            // Verify important NT status constants are defined
            assertEquals(0x00000000, NtStatus.NT_STATUS_SUCCESS);
            assertEquals((int) 0xC0000022L, NtStatus.NT_STATUS_ACCESS_DENIED);
            assertEquals((int) 0xC0000034L, NtStatus.NT_STATUS_OBJECT_NAME_NOT_FOUND);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbAuthExceptionTest.java

         */
        static Stream<Arguments> intErrorCodes() {
            return Stream.of(Arguments.of(NtStatus.NT_STATUS_ACCESS_DENIED, NtStatus.NT_STATUS_ACCESS_DENIED),
                    Arguments.of(NtStatus.NT_STATUS_SUCCESS, NtStatus.NT_STATUS_SUCCESS),
                    Arguments.of(0x00001234, NtStatus.NT_STATUS_UNSUCCESSFUL));
        }
    
        @ParameterizedTest
        @MethodSource("intErrorCodes")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbExceptionTest.java

        @Test
        @DisplayName("Constructor 0 – NT_STATUS_SUCCESS")
        void testConstructorWithZeroCode() {
            SmbException ex = new SmbException(0, false);
            assertEquals("NT_STATUS_SUCCESS", ex.getMessage());
            assertEquals(0, ex.getNtStatus());
            assertNull(ex.getRootCause(), "root cause should be null for this ctor");
            assertEquals("jcifs.smb1.smb1.SmbException: NT_STATUS_SUCCESS", ex.toString());
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java

            Smb2SessionSetupResponse resp = newResponse();
    
            byte[] buf = new byte[256];
            int headerStart = 0;
            buildHeader(buf, headerStart, NtStatus.NT_STATUS_SUCCESS, 0x0001, 0xCAFEBABECAFEF00DL);
    
            int bodyStart = headerStart + Smb2Constants.SMB2_HEADER_LENGTH;
            byte[] blob = new byte[] { 1, 2, 3 };
            int secBufOffset = Smb2Constants.SMB2_HEADER_LENGTH + 8;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/SmbAuthExceptionTest.java

                    // Known NT status code - NT_STATUS_UNSUCCESSFUL
                    Arguments.of(0xC0000001, "A device attached to the system is not functioning."),
                    Arguments.of(0x00000000, "NT_STATUS_SUCCESS"),
                    // An error that maps via DOS mapping
                    Arguments.of(0x00000002, SmbException.getMessageByCode(0x00000002)),
                    // Unknown code → hex string (uppercase)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java

        }
    
        @Test
        void throwsOnUnexpectedStructureSize() throws Exception {
            // structureSize != 49 and != 9 should raise an exception
            byte[] header = buildHeader(NtStatus.NT_STATUS_SUCCESS);
            byte[] buf = new byte[header.length + 10];
            System.arraycopy(header, 0, buf, 0, header.length);
            // Write invalid structure size 50 at body start
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SIDCacheImplTest.java

                jcifs.dcerpc.msrpc.MsrpcLookupSids rpc = (jcifs.dcerpc.msrpc.MsrpcLookupSids) msg;
                // Return success
                rpc.retval = NtStatus.NT_STATUS_SUCCESS;
    
                // Domains: single domain named TESTDOM
                lsarpc.LsarRefDomainList domains = new lsarpc.LsarRefDomainList();
                domains.count = 1;
                domains.max_count = 1;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/NtStatus.java

        /*
         * Don't bother to edit this. Everything within the interface
         * block is automatically generated from the ntstatus package.
         */
    
        /** The operation completed successfully */
        int NT_STATUS_SUCCESS = 0x00000000;
        /** The request is pending */
        int NT_STATUS_PENDING = 0x00000103;
        /** A notify change request is being completed and information is being returned */
        int NT_STATUS_NOTIFY_ENUM_DIR = 0x0000010C;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  10. 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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
Back to top