- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for invalidHost (0.13 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt
.onResponseEnd( CloseSocket( closeSocket = false, shutdownOutput = true, ), ).build(), ) } @Test fun invalidHost() { // Note that 1234.1.1.1 is an invalid host in a URI, but URL isn't as strict. client = client .newBuilder() .dns(FakeDns()) .build()
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sat Jun 21 20:36:35 UTC 2025 - 133.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
executeSynchronously(request) assertThat(server.takeRequest().body?.utf8()).isEqualTo("abc") } @Disabled // This may fail in DNS lookup, which we don't have timeouts for. @Test fun invalidHost() { val request = Request("http://1234.1.1.1/".toHttpUrl()) executeSynchronously(request) .assertFailure(UnknownHostException::class.java) } @Test
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 19:13:52 UTC 2025 - 147.4K bytes - Viewed (0) -
src/main/java/jcifs/util/PathValidator.java
if (host == null || host.isEmpty()) { throw new SmbException("SMB URL missing host"); } // Validate host format if (!isValidHost(host)) { throw new SmbException("Invalid host in SMB URL"); } // Validate path component String path = url.getPath();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportPoolImplTest.java
void testDefaultPort(int invalidPort) throws Exception { // Given: Create a new pool for this test to ensure isolation SmbTransportPoolImpl testPool = new SmbTransportPoolImpl(); when(ctx.getTransportPool()).thenReturn(testPool); // Connection with invalid port SmbTransportImpl first = testPool.getSmbTransport(ctx, address, invalidPort, false);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 19.2K bytes - Viewed (0)