Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for reqPath (0.62 sec)

  1. src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java

                when(mockReferral.getNode()).thenReturn("\\server\\share\\path");
    
                String reqPath = "\\\\server\\share\\path";
                // Use valid consumed value within string bounds (reqPath.length() = 19)
                int consumed = Math.min(19, reqPath.length());
    
                data1 = DfsReferralDataImpl.fromReferral(mockReferral, reqPath, System.currentTimeMillis() + 10000, consumed);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbResourceLocatorInternalTest.java

            // Edge-like Windows UNC-style: a single backslash in the path
            String reqPath = "\\";
            String resolved = "smb://server/share/path";
            when(locator.handleDFSReferral(referral, reqPath)).thenReturn(resolved);
    
            String out = locator.handleDFSReferral(referral, reqPath);
            assertEquals(resolved, out);
    
            // Verify exact argument interaction
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/dfs/DfsReferralDataImpl.java

                    log.debug("Server " + dr.server + " path " + reqPath + " remain " + reqPath.substring(consumed) + " path consumed "
                            + consumed);
                }
                dr.pathConsumed = consumed;
            } else {
                if (log.isDebugEnabled()) {
                    log.debug("Node " + ref.getNode() + " path " + reqPath + " remain " + reqPath.substring(consumed) + " path consumed "
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbResourceLocatorInternal.java

        /**
         * Internal: for testing only
         *
         * @param dr the DFS referral data to process
         * @param reqPath the requested path to resolve
         * @return resolved unc path
         */
        String handleDFSReferral(DfsReferralData dr, String reqPath);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

        }
    
        /**
         * @param dr
         * @param reqPath
         * @return UNC path the redirect leads to
         */
        @Override
        public String handleDFSReferral(final DfsReferralData dr, final String reqPath) {
            if (Objects.equals(this.dfsReferral, dr)) {
                return this.unc;
            }
            this.dfsReferral = dr;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/DfsImpl.java

            do {
                r = start.next();
                final String refPath = dr.getPath() != null ? '\\' + dr.getPath() : "";
                final String nextPath = refPath + (path != null ? path.substring(r.getPathConsumed()) : "");
                if (log.isDebugEnabled()) {
                    log.debug(String.format("Intermediate referral, server %s share %s refPath %s origPath %s nextPath %s", r.getServer(),
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 29.7K bytes
    - Viewed (0)
Back to top