- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for uncu (0.02 sec)
-
src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java
assertEquals("dfs-share", l.getShare()); // Path consumed negative -> coerced to 0 when(dr.getPathConsumed()).thenReturn(-1); String unc2 = l.handleDFSReferral(dr, null); assertTrue(unc2.contains("dfs/path") || unc2.contains("dfs\\path")); } @Test @DisplayName("toString includes URL and cached fields") void testToString() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/util/PathValidatorTest.java
strictValidator.validatePath("//server\u0001/share"); }); // Note: Proper UNC validation would require fixing the normalization to preserve \\ // for UNC paths. Current implementation can't distinguish UNC paths after normalization. } @Test public void testInvalidUncServerName() throws Exception {
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/smb/SmbResourceLocatorImpl.java
public String getUNCPath() { if (this.unc == null) { canonicalizePath(); } return this.unc; } @Override public String getURLPath() { if (this.unc == null) { canonicalizePath(); } return this.canon; } @Override public String getShare() { if (this.unc == null) { canonicalizePath();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 23.6K bytes - Viewed (0) -
src/main/java/jcifs/util/PathValidator.java
return normalized; } /** * Validate UNC path */ private void validateUncPath(String path) throws SmbException { // UNC path should have format: \\server\share[\path] if (!path.startsWith("\\\\") && !path.startsWith("//")) { throw new SmbException("Invalid UNC path format"); } String[] parts = path.substring(2).split("[\\\\/]");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/RequestWithPathTest.java
// Test UNC path with special characters String specialUNCPath = "\\\\server\\share\\folder with spaces\\file!@#$.txt"; testImplementation.setFullUNCPath("DOMAIN", "server", specialUNCPath); assertEquals(specialUNCPath, testImplementation.getFullUNCPath()); } @Test @DisplayName("Test with various UNC path formats") void testVariousUNCPathFormats() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeImpl.java
if (log.isDebugEnabled()) { log.debug("treeConnect: unc=" + unc + ",service=" + svc); } if (transport.isSMB2()) { final Smb2TreeConnectRequest req = new Smb2TreeConnectRequest(sess.getConfig(), unc); if (andx != null) { req.chain((ServerMessageBlock2) andx);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 30K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFileOutputStream.java
} catch (final SmbException se) { fp = 0L; } } if (file instanceof SmbNamedPipe && file.unc.startsWith("\\pipe\\")) { file.unc = file.unc.substring(5); file.send(new TransWaitNamedPipe("\\pipe" + file.unc), new TransWaitNamedPipeResponse()); } file.open(openFlags, access | SmbConstants.FILE_WRITE_DATA, SmbFile.ATTR_NORMAL, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java
verify(tree, times(1)).acquire(); verify(tree, times(1)).release(); // closed after failure } @Test @DisplayName("open(): invalid UNC without trailing backslash throws SmbException") void invalidUncThrows() throws Exception { // Override the default setup for this specific test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java
void setUp() { lenient().when(tree.getConfig()).thenReturn(config); } private SmbPipeHandleImpl newHandleWithBasicStubs(int pipeType, String unc) { when(pipe.getPipeType()).thenReturn(pipeType); when(pipe.getUncPath()).thenReturn(unc); return new SmbPipeHandleImpl(pipe); } @Test @DisplayName("ensureTreeConnected acquires and reuses the tree handle")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 16.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportInternalTest.java
void getDfsReferrals_happy() throws Exception { when(transport.getDfsReferrals(any(), any(), any(), any(), anyInt())).thenReturn(referral); String name = "\\\\server\\\\share\\\\path"; // UNC-like DFS path String host = "server.example"; String domain = "EXAMPLE"; int rn = 0; jcifs.DfsReferralData result = transport.getDfsReferrals(ctx, name, host, domain, rn);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.1K bytes - Viewed (0)