- Sort Score
- Num 10 results
- Language All
Results 1 - 7 of 7 for setPath (0.07 seconds)
-
src/main/java/jcifs/smb/SmbSessionImpl.java
* assert that the tree connect path uses the netbios hostname. */ tcax.setPath("\\\\" + this.netbiosName + "\\IPC$"); } } request.setSessionId(this.sessionId); request.setUid(this.uid);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 68.9K bytes - Click Count (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java
mavenConf = fileSystem.getPath(systemProperties.getProperty(MAVEN_INSTALLATION_CONF)); } else if (systemProperties.getProperty("maven.conf") != null) { mavenConf = fileSystem.getPath(systemProperties.getProperty("maven.conf")); } else if (systemProperties.getProperty(MAVEN_HOME) != null) { mavenConf = fileSystem.getPath(systemProperties.getProperty(MAVEN_HOME), "conf");
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Mon Oct 27 13:24:03 GMT 2025 - 78.1K bytes - Click Count (0) -
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/test/java/org/codelibs/fess/job/IndexExportJobTest.java
@Test public void test_buildFilePath_questionMarkInPath() { final Path result = indexExportJob.buildFilePath("/export", "https://example.com/page?query=1", new HtmlIndexExportFormatter()); // URI.getPath() returns /page for this URL (query is separate) assertEquals(Path.of("/export/example.com/page.html"), result); } @Test public void test_buildFilePath_longPathComponent() {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Mar 15 09:08:38 GMT 2026 - 66.1K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/crawler/transformer/FessXpathTransformer.java
final URL childUrl = new URL(url, urlValue.startsWith(":") ? url.getProtocol() + urlValue : urlValue); String childUrlStr = childUrl.toExternalForm(); final String path = childUrl.getPath(); if (path != null && path.startsWith("/../")) { String normalizedPath = path; while (normalizedPath.startsWith("/../")) {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 12 01:46:45 GMT 2026 - 55.3K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFileIntegrationTest.java
SmbFile file = new SmbFile(baseUrl + "shared/path/file.txt", context); assertEquals("file.txt", file.getName(), "Name should be extracted correctly"); assertTrue(file.getPath().endsWith("/shared/path/file.txt"), "Path should end correctly"); assertEquals("shared", file.getShare(), "Share should be extracted correctly"); assertNotNull(file.getParent(), "Parent should not be null");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 56K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbTransportImpl.java
case NtStatus.NT_STATUS_PATH_NOT_COVERED: // samba fails to report the proper status for some operations case 0xC00000A2: // NT_STATUS_MEDIA_WRITE_PROTECTED checkReferral(resp, req.getPath(), req); case NtStatus.NT_STATUS_BUFFER_OVERFLOW: break; /* normal for DCERPC named pipes */ case NtStatus.NT_STATUS_MORE_PROCESSING_REQUIRED: break; /* normal for NTLMSSP */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 69.8K bytes - Click Count (0)