- Sort Score
- Result 10 results
- Languages All
Results 471 - 480 of 893 for isValid (0.04 sec)
-
src/test/java/jcifs/util/PathValidatorTest.java
// These tests validate current behavior where problematic paths are caught by other checks // Test invalid server name with dots - caught by directory traversal check assertThrows(SmbException.class, () -> { validator.validatePath("\\\\..\\share"); }); // Test invalid characters in paths - caught by null byte check assertThrows(SmbException.class, () -> {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/persistent/DurableHandleV2Response.java
} @Override public int decode(byte[] buffer, int bufferIndex, int len) throws SMBProtocolDecodingException { if (len != 8) { throw new SMBProtocolDecodingException("Invalid durable handle V2 response length: " + len); } this.timeout100Ns = SMBUtil.readInt4(buffer, bufferIndex) & 0xFFFFFFFFL; // Timeout (4 bytes, 100-ns intervals, unsigned)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 3K bytes - Viewed (0) -
cmd/untar.go
} asyncErrMu.Unlock() } }(name, header.FileInfo(), b) continue } // If zero or earlier modtime, set to current. // Otherwise the resulting objects will be invalid. if header.ModTime.UnixNano() <= 0 { header.ModTime = time.Now() } // Sync upload. rc := disconnectReader{r: tarReader} if err := putObject(&rc, header.FileInfo(), name); err != nil {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Tue Feb 18 16:25:55 UTC 2025 - 6K bytes - Viewed (2) -
src/test/java/jcifs/smb/compression/CompressionNegotiateContextTest.java
assertArrayEquals(context.getCompressionAlgorithms(), decodedContext.getCompressionAlgorithms()); assertEquals(context.getFlags(), decodedContext.getFlags()); } @Test @DisplayName("Test invalid buffer size for decoding") public void testInvalidBufferSize() { byte[] smallBuffer = new byte[4]; // Too small assertThrows(SMBProtocolDecodingException.class, () -> {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/ThreadDumpUtilTest.java
// Test with invalid file path (directory that doesn't exist) String invalidPath = "/nonexistent/directory/thread-dump.txt"; try { ThreadDumpUtil.writeThreadDump(invalidPath); // Should not throw exception but log warning } catch (Exception e) { fail("writeThreadDump should handle invalid paths gracefully: " + e.getMessage()); } }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 15.5K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacLogonInfoTest.java
} private void writeLittleEndianLong(DataOutputStream dos, long value) throws IOException { dos.writeLong(Long.reverseBytes(value)); } @Test @DisplayName("Test parsing with invalid data size") void testInvalidDataSize() { byte[] tooSmall = new byte[10]; PACDecodingException exception = assertThrows(PACDecodingException.class, () -> new PacLogonInfo(tooSmall));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.3K bytes - Viewed (0) -
cmd/sftp-server_test.go
} newSSHCon := newSSHConnMock(accessKey + "=svc") _, err = sshPasswordAuth(newSSHCon, []byte("invalid")) if err == nil || !errors.Is(err, errAuthentication) { c.Fatalf("expected err(%s) but got (%s)", errAuthentication, err) } newSSHCon = newSSHConnMock(accessKey) _, err = sshPasswordAuth(newSSHCon, []byte("invalid")) if err == nil || !errors.Is(err, errAuthentication) {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Thu Feb 27 18:43:32 UTC 2025 - 9.7K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/HtmlXpathExtractor.java
/** * Creates and configures a DOM parser with the specified features and properties. * * @return a configured DOM parser instance * @throws CrawlerSystemException if the parser configuration is invalid */ protected DOMParser getDomParser() { final DOMParser parser = new DOMParser(); try { // feature
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 10.3K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/PrimitiveSink.java
* for cross-language compatibility. For other use cases, prefer {@link #putUnencodedChars}, which * is faster, produces the same output across Java releases, and processes every {@code char} in * the input, even if some are invalid. */ @CanIgnoreReturnValue PrimitiveSink putString(CharSequence charSequence, Charset charset);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 3.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcExceptionTest.java
} /** * Test getRootCause() method (deprecated). */ @Test void testGetRootCause() { Throwable cause = new IllegalArgumentException("Invalid argument."); DcerpcException exception = new DcerpcException("Error with cause.", cause); assertEquals(cause, exception.getRootCause(), "getRootCause() should return the original cause."); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0)