Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 150 for SmbException (0.05 sec)

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

        }
    
        @Override
        public boolean hasCapability(final int cap) throws SmbException {
            return getNegotiateResponse().haveCapabilitiy(cap);
        }
    
        /**
         * @return the negotiated
         * @throws SmbException
         */
        SmbNegotiationResponse getNegotiateResponse() throws SmbException {
            try {
                if (this.negotiated == null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbTree.java

                            break;
                        default:
                            throw new SmbException("Invalid operation for " + service + " service");
                        }
                        break;
                    default:
                        throw new SmbException("Invalid operation for " + service + " service" + request);
                    }
                }
                request.tid = tid;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/msrpc/SamrDomainHandleTest.java

                rpc.retval = errorCode; // Simulate error
                return null;
            }).when(mockDcerpcHandle).sendrecv(any(MsrpcSamrOpenDomain.class));
    
            // Act & Assert
            SmbException thrown = assertThrows(SmbException.class, () -> {
                new SamrDomainHandle(mockDcerpcHandle, mockPolicyHandle, access, mockSid);
            });
            assertEquals(errorCode, thrown.getNtStatus());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbFileOutputStream.java

         *
         * @param url An smb URL string representing the file to write to
         * @throws SmbException if an SMB error occurs
         * @throws MalformedURLException if the URL is not properly formatted
         * @throws UnknownHostException if the host cannot be resolved
         */
    
        public SmbFileOutputStream(final String url) throws SmbException, MalformedURLException, UnknownHostException {
            this(url, false);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java

        void invalidUrlPathThrows() throws Exception {
            // Override the default setup for this specific test
            URL invalidUrl = new URL("smb://server/share/dir"); // no trailing '/'
            when(locator.getURL()).thenReturn(invalidUrl);
    
            SmbException ex =
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/dcerpc/msrpc/LsaPolicyHandle.java

     */
    
    package jcifs.smb1.dcerpc.msrpc;
    
    import java.io.IOException;
    
    import jcifs.smb1.dcerpc.DcerpcHandle;
    import jcifs.smb1.dcerpc.rpc;
    import jcifs.smb1.smb1.SmbException;
    
    /**
     * LSA policy handle for Local Security Authority operations.
     */
    public class LsaPolicyHandle extends rpc.policy_handle {
    
        DcerpcHandle handle;
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbTreeInternalTest.java

        }
    
        @Test
        @DisplayName("connectLogon propagates SmbException from implementation")
        void connectLogon_throws_propagates() throws Exception {
            // Arrange
            doThrow(new SmbException("login failed")).when(tree).connectLogon(context);
    
            // Act + Assert
            SmbException ex = assertThrows(SmbException.class, () -> tree.connectLogon(context));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/msrpc/LsaPolicyHandleTest.java

                rpc.retval = errorCode; // Simulate RPC error
                return null;
            }).when(mockDcerpcHandle).sendrecv(any(MsrpcLsarOpenPolicy2.class));
    
            // Act & Assert
            SmbException thrown = assertThrows(SmbException.class, () -> {
                new LsaPolicyHandle(mockDcerpcHandle, server, access);
            });
    
            // The error code gets mapped to NT_STATUS_UNSUCCESSFUL because it's not a valid NT status code
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbTransport.java

        }
    
        /**
         * Establishes a connection to the SMB server.
         *
         * @throws SmbException if the connection fails
         */
        public void connect() throws SmbException {
            try {
                super.connect(RESPONSE_TIMEOUT);
            } catch (final TransportException te) {
                throw new SmbException("Failed to connect: " + address, te);
            }
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbFileFilterTest.java

        }
    
        @Test
        @DisplayName("accept: propagates SmbException thrown by dependency")
        void accept_propagatesSmbException() throws Exception {
            // Arrange: filter delegates to isDirectory which may throw SmbException
            SmbFileFilter filter = f -> f.isDirectory();
            SmbException boom = new SmbException("io error");
            when(smbFile.isDirectory()).thenThrow(boom);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
Back to top