- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 211 for Ensure (0.91 sec)
-
src/main/java/jcifs/smb1/netbios/NameServiceClient.java
/* Yes, there is the potential to drop packets * because we might close the socket during a * request. However the chances are slim and the * retry code should ensure the overall request * is serviced. The alternative complicates things * more than I think is worth it. */ if (socket != null) { socket.close();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java
import jcifs.internal.smb2.Smb2Constants; import jcifs.internal.util.SMBUtil; /** * Security-focused test cases for Smb2NegotiateResponse input validation. * Tests various malformed input scenarios to ensure proper validation and * protection against buffer overflow, integer overflow, and other attacks. */ public class Smb2NegotiateResponseInputValidationTest { private Configuration mockConfig;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/netbios/LmhostsTest.java
// First read NbtAddress result = lmhosts.getByName("TESTHOST", mockContext); assertNotNull(result); // Modify file with a delay to ensure different lastModified time Thread.sleep(100); try (FileWriter writer = new FileWriter(lmhostsFile)) { writer.write("192.168.1.200 NEWHOST\n"); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.2K bytes - Viewed (0) -
README.md
mvn formatter:format mvn license:format ``` ### Code Style - Follow Java coding conventions - Use proper JavaDoc comments for public APIs - Include unit tests for new functionality - Ensure all tests pass before submitting PR ## License
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sun Aug 31 05:32:52 UTC 2025 - 15.3K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameQueryResponseTest.java
Field opCodeField = NameServicePacket.class.getDeclaredField("opCode"); opCodeField.setAccessible(true); opCodeField.set(nameQueryResponse, 7); // WACK opCode, which is not QUERY (0) // Ensure 'resultCode' is 0 for this test to isolate opCode condition Field resultCodeField = NameServicePacket.class.getDeclaredField("resultCode"); resultCodeField.setAccessible(true);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.4K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java
assertEquals(10, derivedBuffer.index); assertSame(ndrBuffer.deferred, derivedBuffer.deferred); // Deferred should be the same as original // Ensure changes to derived buffer don't affect original's index/start derivedBuffer.advance(5); assertEquals(15, derivedBuffer.index); assertEquals(50, ndrBuffer.index); // Original index should be unchanged }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.4K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/s3/S3Client.java
} catch (final Exception e) { logger.warn("Failed to get object tags: bucket={}, path={}", bucketName, path, e); } return null; } /** * Preprocesses a URI to ensure it has the correct S3 protocol prefix. * @param uri the URI to preprocess * @return the preprocessed URI with s3:// prefix * @throws CrawlerSystemException if the URI is empty */
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Dec 11 08:38:29 UTC 2025 - 21.4K bytes - Viewed (0) -
src/main/java/jcifs/http/NetworkExplorer.java
dc = nameServiceClient.getByName(mb); } else { dc = nameServiceClient.getByName(server, possibleWorkgroup); } req.getSession(); /* ensure session id is set for cluster env. */ challenge = getTransportContext().getTransportPool().getChallenge(getTransportContext(), dc);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 23.4K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/net/protocol/storage/HandlerTest.java
URL url = new URL("storage://mybucket/object.txt"); Handler handler = new Handler(); Handler.StorageURLConnection conn = (Handler.StorageURLConnection) handler.openConnection(url); // Ensure environment variables are not set (in real scenario) // In this test, we expect IOException when endpoint is blank try { conn.connect();
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Dec 11 08:38:29 UTC 2025 - 14.4K bytes - Viewed (0)