Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 54 for NTSTATUS (0.05 sec)

  1. 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
     */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  2. 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.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbTreeImpl.java

                    }
                }
    
                try {
                    return sess.send(request, response, params);
                } catch (final SmbException se) {
                    if (se.getNtStatus() == NtStatus.NT_STATUS_NETWORK_NAME_DELETED) {
                        /*
                         * Someone removed the share while we were
                         * connected. Bastards! Disconnect this tree
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30K bytes
    - Viewed (0)
  4. 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);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/http/NetworkExplorer.java

    import jcifs.NameServiceClient;
    import jcifs.SmbConstants;
    import jcifs.config.PropertyConfiguration;
    import jcifs.context.BaseContext;
    import jcifs.netbios.NbtAddress;
    import jcifs.smb.DfsReferral;
    import jcifs.smb.NtStatus;
    import jcifs.smb.NtlmPasswordAuthentication;
    import jcifs.smb.SmbAuthException;
    import jcifs.smb.SmbException;
    import jcifs.smb.SmbFile;
    import jcifs.smb.SmbFileInputStream;
    
    /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 23.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/dcerpc/msrpc/LsaPolicyHandleTest.java

            // Act & Assert
            SmbException thrown = assertThrows(SmbException.class, () -> {
                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));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbWatchHandleImplTest.java

            assertTrue(ex.getMessage().contains("Did not receive response"));
        }
    
        // If the request is cancelled (NTSTATUS 0xC0000120), return null
        @Test
        @DisplayName("watch() returns null when request cancelled (NTSTATUS 0xC0000120)")
        void watch_sendCancelled_returnsNull() throws Exception {
            when(handle.isValid()).thenReturn(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/http/NtlmHttpFilter.java

    import jcifs.Address;
    import jcifs.CIFSContext;
    import jcifs.CIFSException;
    import jcifs.Config;
    import jcifs.config.PropertyConfiguration;
    import jcifs.context.BaseContext;
    import jcifs.netbios.UniAddress;
    import jcifs.smb.NtStatus;
    import jcifs.smb.NtlmChallenge;
    import jcifs.smb.NtlmPasswordAuthentication;
    import jcifs.smb.SmbAuthException;
    import jcifs.smb.SmbException;
    import jcifs.smb.SmbSessionInternal;
    import jcifs.smb.SmbTransportInternal;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.3K 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/test/java/jcifs/smb/SmbEndOfFileExceptionTest.java

            SmbEndOfFileException ex = new SmbEndOfFileException();
    
            // 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)
Back to top