Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 54 for NTSTATUS (1.54 sec)

  1. src/main/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponse.java

    import jcifs.internal.SMBProtocolDecodingException;
    import jcifs.internal.smb1.trans.nt.FileNotifyInformationImpl;
    import jcifs.internal.smb2.ServerMessageBlock2Response;
    import jcifs.internal.util.SMBUtil;
    import jcifs.smb.NtStatus;
    
    /**
     * SMB2 Change Notify response message.
     *
     * This response contains information about file system changes
     * that occurred in the monitored directory.
     *
     * @author mbechler
     */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java

                assertTrue(response.isError());
            }
        }
    
        @ParameterizedTest
        @ValueSource(ints = { NtStatus.NT_STATUS_SUCCESS, NtStatus.NT_STATUS_PENDING, NtStatus.NT_STATUS_ACCESS_DENIED,
                NtStatus.NT_STATUS_INVALID_PARAMETER })
        @DisplayName("Should handle various status codes")
        void testVariousStatusCodes(int status) {
            response.setStatusForTest(status);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/session/Smb2SessionSetupResponse.java

    import jcifs.internal.CommonServerMessageBlockRequest;
    import jcifs.internal.SMBProtocolDecodingException;
    import jcifs.internal.smb2.ServerMessageBlock2Response;
    import jcifs.internal.util.SMBUtil;
    import jcifs.smb.NtStatus;
    
    /**
     * SMB2 Session Setup response message. This response contains the server's authentication
     * challenge or confirms successful session establishment.
     *
     * @author mbechler
     *
     */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.8K bytes
    - Viewed (1)
  4. src/main/java/jcifs/smb1/smb1/SmbTransport.java

            switch (resp.errorCode) {
            case NtStatus.NT_STATUS_SUCCESS:
                break;
            case NtStatus.NT_STATUS_ACCESS_DENIED:
            case NtStatus.NT_STATUS_WRONG_PASSWORD:
            case NtStatus.NT_STATUS_LOGON_FAILURE:
            case NtStatus.NT_STATUS_ACCOUNT_RESTRICTION:
            case NtStatus.NT_STATUS_INVALID_LOGON_HOURS:
            case NtStatus.NT_STATUS_INVALID_WORKSTATION:
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbException.java

     * <p>
     * The jCIFS client maps DOS error codes to NTSTATUS codes. This means that
     * the user may recieve a different error from a legacy server than that of
     * a newer varient such as Windows NT and above. If you should encounter
     * such a case, please report it to jcifs at samba dot org and we will
     * change the mapping.
     */
    
    public class SmbException extends IOException implements NtStatus, DosError, WinError {
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6K bytes
    - Viewed (0)
  6. 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;
            }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.1K 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponse.java

            final int status = getStatus();
            return status != NtStatus.NT_STATUS_INVALID_PARAMETER && ((status != NtStatus.NT_STATUS_INVALID_PARAMETER)
                    || ((this.ctlCode != Smb2IoctlRequest.FSCTL_SRV_COPYCHUNK) && (this.ctlCode != Smb2IoctlRequest.FSCTL_SRV_COPYCHUNK_WRITE)))
                    && ((status != NtStatus.NT_STATUS_BUFFER_OVERFLOW)
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SIDCacheImplTest.java

            // Interaction: sendrecv invoked exactly once
            verify(handle, times(1)).sendrecv(any(jcifs.dcerpc.msrpc.MsrpcLookupSids.class));
        }
    
        @ParameterizedTest
        @ValueSource(ints = { NtStatus.NT_STATUS_SUCCESS, NtStatus.NT_STATUS_NONE_MAPPED, 0x00000107 })
        @DisplayName("resolveSids(DcerpcHandle,...) accepts success/none/some-not-mapped codes")
        void resolveSids_allowsCertainRetvals_noThrow(int ret) throws Exception {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14K bytes
    - Viewed (0)
  10. 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;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.1K bytes
    - Viewed (0)
Back to top