Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for SmbUnsupportedOperationException (0.49 sec)

  1. src/main/java/jcifs/smb/SmbUnsupportedOperationException.java

     *
     * @author mbechler
     *
     */
    public class SmbUnsupportedOperationException extends SmbException {
    
        /**
         *
         */
        private static final long serialVersionUID = -5576981906065713710L;
    
        /**
         * Constructs a new SmbUnsupportedOperationException with a default message
         */
        public SmbUnsupportedOperationException() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java

        @DisplayName("assertThrows captures and exposes the default message")
        void assertThrows_capturesDefaultMessage() {
            // Act & Assert
            SmbUnsupportedOperationException ex = assertThrows(SmbUnsupportedOperationException.class, () -> {
                throw new SmbUnsupportedOperationException();
            });
            assertEquals("Operation is not supported with the negotiated capabilities", ex.getMessage());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/Kerb5AuthenticatorTest.java

            Kerb5Authenticator auth = new Kerb5Authenticator((Subject) null);
    
            // Using an uppercase short name (no dot) must throw an unsupported operation
            SmbUnsupportedOperationException ex =
                    assertThrows(SmbUnsupportedOperationException.class, () -> auth.createContext(tc, null, "SERVER", new byte[0], false));
            assertTrue(ex.getMessage().contains("Cannot use netbios/short names"));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbEnumerationUtilTest.java

                // Act + Assert: doEnum throws SmbUnsupportedOperationException which is returned as-is
                SmbUnsupportedOperationException ex =
                        assertThrows(SmbUnsupportedOperationException.class, () -> SmbEnumerationUtil.list(parent, "*", 0, null, null));
                // SmbUnsupportedOperationException is directly thrown, not wrapped
                assertNotNull(ex);
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbTransportImplTest.java

                // Not SMB2
                assertThrows(SmbUnsupportedOperationException.class, () -> transport.calculatePreauthHash(new byte[] { 1 }, 0, 1, null));
    
                // SMB2 flag set but no negotiation
                setField(transport, "smb2", true);
                assertThrows(SmbUnsupportedOperationException.class, () -> transport.calculatePreauthHash(new byte[] { 1 }, 0, 1, null));
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/NtlmContext.java

                        throw new SmbUnsupportedOperationException("Server does not support extended NTLMv2 key exchange");
                    }
    
                    if (!msg2.getFlag(NtlmFlags.NTLMSSP_NEGOTIATE_128)) {
                        throw new SmbUnsupportedOperationException("Server does not support 128-bit keys");
                    }
                }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/Kerb5Authenticator.java

                // A potential workaround would be to try to get the server FQDN by reverse lookup, but this might have
                // security implications and also is not how Microsoft does it.
                throw new SmbUnsupportedOperationException("Cannot use netbios/short names with kerberos authentication, have " + host);
            }
            try {
                NegTokenInit tok = new NegTokenInit(initialToken);
                if (log.isDebugEnabled()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbEnumerationUtil.java

                        throw new SmbUnsupportedOperationException();
                    }
                    throw e;
                }
                try (SmbFile browser = (SmbFile) parent.resolve(addr.getHostAddress())) {
                    try (SmbTreeHandleImpl th = browser.ensureTreeConnected()) {
                        if (th.isSMB2()) {
                            throw new SmbUnsupportedOperationException();
                        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbCopyUtil.java

            if (sh.isSMB2() && dh.isSMB2() && sh.isSameTree(dh)) {
                try {
                    serverSideCopy(src, dest, sh, dh, false);
                    return;
                } catch (final SmbUnsupportedOperationException e) {
                    log.debug("Server side copy not supported, falling back to normal copying", e);
                } catch (final CIFSException e) {
                    log.warn("Server side copy failed", e);
    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/SmbWatchHandleImplTest.java

            verify(handle, never()).markClosed();
            verify(tree, never()).hasCapability(anyInt()); // not checked on SMB2
        }
    
        // SMB1 path: without CAP_NT_SMBS it should throw SmbUnsupportedOperationException
        @Test
        @DisplayName("watch() SMB1 without capability throws unsupported")
        void watch_smb1_noCapability_throwsUnsupported() 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)
Back to top