- Sort Score
- Num 10 results
- Language All
Results 111 - 120 of 291 for getPath (0.05 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/HttpUrl.kt
* * ```java * String attack = "http://example.com/static/images/../../../../../etc/passwd"; * System.out.println(new URL(attack).getPath()); * System.out.println(new URI(attack).getPath()); * System.out.println(HttpUrl.parse(attack).encodedPath()); * ``` * * By canonicalizing the input paths, they are complicit in directory traversal attacks. Code that
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 63.5K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbFileDirectoryLeasingExtension.java
if (dirManager == null) { log.debug("Directory leasing not available for: {}", smbFile.getPath()); return null; } return dirManager.requestDirectoryLease(smbFile.getPath(), requestedState, scope); } catch (CIFSException e) { throw SmbException.wrap(e); } } /**
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 02:21:31 GMT 2025 - 7.1K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/persistent/PersistentHandleManager.java
StandardOpenOption.WRITE, StandardOpenOption.TRUNCATE_EXISTING))) { oos.writeObject(info); log.debug("Persisted handle: {}", info.getPath()); } catch (IOException e) { log.error("Failed to persist handle: " + info.getPath(), e); } } private void removePersistedHandle(HandleInfo info) { if (info.getType() != HandleType.PERSISTENT) { return;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 24 00:49:49 GMT 2025 - 13K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/testfixtures/TestFixturesPlugin.java
"No " + DOCKER_COMPOSE_YML + " found for " + project.getPath() + " nor does it use other fixtures." ); } }); } extension.fixtures.matching(fixtureProject -> fixtureProject.equals(project) == false) .all(fixtureProject -> project.evaluationDependsOn(fixtureProject.getPath())); // Skip docker compose tasks if it is unavailable
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Wed Sep 29 15:07:50 GMT 2021 - 10.7K bytes - Click Count (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/ResolveFile.java
return null; } else if (file.isAbsolute()) { return file; } else if (file.getPath().startsWith(File.separator)) { // drive-relative Windows path return file.getAbsoluteFile(); } else { return Paths.get(baseDirectory, file.getPath()).normalize().toFile(); } }Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Nov 08 08:49:11 GMT 2024 - 1.4K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/configuration/BasedirBeanConfigurationPathTranslator.java
} else if (path.getPath().startsWith(File.separator)) { // drive-relative Windows path, don't align with base dir but with drive root result = path.getAbsoluteFile(); } else { // an ordinary relative path, align with base dir result = new File(new File(basedir, path.getPath()).toURI().normalize()).getAbsoluteFile(); }
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 2.1K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/path/DefaultPathTranslator.java
File file = new File(path); if (file.isAbsolute()) { // path was already absolute, just normalize file separator and we're done result = file.getPath(); } else if (file.getPath().startsWith(File.separator)) { // drive-relative Windows path, don't align with project directory but with drive root result = file.getAbsolutePath(); } else {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) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvn/resident/ResidentMavenInvokerTest.java
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Oct 16 10:47:37 GMT 2025 - 2.5K bytes - Click Count (0) -
docs/smb3-features/06-witness-protocol-design.md
// Perform normal tree connection super.connect(); // Register for witness notifications for this share if (session.isWitnessEnabled()) { String shareName = getPath(); // e.g., "\\server\share" session.registerForWitnessNotifications(shareName); } } ``` ### 5.3 File Handle Integration ```java // In SmbFile.java @OverrideCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 42K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/ServerMessageBlock.java
*/ public final void setErrorCode(final int errorCode) { this.errorCode = errorCode; } /** * @return the path */ @Override public final String getPath() { return this.path; } /** * {@inheritDoc} * * @see jcifs.internal.RequestWithPath#getFullUNCPath() */ @Override public String getFullUNCPath() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 38.9K bytes - Click Count (0)