Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for Attempt (3.06 sec)

  1. 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 traversal
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/CrawlerClientFactory.java

        /**
         * Creates a new instance of CrawlerClientFactory.
         */
        public CrawlerClientFactory() {
            // NOP
        }
    
        /**
         * Initializes the CrawlerClientFactory.
         * Attempts to register itself with a "crawlerClientCreator" component if available.
         */
        @PostConstruct
        public void init() {
            try {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/helper/IndexingHelper.java

     */
    public class IndexingHelper {
        /** Logger for this class */
        private static final Logger logger = LogManager.getLogger(IndexingHelper.class);
    
        /** Maximum number of retry attempts for failed operations */
        protected int maxRetryCount = 5;
    
        /** Default number of rows to process in a single batch */
        protected int defaultRowSize = 100;
    
        /**
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 26.1K bytes
    - Viewed (0)
Back to top