Jcifs-1.2.9.jar download




















Also the client will not properly try port and fallback to as necessary. Thu Apr 7 EDT jcifs It's stock 1. It may still not be "correct" because I believe the high-load concurrency issue may have to do with how sessions and trees are created. That is another step that delves into how Principles will be handled so I thought I would release this as is because it seems pretty stable so I thought I would put it out there as a reference point.

To give people an insentive to actually use it I have changed the port to , applied the share reconnect fix from Darren and the getDiskFreeSpace patch from Thomas. Also if you really need the dial to go to 11, preliminary testing indicates this transport is a few percent faster. Feb 28 EST jcifs This problem has been fixed.

Also, some small javadoc updates have been applied. Thu Feb 10 EST jcifs A lookup exception e. Similarly the fix for the DC lookup code wasn't complete enough to handle the unusual scenario where all DCs are unresponsive.

Also, a malfomed NetBIOS name query response could cause the name service thread to exit incorrectly. Sun Jan 16 EST jcifs After time many threads could be blocked resulting in wasted resources. A simple fix has been applied that premits SMB signatures to work without specifying preauthentication credentials. The getAttributes method will now return 31 bits of attributes whereas previously it would mask off the lower 6 bits that JCIFS actually makes use of. A bug has been fixed that under certain conditions prevented copyTo from copying entire shares.

Mon Dec 27 EST jcifs This bug has been fixed. This behavior is now blocked such that operations performed on a stream after it has been closed will generate an IOException. Some transport layer synchronization has been adjusted.

A getPrincipal method has been added to SmbFile that will return the NtlmPasswordAuthentication object used to create the file or pipe. Thu Dec 16 EST jcifs Also, the value of jcifs. Finally, some log levels have been increased such that running with jcifs. Tue Dec 7 EST jcifs The change was not warranted as it did not emulate Windows behavior. Tue Nov 30 EST jcifs Sun Oct 31 EDT jcifs It would not restrict users to those found in the ACL it would permit all authenticated users.

A bug was discovered and fixed in the named pipe code. If a specific sequence of reads were performed the pipe could become corrupted. This fix is necessary for multi-pdu DCE requests to work. A small bug in the new NbtAddress. It will now broadcast for a name if a WINS address was not provided.

The NbtAddress. Currently I believe only the 0x1C domain lookup actually returns multiple results. Note this is different from getAllByAddress which does a node status. The socket code in SmbTransport has been modified to open the socket using the transport thread.

This is great if your application has a tendency to try to connect to hosts that do not exist. Normally that would take over a minute to timeout.

The single threaded SmbCrawler actually performs quite well with the right properties set. An SmbSession. This method will rotate through a list of at most jcifs. Unresponsive servers will be removed from the list until the jcifs. Because of the above rotation there is a greater potential for transports to remain open. Sessions with no activity this is particularly true with the NTLM HTTP Filter which really only touches the session once when the user is authenticated will be logged off after jcifs.

A read bug that only manafested itself with a certain EMC server has been fixed. Mon Sep 6 EDT jcifs So this is the original fix but with the test condition corrected. From now one all development will continue in the 2. Thu Sep 2 EDT jcifs This problem was only partially fixed previously. A clause was incorrectly added that was intended to allow the username "guest" to be authenticated successfully.

It is now not possible for "guest" to be authenticated at all. A log message has been added to the NtlmHttpFilter that will be logged whenever an SmbAuthException is triggered and the jcifs. For example, to enable logging authentication failures with the filter add the following to the filter section in your web. Tue Aug 10 EDT jcifs Map Network Drive This client is used extensively in production on large Intranets. If you download the tgz archive you also get the source code and javadoc API documentation see critical properties discussed on the Overview page.

Put it someplace reasonable and extract it. There are two ways to do this. If you download the zip archive you also get the source code and javadoc API documentation see critical properties discussed on the Overview page. Put it someplace reasonable and extract it with something like Winzip. Add the jar to your classpath. See the build.

The jcifs. SmbFile, jcifs. SmbFileInputStream, and jcifs. SmbFileOutputStream classes are analogous to the java. File, java. FileInputStream, and java. Here's an example to retrieve a file: import jcifs. The protocol handler for java. URL is also in place which means you retrieve files using the URL class as you would with other protocols. For example: jcifs. It should read the build. To build a new jar after modifying the source for example simply type 'ant jar'. Thanks is also due to the Samba organization and Christopher R.

Finally, thanks to users who diagnose problems and provide the critical feedback and solutions that make the Open Source model great. About Patched jcifs jcifs. Releases 4 tags. Packages 0 No packages published. You signed in with another tab or window. Mon Jan 15 EST jcifs Mon Jan 8 EST jcifs The listFiles methods could return the directory itself as a child. Both issues have been fixed.

Fri Jan 5 EST jcifs This resulted in an "invalid array conformance" exception in the NDR routines. This error has been fixed. Thu Jan 4 EST jcifs Also, DFS issues have been identified and fixed.

Wed Dec 27 EST jcifs Thu Dec 21 EST jcifs As a result the response was not decoded properly and an error would occur. The response will now be decoded properly if the buffer is too small and the buffer size has been increased from to Thu Dec 14 EST jcifs A very small but potentially significant change has been made to the DFS code.

This was done not only for backward compatibility with previous versions of JCIFS but because conceptually the textual representation of a SID is not it's resolved account name. The toSidString method has been removed. The getDomainName and getAccountName methods have not changed. Sat Dec 9 EST jcifs No serious problems have been reported with the new SID resolution code however some minor adjustments have been made with respect to values returned when a SID has not been resolved e.

Wed Nov 29 EST jcifs A new SmbFile. Documentation for all associated methods and classes has been added. Fri Nov 24 EST jcifs Tue Nov 14 EST jcifs If the operation should fail for any reason, the client will fall back to trying the older RAP method. This should permit enumerating shares with names that use charsets other than the negotiated OEM "ASCII" encoding, share names that are longer than 12 characters, and arbirarily large lists of shares.

This will eliminate some NullPointerExceptions that were occuring as a result. Unsupported major. I have rebuilt the entire package using the compiler I used previously 1. Fri Mar 24 EST jcifs These include: o A deadlock could occur if the client tried to logoff and logon at the same instant.

A very simple logical error would cause the wrong signing digest to be installed. The SmbFile. Users with crawler type applications will almost certainly want to reduce these values. Fri Nov 18 EST jcifs This is required for HTTP 1. Google appliance servers. A patch for reading security descriptors has been added to the patches directory. Fri Oct 7 EDT jcifs This problem has been fixed but the fix is to not remove sessions from the list of sessions for a transport which is somewhat of a waste of memory.

This will probably need to be revisited. It has been advised that the Filter call setStatus before setContentLength 0. This change has been implemented. Fri Sep 30 EDT jcifs This has been repaired. This is required for environments that implement a policy restricting users to logging in from certain computers.

Wed Sep 21 EDT jcifs JCIFS would fail to validate responses with a status that is not zero. Assuming we are calculating the verfication signature correctly I can only assume the affected servers choose not to generate the correct signature for error responses perhaps for DOS reasons.

Because JCIFS checked the signature before the message status, an error response would fail with "signature verification failure". This behavior has been changed so that signatures are not verified if the status is non zero. It was discovered that the new transport as of 1. Methods will still throw Exceptions but moment the server comes back online the client gracefully recover.

Wed Aug 24 EDT jcifs It has been fixed. The exact error with a sufficiently high loglevel was "Invalid payload size: 1". Sat Aug 20 EDT jcifs These are: o The "cannot assign requested address" exception caused by trying to bind the local address The initialization of default credentials has been changed however it is not clear that the change will have any effect as I do not have a clustered environment in which to test.

Who left that in there?! These are believed to be harmless but they have been associated with unsightly messages in Samba log files. It has been repaired. Sun Jul 3 EDT jcifs It has been reparied.

The setAttributes method did not work on directories. Sun May 22 EDT jcifs Named pipes were broken when DCE transactions where added with 1.

The NetBIOS name resolution code will now use the last resource record of a name query response if there are more than one. This appears to be more correct in at least one instance VMWare adapters on my workstation at work are appearing first.

Also note the trans releases below. Mon May 9 EDT jcifs These issues and other small issues have been fixed. Wed May 4 EDT jcifs The last trans release had a silly mid rollover bug. I have also emiminated a deadlock condition. These issues have been fixed. Also the client will not properly try port and fallback to as necessary. Thu Apr 7 EDT jcifs It's stock 1.

It may still not be "correct" because I believe the high-load concurrency issue may have to do with how sessions and trees are created. That is another step that delves into how Principles will be handled so I thought I would release this as is because it seems pretty stable so I thought I would put it out there as a reference point.

To give people an insentive to actually use it I have changed the port to , applied the share reconnect fix from Darren and the getDiskFreeSpace patch from Thomas. Also if you really need the dial to go to 11, preliminary testing indicates this transport is a few percent faster. Instantly share code, notes, and snippets. Last active Nov 15, Code Revisions 9. Embed What would you like to do?

Embed Embed this gist in your website. Share Copy sharable link for this gist. Learn more about clone URLs. Download ZIP. Simple jcifs-ng cli test program. This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.

Learn more about bidirectional Unicode characters Show hidden characters. Copy link. ConsoleAppender log4j.



0コメント

  • 1000 / 1000