Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 851 - 860 of 2,914 for math (0.14 seconds)

  1. src/test/java/org/codelibs/fess/app/web/admin/design/AdminDesignActionTest.java

            Boolean result = invokeIsValidUploadPath(validFile, baseDir);
            assertTrue("Valid path in subdirectory should be allowed", result);
        }
    
        @Test
        public void test_isValidUploadPath_pathTraversal_simple() throws Exception {
            // Test simple path traversal attack
            File baseDir = new File(tempDir.toFile(), "images");
            baseDir.mkdirs();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 13.6K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/ReflectionFreeAssertThrows.java

                  + " map in that class.");
        }
        Object result;
        try {
          result = supplier.get();
        } catch (Throwable t) {
          if (predicate.apply(t)) {
            // We are careful to set up INSTANCE_OF to match each Predicate to its target Class.
            @SuppressWarnings("unchecked")
            T caught = (T) t;
            return caught;
          }
          throw new AssertionError(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 7K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/app/service/PathMappingService.java

        }
    
        /**
         * Gets a path mapping by ID.
         *
         * @param id the path mapping ID
         * @return the path mapping
         */
        public OptionalEntity<PathMapping> getPathMapping(final String id) {
            return pathMappingBhv.selectByPK(id);
        }
    
        /**
         * Stores a path mapping.
         *
         * @param pathMapping the path mapping to store
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  4. src/main/java/jcifs/util/InputValidator.java

         *
         * @param path the path to normalize
         * @return normalized path
         */
        public static String normalizeSmbPath(String path) {
            validateSmbPath(path);
    
            // Normalize slashes
            path = path.replace('/', '\\');
    
            // Remove redundant slashes
            path = path.replaceAll("\\\\+", "\\\\");
    
            // Remove trailing slash unless it's root
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 13.5K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/helper/ProtocolHelperTest.java

            assertTrue(protocolHelper.isValidFileProtocol("s3://my-bucket/path"));
            assertTrue(protocolHelper.isValidFileProtocol("s3://bucket.with.dots/path"));
            assertTrue(protocolHelper.isValidFileProtocol("s3://bucket-with-dashes/path"));
            assertTrue(protocolHelper.isValidFileProtocol("s3://123bucket/path"));
            assertTrue(protocolHelper.isValidFileProtocol("s3://bucket/path/to/deep/nested/file.txt"));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 35.1K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/helper/ThemeHelperTest.java

                deleteDirectory(tempDir);
            }
            super.tearDown(testInfo);
        }
    
        private void deleteDirectory(Path dir) throws IOException {
            Files.walk(dir).sorted((a, b) -> b.compareTo(a)).forEach(path -> {
                try {
                    Files.delete(path);
                } catch (IOException e) {
                    // Ignore
                }
            });
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 14.7K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/core/io/FileUtilTest.java

        }
    
        /**
         * Test isPathSafe with path outside base directory
         *
         * @throws Exception
         */
        @Test
        public void testIsPathSafe_PathOutsideBase() throws Exception {
            final Path baseDir = tempFolder.getRoot().toPath();
            final Path outsidePath = Paths.get("/tmp/outside.txt");
    
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat Nov 22 11:21:59 GMT 2025
    - 10.3K bytes
    - Click Count (0)
  8. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/MavenMetadata.java

            this.timestamp = timestamp;
        }
    
        @Override
        public String getType() {
            return MAVEN_METADATA_XML;
        }
    
        @Deprecated
        @Override
        public File getFile() {
            return path != null ? path.toFile() : null;
        }
    
        @Override
        public Path getPath() {
            return path;
        }
    
        @Override
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/app/web/admin/pathmap/AdminPathmapAction.java

        /**
         * Displays the main path mapping administration page.
         *
         * @param form the search form containing search criteria
         * @return HTML response for the path mapping list page
         */
        @Execute
        @Secured({ ROLE, ROLE + VIEW })
        public HtmlResponse index(final SearchForm form) {
            return asListHtml();
        }
    
        /**
         * Displays the path mapping list with pagination support.
         *
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 20 13:56:35 GMT 2025
    - 15.4K bytes
    - Click Count (0)
  10. compat/maven-model-builder/src/main/java/org/apache/maven/model/path/DefaultPathTranslator.java

        @Override
        public String alignToBaseDirectory(String path, File basedir) {
            String result = path;
    
            if (path != null && basedir != null) {
                path = path.replace('\\', File.separatorChar).replace('/', File.separatorChar);
    
                File file = new File(path);
                if (file.isAbsolute()) {
                    // path was already absolute, just normalize file separator and we're done
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 2.1K bytes
    - Click Count (0)
Back to Top