Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 113 for SHARE (0.95 sec)

  1. src/test/java/jcifs/util/PathValidatorTest.java

            // Normal extensions should be allowed
            assertEquals("\\share\\file.txt", validator.validatePath("\\share\\file.txt"));
            assertEquals("\\share\\document.docx", validator.validatePath("\\share\\document.docx"));
            assertEquals("\\share\\archive.tar.gz", validator.validatePath("\\share\\archive.tar.gz"));
        }
    
        @Test
        public void testInternationalCharacters() 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)
  2. src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java

            SmbResourceLocatorImpl a = locator("smb://server/share/dir/file.txt");
            assertEquals("file.txt", a.getName());
    
            // share name with trailing slash when only share present
            SmbResourceLocatorImpl b = locator("smb://server/share/");
            assertEquals("share/", b.getName());
    
            // host when no path/share
            SmbResourceLocatorImpl c = locator("smb://server/");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java

            @ParameterizedTest
            @CsvSource({ "'\\server', 'server', '', ''", "'\\server\\share', 'server', 'share', ''",
                    "'\\server\\share\\path', 'server', 'share', 'path'",
                    "'\\server\\share\\path\\file.txt', 'server', 'share', 'path\\file.txt'",
                    "'\\server.domain.com\\share\\deep\\path\\structure', 'server.domain.com', 'share', 'deep\\path\\structure'" })
            @DisplayName("Should split DFS paths correctly")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java

            assertEquals(testString, result);
        }
    
        @ParameterizedTest
        @DisplayName("Test readDataWireFormat with various share types")
        @CsvSource({ "0, SHARE, Normal share", "1, PRINTER, Printer share", "3, IPC$, IPC share", "32768, HIDDEN, Hidden share", // 0x8000 - hidden flag in lower 16 bits
                "32769, HIDDENP, Hidden printer" // 0x8001 - hidden flag + printer type
        })
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

                    this.canon = "/" + this.share + "/" + StringUtil.join("/", remainParts) + (trailingSlash ? "/" : "");
                } else {
                    this.unc = "\\";
                    if (this.share != null) {
                        this.canon = "/" + this.share + (trailingSlash ? "/" : "");
                    } else {
                        this.canon = "/";
                    }
    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/dcerpc/msrpc/srvsvc.java

        }
    
        /**
         * Share information level 0 structure containing basic share information.
         */
        public static class ShareInfo0 extends NdrObject {
    
            /**
             * Default constructor for ShareInfo0.
             */
            public ShareInfo0() {
            }
    
            /**
             * The network name of the share.
             */
            public String netname;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 27K bytes
    - Viewed (0)
  7. src/main/java/jcifs/util/InputValidator.java

            }
        }
    
        /**
         * Validates share name
         *
         * @param share the share name to validate
         * @throws IllegalArgumentException if share name is invalid
         */
        public static void validateShareName(String share) {
            if (share == null || share.isEmpty()) {
                throw new IllegalArgumentException("Share name cannot be null or empty");
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralTest.java

            assertDoesNotThrow(() -> new Trans2GetDfsReferral(mockConfig, "\\\\server\\share"));
    
            // Test forward slashes
            assertDoesNotThrow(() -> new Trans2GetDfsReferral(mockConfig, "//server/share"));
    
            // Test with spaces
            assertDoesNotThrow(() -> new Trans2GetDfsReferral(mockConfig, "\\\\server\\my share\\file.txt"));
    
            // Test with special characters
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/SmbTreeTest.java

            assertTrue(tree.matches("testshare", "TESTSERVICE"));
    
            // Test matching share with null service
            assertTrue(tree.matches("testShare", null));
    
            // Test matching share with service starting with "??"
            assertTrue(tree.matches("testShare", "??otherService"));
    
            // Test non-matching share
            assertFalse(tree.matches("otherShare", "testService"));
    
            // Test non-matching service
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/RequestWithPathTest.java

            testImplementation.setFullUNCPath(expectedDomain, "server", "\\\\server\\share\\path");
            assertEquals(expectedDomain, testImplementation.getDomain());
        }
    
        @Test
        @DisplayName("Test getFullUNCPath returns complete UNC path")
        void testGetFullUNCPath() {
            // Test with mock
            String expectedUNCPath = "\\\\server\\share\\folder\\file.txt";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.2K bytes
    - Viewed (0)
Back to top