Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 128 of 128 for SMBProtocolDecodingException (0.48 sec)

  1. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

         * @param bufferIndex the starting offset in the buffer
         * @return the number of bytes read
         * @throws SMBProtocolDecodingException if the data cannot be decoded
         */
        protected abstract int readBytesWireFormat(byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException;
    
        @Override
        public int hashCode() {
            return this.mid;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/TreeConnectResponseTest.java

                // Verify the actual cause is SMBProtocolDecodingException
                assertTrue(exception instanceof java.lang.reflect.InvocationTargetException, "Should be wrapped in InvocationTargetException");
                Throwable cause = exception.getCause();
                assertTrue(cause instanceof SMBProtocolDecodingException, "Actual cause should be SMBProtocolDecodingException");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbTransportImpl.java

                throw e;
            }
    
        }
    
        /**
         * @param response
         * @throws IOException
         * @throws SMBProtocolDecodingException
         */
        private void doRecvSMB2(final CommonServerMessageBlock response) throws IOException, SMBProtocolDecodingException {
            int size = Encdec.dec_uint16be(this.sbuf, 2) & 0xFFFF | (this.sbuf[1] & 0xFF) << 16;
            if (size < Smb2Constants.SMB2_HEADER_LENGTH + 1) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/com/SmbComLockingAndXTest.java

        }
    
        /**
         * Test decoding of bytes buffer that is too short triggers an exception.
         * Note: The actual implementation throws ArrayIndexOutOfBoundsException
         * when the buffer is too short, not SMBProtocolDecodingException.
         */
        @Test
        void readBytesWireFormatTooShortException() {
            Configuration cfg = mock(Configuration.class);
            SmbComLockingAndX cmd = new SmbComLockingAndX(cfg);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

    import org.junit.jupiter.params.provider.ValueSource;
    
    import jcifs.CIFSContext;
    import jcifs.Configuration;
    import jcifs.DialectVersion;
    import jcifs.internal.CommonServerMessageBlock;
    import jcifs.internal.SMBProtocolDecodingException;
    import jcifs.internal.SmbNegotiationResponse;
    import jcifs.internal.smb2.ServerMessageBlock2;
    import jcifs.internal.smb2.ServerMessageBlock2Response;
    import jcifs.internal.smb2.Smb2Constants;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/RequestWithPathTest.java

                return resolveInDfs;
            }
    
            // CommonServerMessageBlock interface methods (stubbed for testing)
            @Override
            public int decode(byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException {
                return 0;
            }
    
            @Override
            public int encode(byte[] dst, int dstIndex) {
                return 0;
            }
    
            @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/NotifyResponseTest.java

                this.nextResponse = null;
            }
    
            // CommonServerMessageBlock interface methods
            @Override
            public int decode(byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException {
                // Mock implementation
                return 0;
            }
    
            @Override
            public int encode(byte[] dst, int dstIndex) {
                // Mock implementation
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  8. docs/smb3-features/01-smb3-lease-design.md

            dstIndex += 4;
            
            return dstIndex - start;
        }
        
        @Override
        protected int readPayload(byte[] buffer, int offset) throws SMBProtocolDecodingException {
            int start = offset;
            
            // StructureSize (2 bytes)
            structureSize = readInt2(buffer, offset);
            offset += 2;
            
            // Reserved (2 bytes)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 22K bytes
    - Viewed (0)
Back to top