jcifs-1.3.10 from tgz
authorFelix Schumacher <felix.schumacher@internetallee.de>
Thu, 4 Jun 2009 16:58:28 +0000 (18:58 +0200)
committerFelix Schumacher <felix.schumacher@internetallee.de>
Thu, 4 Jun 2009 16:58:28 +0000 (18:58 +0200)
Wed Jun  3 19:42:58 EDT 2009
jcifs-1.3.10

When re-establishing a session an old UID could be set in the
SMB_COM_SESSION_SETUP_ANDX and cause a "The parameter is incorrect"
SmbException. This release explicitly sets the uid to 0 before initiating
a new session which fixes this error.

README.txt
build.xml
src/jcifs/smb/SmbSession.java
src/jcifs/smb/SmbTree.java

index f6c4b32..0201a95 100644 (file)
@@ -1,3 +1,11 @@
+Wed Jun  3 19:42:58 EDT 2009
+jcifs-1.3.10
+
+When re-establishing a session an old UID could be set in the
+SMB_COM_SESSION_SETUP_ANDX and cause a "The parameter is incorrect"
+SmbException. This release explicitly sets the uid to 0 before initiating
+a new session which fixes this error.
+
 Fri May 30 00:40:26 EDT 2009
 jcifs-1.3.9
 
index 6bcddc9..5cba503 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -1,7 +1,7 @@
 <project name="jcifs" default="usage" basedir=".">
 
-    <property name="version" value="1.3.9"/>
-    <property name="reldate" value="May 30, 2009"/>
+    <property name="version" value="1.3.10"/>
+    <property name="reldate" value="Jun 4, 2009"/>
 
     <target name="usage">
         <echo>
index ef0af41..a2da7e0 100644 (file)
@@ -254,6 +254,13 @@ synchronized( transport() ) {
         if( transport.log.level >= 4 )
             transport.log.println( "sessionSetup: accountName=" + auth.username + ",primaryDomain=" + auth.domain );
 
+        /* We explicitly set uid to 0 here to prevent a new
+         * SMB_COM_SESSION_SETUP_ANDX from having it's uid set to an
+         * old value when the session is re-established. Otherwise a
+         * "The parameter is incorrect" error can occur.
+         */
+        uid = 0;
+
         do {
             switch (state) {
                 case 10: /* NTLM */
index c66c941..7ecabb5 100644 (file)
@@ -89,7 +89,6 @@ class SmbTree {
                         case SmbComTransaction.TRANS2_GET_DFS_REFERRAL:
                             break;
                         default:
-System.out.println(request);
                             throw new SmbException( "Invalid operation for " + service + " service" );
                     }
                     break;