- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 148 for SmbException (0.07 seconds)
-
src/main/java/jcifs/smb/Kerb5Context.java
throw new SmbException("Failed to query Kerberos session key from ExtendedGSSContext", ex); } } throw new SmbException("ExtendedGSSContext is not implemented by GSSContext"); } @Override public byte[] initSecContext(byte[] token, int off, int len) throws SmbException { try {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 13.5K bytes - Click Count (1) -
src/main/java/jcifs/smb/DirFileEntryEnumIterator1.java
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 '\\'"); } final SmbTreeHandleImpl th = getTreeHandle();
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 5.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFilenameFilterTest.java
/** * Exception flow: filter throws SmbException and it propagates to caller. */ @Test @DisplayName("throws SmbException as declared by contract") void throwsSmbExceptionFromFilter() { SmbFilenameFilter filter = (dir, name) -> { throw new SmbException("boom"); }; SmbException ex = assertThrows(SmbException.class, () -> filter.accept(mockDir, "x"));Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.3K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbFileHandleImpl.java
/** * @return the fid * @throws SmbException */ public int getFid() throws SmbException { if (!isValid()) { throw new SmbException("Descriptor is no longer valid"); } return this.fid; } public byte[] getFileId() throws SmbException { if (!isValid()) { throw new SmbException("Descriptor is no longer valid"); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 9.4K bytes - Click Count (1) -
src/test/java/jcifs/util/PathValidatorTest.java
} @Test public void testDirectoryTraversal() throws Exception { assertThrows(SmbException.class, () -> { validator.validatePath("\\share\\..\\..\\windows\\system32"); }); } @Test public void testDirectoryTraversalDot() throws Exception { assertThrows(SmbException.class, () -> { validator.validatePath("\\share\\.\\..\\folder"); }); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 14.6K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFileInputStreamTest.java
when(mockTree.isSMB2()).thenReturn(false); when(mockFile.getType()).thenReturn(SmbConstants.TYPE_NAMED_PIPE); // th.send(request, response, ...) throws SmbException with NT_STATUS_PIPE_BROKEN doThrow(new SmbException(NtStatus.NT_STATUS_PIPE_BROKEN, false)).when(mockTree) .send(any(jcifs.internal.CommonServerMessageBlockRequest.class),
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 12.8K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbAuthExceptionTest.java
assertEquals(SmbException.getStatusByCode(code), e.getNtStatus(), "status for code " + Integer.toHexString(code)); } @Test void negativeCodeDefaultsToUnsuccessful() { SmbAuthException e = new SmbAuthException(-1); assertEquals(SmbException.getStatusByCode(-1), e.getNtStatus()); assertEquals(SmbException.getMessageByCode(-1), e.getMessage()); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.2K bytes - Click Count (0) -
src/test/java/jcifs/util/ServerResponseValidatorTest.java
} catch (SmbException e) { // Ignore } try { validator.validateBuffer(null, 50, 200); // Will fail } catch (SmbException e) { // Expected } try { validator.safeAdd(Integer.MAX_VALUE, 1); // Will fail } catch (SmbException e) { // Expected }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 14.2K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbCopyUtilTest.java
when(src.toString()).thenReturn("smb://src"); when(dest.toString()).thenReturn("smb://dest"); // Act + Assert SmbException ex = assertThrows(SmbException.class, () -> SmbCopyUtil.copyFile(src, dest, buffers, 8, new WriterThread(), sh, dh)); assertTrue(ex.getMessage().contains("smb://src"));Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.1K bytes - Click Count (0) -
src/main/java/jcifs/smb1/dcerpc/msrpc/SamrAliasHandle.java
*/ package jcifs.smb1.dcerpc.msrpc; import java.io.IOException; import jcifs.smb1.dcerpc.DcerpcHandle; import jcifs.smb1.dcerpc.rpc; import jcifs.smb1.smb1.SmbException; /** * Handle for Security Account Manager (SAM) alias operations. * This class represents an open handle to a SAM alias and provides * operations for managing alias membership and properties. */
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.4K bytes - Click Count (0)