- Sort Score
- Num 10 results
- Language All
Results 51 - 60 of 478 for share (0.05 seconds)
-
src/main/java/jcifs/util/PathValidator.java
throw new SmbException("Invalid server name in UNC path"); } // Validate share name String share = parts[1]; if (share.isEmpty() || share.endsWith("$") && share.length() == 1) { throw new SmbException("Invalid share name in UNC path"); } } /** * Validate individual path components */
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 14.5K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbTreeImpl.java
private final List<StackTraceElement[]> releases; private DfsReferralData treeReferral; SmbTreeImpl(final SmbSessionImpl session, final String share, final String service) { this.session = session.acquire(); this.share = share.toUpperCase(); if (service != null && !service.startsWith("??")) { this.service = service; } this.service0 = this.service;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 30K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java
} @Test @DisplayName("Test getPath returns correct formatted path") void testGetPath() { request = new Smb2CreateRequest(mockConfig, "share\\file.txt"); assertEquals("\\share\\file.txt", request.getPath()); request.setPath("newpath\\newfile.txt"); assertEquals("\\newpath\\newfile.txt", request.getPath()); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 18.6K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTest.java
SmbTreeConnection c1 = newConn(); SmbTreeConnection c2 = newConn(); SmbTreeImpl shared = mock(SmbTreeImpl.class); when(shared.acquire(false)).thenReturn(shared); setTree(c1, shared); setTree(c2, shared); assertTrue(c1.isSame(c2)); SmbTreeImpl other = mock(SmbTreeImpl.class); when(other.acquire(false)).thenReturn(other);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 13K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/DfsTest.java
} @Test void testGetReferral_Success() throws IOException, SmbAuthException { String domain = "domain.com"; String root = "share"; String path = "\\folder"; String fullPath = "\\" + domain + "\\" + root + path; // Should be "\domain.com\share\folder" lenient().when(smbTransport.getDfsReferrals(auth, fullPath, 0)).thenReturn(dfsReferral);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.6K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java
for (int i = 0; i < opsPerThread; i++) { String share = "share" + (threadId % 3); // Use 3 different shares // Get or create tree SmbTreeImpl tree = session.getSmbTree(share, null); assertNotNull(tree, "Tree should not be null"); // Verify we can acquire the treeCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 11K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/com/SmbComTreeDisconnect.java
* SMB1 COM_TREE_DISCONNECT command implementation. * * This command disconnects from a tree connection (share) on the server. * It releases the tree ID and terminates access to the share. */ public class SmbComTreeDisconnect extends ServerMessageBlock { /** * Constructs a tree disconnect request to close a connection to a shared resource. * * @param config the configuration to use */
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/app/web/admin/wizard/AdminWizardActionTest.java
assertEquals("smb://server/share", wizardAction.convertCrawlingPath("smb://server/share")); assertEquals("smb://192.168.1.1/path", wizardAction.convertCrawlingPath("smb://192.168.1.1/path")); } @Test public void test_convertCrawlingPath_smb1_protocol() { assertEquals("smb1://server/share", wizardAction.convertCrawlingPath("smb1://server/share"));
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 9.9K bytes - Click Count (0) -
src/test/java/jcifs/CIFSContextTest.java
void testCIFSContextInterface() { // Verify interface methods exist assertDoesNotThrow(() -> { mockContext.get("smb://server/share"); mockContext.getPipe("smb://server/share/pipe", 0); mockContext.close(); mockContext.getConfig(); mockContext.getNameServiceClient(); mockContext.getBufferCache();
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.8K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbTreeConnection.java
SmbTreeImpl uct = smbSession.getSmbTree(share, null).unwrap(SmbTreeImpl.class); SmbTreeImpl ct = connectTree(loc, host, share, trans, uct, dr)) { if (dr != null) { ct.setTreeReferral(dr); if (dr != start) {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 30.4K bytes - Click Count (1)