- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for Attempt (0.21 sec)
-
src/main/java/org/codelibs/core/io/FileUtil.java
/** Max Buffer Size */ protected static final int MAX_BUF_SIZE = 10 * 1024 * 1024; // 10m /** * Validates that a given path is safe and does not attempt path traversal attacks. * <p> * This method checks if the resolved absolute path starts with the allowed base directory, * preventing access to files outside the intended directory through path traversalRegistered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 13.1K bytes - Viewed (0) -
fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/client/FesenClientTest.java
assertEquals("Success", result); assertEquals(6, attemptCount.get()); // Initial attempt + 5 retries } /** * Test: Retry logic fails after exceeding maxRetryCount * Verifies that the operation fails after maxRetryCount attempts */ @Test public void testRetryLogicExceedsMaxRetryCount() { fesenClient.setMaxRetryCount(3);Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Nov 20 08:44:44 UTC 2025 - 17K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/login/LoginAction.java
}); } /** * Handles user login with the provided credentials. * * @param form the login form containing username and password * @return the HTML response after login attempt */ @Execute public HtmlResponse login(final LoginForm form) { validate(form, messages -> {}, () -> asIndexPage(form)); verifyToken(() -> asIndexPage(form));Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Nov 27 07:01:25 UTC 2025 - 7.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/base/login/EntraIdCredential.java
logger.debug("Token expired: expiryTime={}, currentTime={}", tokenExpiryTime, currentTime); } return false; } // Attempt to refresh token using MSAL4J silent authentication try { final EntraIdAuthenticator authenticator = ComponentUtil.getComponent(EntraIdAuthenticator.class);
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 7.8K bytes - Viewed (0) -
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) -
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) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/TikaExtractor.java
* </p> * <ul> * <li>Normalizing text content</li> * <li>Handling resource names and content types</li> * <li>Retrying extraction without resource name or content type if the initial attempt fails</li> * <li>Extracting text from metadata if the main content extraction fails</li> * <li>Reading content as plain text if all other methods fail</li> * <li>Applying post-extraction filters</li>
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sun Nov 23 12:19:14 UTC 2025 - 30.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/indexer/IndexUpdater.java
if (errorCount > maxErrorCount) { throw e; } errorCount++; logger.warn("Failed to access AccessResult data. Retrying... (attempt={}/{})", errorCount, maxErrorCount, e); } finally { if (systemHelper.isForceStop()) { finishCrawling = true; if (logger.isDebugEnabled()) {
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 32.9K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/net/protocol/gcs/HandlerTest.java
String objectName = (String) getField(conn, "objectName"); assertEquals("/path//to//object.txt", objectName); } /** * Test that getInputStream() attempts to connect if not connected. */ public void test_getInputStream_autoConnect() throws Exception { URL url = new URL("gcs://mybucket/object.txt"); Handler handler = new Handler();
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Dec 11 08:38:29 UTC 2025 - 14.1K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/net/protocol/storage/HandlerTest.java
String objectName = (String) getField(conn, "objectName"); assertEquals("/path//to//object.txt", objectName); } /** * Test that getInputStream() attempts to connect if not connected. */ public void test_getInputStream_autoConnect() throws Exception { URL url = new URL("storage://mybucket/object.txt"); Handler handler = new Handler();
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Dec 11 08:38:29 UTC 2025 - 14.4K bytes - Viewed (0)