Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 67 for SmbException (0.07 sec)

  1. src/main/java/jcifs/util/ServerResponseValidator.java

         * @param maxSize maximum allowed size
         * @throws SmbException if validation fails
         */
        public void validateBuffer(byte[] buffer, int expectedSize, int maxSize) throws SmbException {
            totalValidations.incrementAndGet();
    
            if (buffer == null) {
                failedValidations.incrementAndGet();
                throw new SmbException("Response buffer is null");
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbRandomAccessFile.java

         * @throws SmbException if an SMB error occurs
         */
        public SmbRandomAccessFile(final SmbFile file, final String mode) throws SmbException {
            this(file, mode, SmbConstants.DEFAULT_SHARING, false);
        }
    
        /**
         * Instantiate a random access file from a {@link SmbFile}
         *
         * @param file
         * @param mode
         * @throws SmbException
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/PathValidatorTest.java

        }
    
        @Test
        public void testDirectoryTraversal() throws Exception {
            assertThrows(SmbException.class, () -> {
                validator.validatePath("\\share\\..\\..\\windows\\system32");
            });
        }
    
        @Test
        public void testDirectoryTraversalDot() throws Exception {
            assertThrows(SmbException.class, () -> {
                validator.validatePath("\\share\\.\\..\\folder");
            });
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

         * @throws SmbException if an I/O error occurs
         */
        public void close() throws SmbException {
            file.close();
        }
    
        @Override
        public final boolean readBoolean() throws SmbException {
            if (read(tmp, 0, 1) < 0) {
                throw new SmbException("EOF");
            }
            return tmp[0] != (byte) 0x00;
        }
    
        @Override
        public final byte readByte() throws SmbException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbTreeHandleImpl.java

                return transport.getRemoteHostName();
            }
        }
    
        /**
         * {@inheritDoc}
         *
         * @throws SmbException
         *
         * @see jcifs.SmbTreeHandle#getServerTimeZoneOffset()
         */
        @Override
        public long getServerTimeZoneOffset() throws SmbException {
            try (SmbSessionImpl session = this.treeConnection.getSession(); SmbTransportImpl transport = session.getTransport()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/util/ServerResponseValidatorTest.java

            } catch (SmbException e) {
                // Ignore
            }
    
            try {
                validator.validateBuffer(null, 50, 200); // Will fail
            } catch (SmbException e) {
                // Expected
            }
    
            try {
                validator.safeAdd(Integer.MAX_VALUE, 1); // Will fail
            } catch (SmbException e) {
                // Expected
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbSession.java

         *
         * @return the NTLM challenge from the domain controller
         * @throws SmbException if an SMB error occurs
         * @throws UnknownHostException if the domain controller cannot be resolved
         */
        public static NtlmChallenge getChallengeForDomain() throws SmbException, UnknownHostException {
            if (DOMAIN == null) {
                throw new SmbException("A domain was not specified");
            }
            synchronized (DOMAIN) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbTransportInternalTest.java

        void hasCapability_throws() throws SmbException {
            doThrow(new SmbException("capability check failed")).when(transport).hasCapability(eq(42));
            SmbException ex = assertThrows(SmbException.class, () -> transport.hasCapability(42));
            assertTrue(ex.getMessage().contains("failed"));
            verify(transport).hasCapability(42);
        }
    
        // Edge: disconnected status toggles
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/SIDTest.java

         *
         * @throws SmbException if the SID string is invalid
         */
        @Test
        void testToDisplayStringUnresolved() throws SmbException {
            SID sid = new SID(adminSidString);
            assertEquals(adminSidString, sid.toDisplayString());
        }
    
        /**
         * Test getting the domain SID.
         *
         * @throws SmbException if the SID string is invalid
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbTreeImpl.java

         * @param transport
         * @return
         * @throws SmbException
         */
        private int waitForState(final SmbTransportImpl transport) throws SmbException {
            int cs;
            while ((cs = this.connectionState.get()) != 0) {
                if (cs == 2) {
                    return cs;
                }
                if (cs == 3) {
                    throw new SmbException("Disconnecting during tree connect");
                }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30K bytes
    - Viewed (0)
Back to top