Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for NT_STATUS_SUCCESS (0.07 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/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)
  4. 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)
  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/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)
  8. src/main/java/jcifs/smb/DirFileEntryEnumIterator2.java

                createResp = th.send(create);
            } catch (final SmbException e) {
                final Smb2CreateResponse cr = create.getResponse();
                if (cr != null && cr.isReceived() && cr.getStatus() == NtStatus.NT_STATUS_SUCCESS) {
                    try {
                        th.send(new Smb2CloseRequest(th.getConfig(), cr.getFileId()));
                    } catch (final SmbException e2) {
                        e.addSuppressed(e2);
                    }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbExceptionTest.java

            assertNotNull(exception);
            assertEquals(message, exception.getMessage());
            assertEquals(cause, exception.getCause());
        }
    
        @ParameterizedTest
        @ValueSource(ints = { NtStatus.NT_STATUS_SUCCESS, NtStatus.NT_STATUS_ACCESS_DENIED, NtStatus.NT_STATUS_OBJECT_NAME_NOT_FOUND,
                NtStatus.NT_STATUS_SHARING_VIOLATION, NtStatus.NT_STATUS_INVALID_PARAMETER })
        @DisplayName("Should handle various NT status codes")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbException.java

                }
            }
    
            // for backward compatibility since this is was different message in the NtStatus.NT_STATUS_CODES than returned
            // by getMessageByCode
            errorCodeMessagesTmp.put(0, "NT_STATUS_SUCCESS");
    
            errorCodeMessages = Collections.unmodifiableMap(errorCodeMessagesTmp);
            dosErrorCodeStatuses = Collections.unmodifiableMap(dosErrorCodeStatusesTmp);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.7K bytes
    - Viewed (0)
Back to top