Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 33 for getNtStatus (0.97 sec)

  1. src/test/java/jcifs/smb1/dcerpc/msrpc/LsaPolicyHandleTest.java

                new LsaPolicyHandle(mockDcerpcHandle, server, access);
            });
    
            // In smb1, non-NTSTATUS error codes get mapped to NT_STATUS_UNSUCCESSFUL (0xC0000001)
            assertEquals(0xC0000001, thrown.getNtStatus()); // NT_STATUS_UNSUCCESSFUL
            verify(mockDcerpcHandle, times(1)).sendrecv(any(MsrpcLsarOpenPolicy2.class));
        }
    
        @Test
        void constructor_shouldThrowIOExceptionOnSendRecvFailure() throws IOException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbExceptionTest.java

            // When
            SmbException exception = new SmbException(ntStatus, false);
    
            // Then
            assertNotNull(exception);
            assertEquals(ntStatus, exception.getNtStatus());
            assertTrue(exception.getMessage().contains("Access is denied"));
        }
    
        @Test
        @DisplayName("Should create SmbException with message")
        void testSmbExceptionWithMessage() {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/http/NtlmHttpFilter.java

                    if (LogStream.level > 1) {
                        log.println("NtlmHttpFilter: " + ntlm.getName() + ": 0x" + jcifs.smb1.util.Hexdump.toHexString(sae.getNtStatus(), 8)
                                + ": " + sae);
                    }
                    if (sae.getNtStatus() == NtStatus.NT_STATUS_ACCESS_VIOLATION) {
                        /* Server challenge no longer valid for
                         * externally supplied password hashes.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbSessionImpl.java

                                }
                            } else {
                                if (e.getNtStatus() != 0xC000035C && e.getNtStatus() != 0xC0000203 || !trans.isSMB2()) {
                                    throw e;
                                }
                                if (e.getNtStatus() == 0xC0000203) { // USER_SESSION_DELETED
                                    try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbEndOfFileExceptionTest.java

            // Assert
            assertEquals("Unexpectedly reached end of file", ex.getMessage(), "Default message must match");
            assertEquals(NtStatus.NT_STATUS_UNSUCCESSFUL, ex.getNtStatus(), "Default NT status should be UNSUCCESSFUL");
            assertNull(ex.getCause(), "Cause should be null by default");
            assertNull(ex.getRootCause(), "Root cause should be null by default");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/msrpc/SamrPolicyHandleTest.java

            SmbException thrown = assertThrows(SmbException.class, handle::close);
    
            // SmbException constructor maps non-NT status codes to NT_STATUS_UNSUCCESSFUL
            assertEquals(0xC0000001, thrown.getNtStatus()); // NT_STATUS_UNSUCCESSFUL
            verify(mockHandle, times(1)).sendrecv(any(MsrpcSamrCloseHandle.class));
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbException.java

            status = winerr ? errcode : getStatusByCode(errcode);
        }
    
        /**
         * Returns the NT status code for this exception.
         *
         * @return the NT status code
         */
        public int getNtStatus() {
            return status;
        }
    
        /**
         * Returns the root cause of this exception if one exists
         *
         * @return the root cause throwable, or null if none exists
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbWatchHandleImpl.java

                }
                try {
                    resp = th.send(req, resp, RequestParam.NO_TIMEOUT, RequestParam.NO_RETRY);
                } catch (final SmbException e) {
                    if (e.getNtStatus() == 0xC0000120) {
                        // cancelled
                        log.debug("Request was cancelled", e);
                        return null;
                    }
                    throw e;
                }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbCopyUtil.java

                    log.warn("Failed to set file attributes on " + path, e);
                } catch (final SmbException se) {
                    log.trace("copyTo0", se);
                    if (se.getNtStatus() != NtStatus.NT_STATUS_ACCESS_DENIED && se.getNtStatus() != NtStatus.NT_STATUS_OBJECT_NAME_COLLISION) {
                        throw se;
                    }
                }
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/http/NtlmHttpFilter.java

                    }
                } catch (final SmbAuthException sae) {
                    log.warn("NtlmHttpFilter: " + ntlm.getName() + ": 0x" + jcifs.util.Hexdump.toHexString(sae.getNtStatus(), 8) + ": " + sae);
                    if (sae.getNtStatus() == NtStatus.NT_STATUS_ACCESS_VIOLATION) {
                        /*
                         * Server challenge no longer valid for
                         * externally supplied password hashes.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.3K bytes
    - Viewed (0)
Back to top