jcifs-1.3.18b from tgz
authorFelix Schumacher <felix.schumacher@internetallee.de>
Fri, 7 Mar 2014 21:05:07 +0000 (22:05 +0100)
committerFelix Schumacher <felix.schumacher@internetallee.de>
Fri, 7 Mar 2014 21:05:57 +0000 (22:05 +0100)
Sat Jan 28 13:46:42 EST 2012
jcifs-1.3.18b

A logical check has been added to prevent a NullPointerException.

README.txt
build.xml
examples/10883563.doc
src/jcifs/dcerpc/DcerpcBinding.java
src/jcifs/smb/SmbFile.java

index 0904d87..afaf8c8 100644 (file)
@@ -1,3 +1,8 @@
+Sat Jan 28 13:46:42 EST 2012
+jcifs-1.3.18b
+
+A logical check has been added to prevent a NullPointerException.
+
 Tue Oct 18 15:10:23 EDT 2011
 jcifs-1.3.17
 
index ad5b2b6..6126322 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -1,7 +1,7 @@
 <project name="jcifs" default="usage" basedir=".">
 
-    <property name="version" value="1.3.17"/>
-    <property name="reldate" value="Oct 18, 2011"/>
+    <property name="version" value="1.3.18b"/>
+    <property name="reldate" value="Jan 28, 2012"/>
 
     <target name="usage">
         <echo>
index 62644d9..c67d428 100644 (file)
@@ -1,6 +1,6 @@
-C:\tmp>ktpass /princ HTTP/www.foo.net@WIN.NET /ptype KRB5_NT_PRINCIPAL /desonly /pass asj7j112233hh4455 /mapuser test2\r
-Targeting domain controller: ts0.win.net\r
-Using legacy password setting method\r
-Successfully mapped HTTP/www.foo.net to test2.\r
-Key created.\r
+C:\tmp>ktpass /princ HTTP/www.foo.net@WIN.NET /ptype KRB5_NT_PRINCIPAL /desonly /pass asj7j112233hh4455 /mapuser test2
+Targeting domain controller: ts0.win.net
+Using legacy password setting method
+Successfully mapped HTTP/www.foo.net to test2.
+Key created.
 Account test2 has been set for DES-only encryption.
\ No newline at end of file
index 3405ffc..6388f41 100644 (file)
@@ -56,9 +56,10 @@ public class DcerpcBinding {
 
     void setOption(String key, Object val) throws DcerpcException {
         if (key.equals("endpoint")) {
-            endpoint = val.toString().toLowerCase();
-            if (endpoint.startsWith("\\pipe\\")) {
-                String iface = (String)INTERFACES.get(endpoint.substring(6));
+            endpoint = val.toString();
+            String lep = endpoint.toLowerCase();
+            if (lep.toLowerCase().startsWith("\\pipe\\")) {
+                String iface = (String)INTERFACES.get(lep.toLowerCase().substring(6));
                 if (iface != null) {
                     int c, p;
                     c = iface.indexOf(':');
index 627df4b..112d3e6 100644 (file)
@@ -48,7 +48,7 @@ import java.util.Date;
  * directory. SmbFile URLs have the following syntax:
  *
  * <blockquote><pre>
- *     smb://[[[domain;]username[:password]@]server[:port]/[[share/[dir/]file]]][?[param=value[param2=value2[...]]]
+ *     smb://[[[domain;]username[:password]@]server[:port]/[[share/[dir/]file]]][?param=value[param2=value2[...]]]
  * </pre></blockquote>
  *
  * This example:
@@ -939,9 +939,12 @@ int addressIndex;
  * <tt>URLConnection</tt> implementation of <tt>connect()</tt>.
  */
     public void connect() throws IOException {
-        SmbTransport trans;
-        SmbSession ssn;
-        UniAddress addr;
+        if (isConnected() && tree.session.transport.tconHostName == null) {
+            /* Tree thinks it is connected but transport disconnected
+             * under it, reset tree to reflect the truth.
+             */
+            tree.treeDisconnect(true);
+        }
 
         if( isConnected() ) {
             return;