Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 33 for uncu (0.02 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. 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() {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.6K bytes
    - Click Count (0)
  2. 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();
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 23.6K bytes
    - Click Count (0)
  3. 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("[\\\\/]");
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 14.5K bytes
    - Click Count (0)
  4. 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() {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.2K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb/DirFileEntryEnumIterator1.java

            final String unc = loc.getUNCPath();
            final String p = loc.getURL().getPath();
            if (p.lastIndexOf('/') != p.length() - 1) {
                throw new SmbException(loc.getURL() + " directory must end with '/'");
            }
            if (unc.lastIndexOf('\\') != unc.length() - 1) {
                throw new SmbException(unc + " UNC must end with '\\'");
            }
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  6. 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 {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 14.6K bytes
    - Click Count (0)
  7. src/main/java/jcifs/smb1/smb1/SmbTree.java

                    if (LogStream.level >= 4) {
                        SmbTransport.log.println("treeConnect: unc=" + unc + ",service=" + service);
                    }
    
                    final SmbComTreeConnectAndXResponse response = new SmbComTreeConnectAndXResponse(andxResponse);
                    final SmbComTreeConnectAndX request = new SmbComTreeConnectAndX(session, unc, service, andx);
                    session.send(request, response);
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb/SmbFileHandleImpl.java

                final int access, final int attrs, final int options, final long initialSize) {
            this.cfg = cfg;
            this.fileId = fid;
            this.initialSize = initialSize;
            this.fid = 0;
            this.unc = unc;
            this.flags = flags;
            this.access = access;
            this.attrs = attrs;
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 9.4K bytes
    - Click Count (1)
  9. compat/maven-model-builder/src/test/java/org/apache/maven/model/path/DefaultUrlNormalizerTest.java

        }
    
        @Test
        void testPreservationOfDoubleSlashes() {
            assertEquals("scm:hg:ssh://localhost//home/user", normalize("scm:hg:ssh://localhost//home/user"));
            assertEquals("file:////UNC/server", normalize("file:////UNC/server"));
            assertEquals(
                    "[fetch=]http://server.org/[push=]ssh://server.org/",
                    normalize("[fetch=]http://server.org/[push=]ssh://server.org/"));
        }
    
        @Test
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 10 07:09:12 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  10. 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);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 11K bytes
    - Click Count (0)
Back to Top