From ef037b7762893b565c9a1343e0301bb20abd97cd Mon Sep 17 00:00:00 2001 From: Kohsuke Kawaguchi Date: Wed, 18 Sep 2013 12:35:29 -0700 Subject: [PATCH] Imported 1.3.17 --- README.txt | 75 + build.xml | 20 +- docs/api/allclasses-frame.html | 7 +- docs/api/allclasses-noframe.html | 7 +- docs/api/constant-values.html | 802 ++++-- docs/api/deprecated-list.html | 29 +- docs/api/help-doc.html | 44 +- docs/api/index-all.html | 1588 ++++++------ docs/api/index.html | 21 +- docs/api/jcifs/Config.html | 53 +- docs/api/jcifs/UniAddress.html | 61 +- docs/api/jcifs/class-use/Config.html | 20 +- docs/api/jcifs/class-use/UniAddress.html | 48 +- docs/api/jcifs/netbios/NbtAddress.html | 62 +- .../jcifs/netbios/class-use/NbtAddress.html | 98 +- docs/api/jcifs/netbios/package-frame.html | 4 +- docs/api/jcifs/netbios/package-summary.html | 27 +- docs/api/jcifs/netbios/package-tree.html | 24 +- docs/api/jcifs/netbios/package-use.html | 28 +- docs/api/jcifs/package-frame.html | 4 +- docs/api/jcifs/package-summary.html | 27 +- docs/api/jcifs/package-tree.html | 24 +- docs/api/jcifs/package-use.html | 28 +- docs/api/jcifs/smb/ACE.html | 58 +- docs/api/jcifs/smb/DosFileFilter.html | 55 +- docs/api/jcifs/smb/NtlmAuthenticator.html | 52 +- docs/api/jcifs/smb/NtlmContext.html | 55 +- .../jcifs/smb/NtlmPasswordAuthentication.html | 63 +- docs/api/jcifs/smb/SID.html | 76 +- docs/api/jcifs/smb/SmbAuthException.html | 76 +- docs/api/jcifs/smb/SmbException.html | 72 +- docs/api/jcifs/smb/SmbFile.html | 288 ++- docs/api/jcifs/smb/SmbFileFilter.html | 48 +- docs/api/jcifs/smb/SmbFileInputStream.html | 93 +- docs/api/jcifs/smb/SmbFileOutputStream.html | 111 +- docs/api/jcifs/smb/SmbFilenameFilter.html | 50 +- docs/api/jcifs/smb/SmbNamedPipe.html | 2241 +++++++++++++++-- docs/api/jcifs/smb/SmbRandomAccessFile.html | 64 +- docs/api/jcifs/smb/class-use/ACE.html | 40 +- .../jcifs/smb/class-use/DosFileFilter.html | 20 +- .../smb/class-use/NtlmAuthenticator.html | 30 +- docs/api/jcifs/smb/class-use/NtlmContext.html | 20 +- .../class-use/NtlmPasswordAuthentication.html | 90 +- docs/api/jcifs/smb/class-use/SID.html | 80 +- .../jcifs/smb/class-use/SmbAuthException.html | 32 +- .../api/jcifs/smb/class-use/SmbException.html | 430 ++-- docs/api/jcifs/smb/class-use/SmbFile.html | 78 +- .../jcifs/smb/class-use/SmbFileFilter.html | 32 +- .../smb/class-use/SmbFileInputStream.html | 20 +- .../smb/class-use/SmbFileOutputStream.html | 20 +- .../smb/class-use/SmbFilenameFilter.html | 30 +- .../api/jcifs/smb/class-use/SmbNamedPipe.html | 20 +- .../smb/class-use/SmbRandomAccessFile.html | 20 +- docs/api/jcifs/smb/package-frame.html | 4 +- docs/api/jcifs/smb/package-summary.html | 35 +- docs/api/jcifs/smb/package-tree.html | 63 +- docs/api/jcifs/smb/package-use.html | 28 +- docs/api/jcifs/util/Base64.html | 52 +- docs/api/jcifs/util/HMACT64.html | 85 +- docs/api/jcifs/util/LogStream.html | 72 +- docs/api/jcifs/util/RC4.html | 52 +- docs/api/jcifs/util/class-use/Base64.html | 20 +- docs/api/jcifs/util/class-use/HMACT64.html | 20 +- docs/api/jcifs/util/class-use/LogStream.html | 30 +- docs/api/jcifs/util/class-use/RC4.html | 20 +- docs/api/jcifs/util/package-frame.html | 4 +- docs/api/jcifs/util/package-summary.html | 27 +- docs/api/jcifs/util/package-tree.html | 40 +- docs/api/jcifs/util/package-use.html | 28 +- docs/api/overview-frame.html | 10 +- docs/api/overview-summary.html | 26 +- docs/api/overview-tree.html | 76 +- docs/api/packages.html | 37 - docs/api/serialized-form.html | 257 +- docs/api/stylesheet.css | 26 +- docs/index.html | 89 +- docs/index.xml | 69 +- examples/Format.java | 562 ----- examples/GetGroupMemberSids.java | 6 +- examples/ListFilesAnon.java | 16 + examples/Makefile | 4 +- examples/SidLookup.java | 8 +- examples/TestGetParent.java | 17 + examples/TestListLoop.java | 32 + examples/runtests.sh | 15 +- patches/GetOwnerSid.patch | 119 +- patches/LargeReadWrite.patch | 198 +- patches/LargeReadWrite2005.patch | 131 + patches/jcifs_1.3.14-printing.patch | 346 +++ src/jcifs/dcerpc/DcerpcHandle.java | 37 +- src/jcifs/dcerpc/DcerpcHandle.java.0 | 285 +++ src/jcifs/dcerpc/DcerpcMessage.java | 2 +- src/jcifs/netbios/NbtAddress.java | 2 +- src/jcifs/ntlmssp/Type2Message.java | 8 +- src/jcifs/smb/NetServerEnum2.java | 5 +- src/jcifs/smb/NtlmPasswordAuthentication.java | 20 +- src/jcifs/smb/SID.java | 14 +- src/jcifs/smb/SmbConstants.java | 3 + src/jcifs/smb/SmbFile.java | 17 +- src/jcifs/smb/SmbSession.java | 9 +- src/jcifs/smb/SmbTransport.java | 48 +- src/jcifs/util/transport/Transport.java | 14 +- 102 files changed, 7096 insertions(+), 3457 deletions(-) delete mode 100644 docs/api/packages.html delete mode 100644 examples/Format.java create mode 100644 examples/ListFilesAnon.java create mode 100644 examples/TestGetParent.java create mode 100644 examples/TestListLoop.java create mode 100644 patches/LargeReadWrite2005.patch create mode 100644 patches/jcifs_1.3.14-printing.patch create mode 100644 src/jcifs/dcerpc/DcerpcHandle.java.0 diff --git a/README.txt b/README.txt index a8e6e6d..bf18c8f 100644 --- a/README.txt +++ b/README.txt @@ -1,3 +1,78 @@ +Tue Oct 18 15:10:23 EDT 2011 +jcifs-1.3.17 + +The jcifs.smb.client.soTimeout property, which controls how long the +client will wait to read data from a server, was broken in the previous +release (1.3.16). Not only was it broken but no SO_TIMEOUT was specified +at all meaning if a server became unresponive, JCIFS could hang for +an uncontrollably long time. This behavior of this property has been +restored. + +Additionally, a new jcifs.smb.client.connTimeout has been added which +specifies the number of milliseconds that the client will wait to +connect to a server (how long it will wait for a response to the TCP +SYN). This can be very useful when trying to communicate with many +servers in parallel. + +Sat Jun 25 12:00:00 EDT 2011 +jcifs-1.3.16 + +This release includes the following minor fixes and improvements: + + * JCIFS now uses the InetSocketAddress class to explicitly bind and + set the SO_TIMEOUT on client sockets before they are connected. This + makes the SO_TIMEOUT effective when the target server socket is not + listening and the client OS socket implementation takes a long time + for the dropped SYN to timeout. This may significantly reduce resource + consumption in applications that use multiple threads to constantly + query servers that may not be listening. + + * When disconnecting a transport, new clauses have been added to better + reset transport state whereas previously transports could get stuck + in a disconnected state for unnecessarily long periods of time. + + * A new property jcifs.smb.client.ignoreCopyToException has been + added. When set to "true" (the default), the SmbFile.copyTo() method + will ignore (but log) exceptions trying to copy individual files or + directories (such as because of a permissions error). To maintain + backward compatibility, the default value of this property is "true" + (exceptions are ignored). Setting this property to "false" will cause + any exception that occurs trying to copy an individual file or directory + to be thrown out of copyTo and abort the copy operation at the point + of failure. + + * If an authentication exception occurs trying to connect to a server + that has multiple IP addresses, JCIFS will not attempt to connect + to more than one IP addresses because doing so could result in an + account lockout. + + * The SID resolver code incorrectly resolved SIDs of an ACE in blocks + of at most 10 where it should have used a limit of 64. This performance + issue has been fixed. + + * JCIFS will not throw the artifical "Access is denied" error if the + special NtlmPasswordCredential.ANONYMOUS credential is used explicitly + (whereas normally JCIFS will deliberately throw an SmbAuthException if + a login results in a guest login or if the anonymous identity is used). + + * The NetrServerEnum2 RAP call used incorrect parameter descriptiors + which could result in "SmbException: 2320" errors trying to list + domains and servers from the local NetBIOS browse service. + + * The NTLMSSP AUTHENTICATE_MESSAGE (aka "Type 2 Message") encoding + routine incorrectly left out the TargetName field (although this had + no effect on CIFS client behavior). + +Thu Oct 7 13:36:57 EDT 2010 +jcifs-1.3.15 + +Adjusted locking on DcerpcHandle routines in jcifs.smb.SID which could +result in "All pipe instances are busy". This is also believed to reduce +occurances of NT_STATUS_TOO_MANY_OPENED_FILES errors (although when +resolving SID names excessively, this error can still occur). + +Fragmented request PDUs have been implemented. + Thu Feb 11 15:10:26 EST 2010 jcifs-1.3.14 diff --git a/build.xml b/build.xml index f84afcc..91026f4 100644 --- a/build.xml +++ b/build.xml @@ -1,7 +1,7 @@ - - + + @@ -47,7 +47,14 @@ dependencies: Checks that all class dependencies are met. - + @@ -58,6 +65,13 @@ dependencies: Checks that all class dependencies are met. + + + + + + + diff --git a/docs/api/allclasses-frame.html b/docs/api/allclasses-frame.html index e10b686..e7b769f 100644 --- a/docs/api/allclasses-frame.html +++ b/docs/api/allclasses-frame.html @@ -2,11 +2,12 @@ - + All Classes (JCIFS API) + @@ -54,10 +55,10 @@
SmbFileInputStream
-SmbFileOutputStream -
SmbFilenameFilter
+SmbFileOutputStream +
SmbNamedPipe
SmbRandomAccessFile diff --git a/docs/api/allclasses-noframe.html b/docs/api/allclasses-noframe.html index 504d621..fad378f 100644 --- a/docs/api/allclasses-noframe.html +++ b/docs/api/allclasses-noframe.html @@ -2,11 +2,12 @@ - + All Classes (JCIFS API) + @@ -54,10 +55,10 @@
SmbFileInputStream
-SmbFileOutputStream -
SmbFilenameFilter
+SmbFileOutputStream +
SmbNamedPipe
SmbRandomAccessFile diff --git a/docs/api/constant-values.html b/docs/api/constant-values.html index 5cec436..0375671 100644 --- a/docs/api/constant-values.html +++ b/docs/api/constant-values.html @@ -2,24 +2,30 @@ - + Constant Field Values (JCIFS API) + + +
@@ -27,7 +33,7 @@ -