Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 83 for Attempt (0.49 sec)

  1. src/main/java/jcifs/internal/smb2/persistent/PersistentHandleManager.java

                    return info;
                }
                return null;
            } finally {
                lock.readLock().unlock();
            }
        }
    
        /**
         * Complete a reconnection attempt
         * @param path the file path
         * @param success true if reconnection was successful
         */
        public void completeReconnect(String path, boolean success) {
            lock.writeLock().lock();
            try {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 13K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/io/FileUtilTest.java

            final Path safePath = baseDir.resolve("subdir/file.txt");
    
            assertTrue("Safe path should be allowed", FileUtil.isPathSafe(safePath, baseDir));
        }
    
        /**
         * Test isPathSafe with path traversal attempt
         *
         * @throws Exception
         */
        @Test
        public void testIsPathSafe_PathTraversalAttempt() throws Exception {
            final Path baseDir = tempFolder.getRoot().toPath();
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/com/SmbComTreeConnectAndXResponse.java

            // However, we'll try to read it safely for compatibility
            if (this.byteCount > bufferIndex - start) {
                try {
                    // Attempt to read nativeFileSystem, but don't fail if there are issues
                    final int fsLen = this.byteCount - (bufferIndex - start);
                    if (fsLen > 0 && fsLen < 256) { // Sanity check on length
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/util/ResourceManager.java

                    activeResources.remove(entry.getKey());
                    cleaned++;
                } else if (!holder.closed && holder.getAge() > maxResourceAge * 2) {
                    // Very old unclosed resource - attempt to close it
                    AutoCloseable resource = holder.resourceRef.get();
                    if (resource != null) {
                        try {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/multichannel/ChannelFailoverTest.java

            IOException error = new IOException("Connection failed");
            failover.handleFailure(failedChannel, error);
    
            // Wait a bit for recovery attempt
            Thread.sleep(100);
    
            verify(mockChannelManager).createTransport(failedChannel.getLocalInterface(), failedChannel.getRemoteInterface());
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/fs/FileSystemClientTest.java

            if (client.isInit.compareAndSet(false, true)) {
                client.init();
            }
            assertTrue("Client should be initialized", client.isInit.get());
    
            // Second initialization attempt should be no-op
            boolean secondInit = client.isInit.compareAndSet(false, true);
            assertFalse("Second initialization should not occur", secondInit);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Wed Nov 19 08:59:28 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/SmbResource.java

         * Initially, the SIDs within each ACE will not be resolved however when
         * <code>getType()</code>, <code>getDomainName()</code>, <code>getAccountName()</code>,
         * or <code>toString()</code> is called, the names will attempt to be
         * resolved. If the names cannot be resolved (e.g. due to temporary
         * network failure), the said methods will return default values (usually
         * <code>S-X-Y-Z</code> strings of fragments of).
         * <p>
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 28K bytes
    - Viewed (1)
  8. src/test/java/jcifs/smb/FileEntryAdapterIteratorTest.java

            verify(resource, times(2)).close();
        }
    
        @Test
        @DisplayName("Iterator with filter throwing exception")
        void iteratorWithFilterException() throws Exception {
            // Setup: first attempt throws, second succeeds
            FileEntry entry1 = mock(FileEntry.class);
            FileEntry entry2 = mock(FileEntry.class);
    
            when(delegate.hasNext()).thenReturn(true, true, false);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbTreeConnection.java

                    last = e;
                }
            }
    
            if (last != null) {
                log.debug("All attempts have failed, last exception", last);
                throw last;
            }
            throw new SmbException("All attempts failed, but no exception");
        }
    
        private <T extends CommonServerMessageBlockResponse> T send0(final SmbResourceLocatorImpl loc,
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (1)
  10. src/test/java/jcifs/smb1/smb1/SmbTreeTest.java

            assertThrows(SmbException.class, () -> tree.send(request, response));
        }
    
        @Test
        void testTreeConnectWithWaitInterrupted() throws Exception {
            // Create a tree and simulate concurrent connection attempt
            SmbTree tree = new SmbTree(session, "testShare", "testService");
    
            // Mock transport.connect() to throw RuntimeException wrapping InterruptedException
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.2K bytes
    - Viewed (0)
Back to top