Update of /cvsroot/monetdb/clients/src/java/src/nl/cwi/monetdb/mcl/net
In directory 
sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv7945/src/nl/cwi/monetdb/mcl/net

Modified Files:
      Tag: Clients_1-18
        MapiSocket.java 
Log Message:
Reverted changes: no new features.
If any changes are merely bugfixes, they will have to be redone.

Index: MapiSocket.java
===================================================================
RCS file: 
/cvsroot/monetdb/clients/src/java/src/nl/cwi/monetdb/mcl/net/MapiSocket.java,v
retrieving revision 1.3.2.1
retrieving revision 1.3.2.2
diff -u -d -r1.3.2.1 -r1.3.2.2
--- MapiSocket.java     16 Aug 2007 10:52:55 -0000      1.3.2.1
+++ MapiSocket.java     17 Aug 2007 12:56:47 -0000      1.3.2.2
@@ -264,7 +264,7 @@
 
                                URI u;
                                try {
-                                       u = new URI(suri.substring(5));
+                                       u = new URI(suri.substring(4));
                                } catch (URISyntaxException e) {
                                        throw new 
MCLParseException(e.toString());
                                }
@@ -273,7 +273,7 @@
                                String warnings =
                                        connect(u.getHost(), p == -1 ? port : 
p, user, pass);
                                if (warnings == null) warnings = "";
-                               warn += "\nRedirect by " + host + ":" + 
+                               warnings = "Redirect by " + host + ":" + 
                                        port + " to " + suri + "\n" + warnings;
                        } else {
                                String msg = "The server sent a redirect for 
this connection:";
@@ -318,7 +318,7 @@
 
                // challenge string to use as salt/key
                String challenge = chaltok[0];
-               String servert = chaltok[1];
+               // chaltok[1]; // server type, not needed yet 
                try {
                        version = Integer.parseInt(chaltok[2].trim());  // 
protocol version
                } catch (NumberFormatException e) {
@@ -341,11 +341,6 @@
                                // proto 8, the byteorder of the blocks is 
always little
                                // endian because most machines today are.
                                String hashes = (hash == null ? chaltok[3] : 
hash);
-                               // if we deal with merovingian, mask our 
credentials
-                               if (servert.equals("merovingian")) {
-                                       username = "merovingian";
-                                       password = "merovingian";
-                               }
                                String pwhash;
                                if (hashes.indexOf("SHA1") != -1) {
                                        try {
@@ -389,7 +384,7 @@
                                // generate response
                                response = "BIG:";      // JVM byte-order is 
big-endian
                                response += username + ":" + pwhash + ":" + 
language;
-                               response += ":" + (database == null ? "" : 
database) + ":";
+                               response += ":" + database + ":";
 
                                return(response);
                }


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to