Author: miguel
Date: 2005-03-30 16:49:23 -0500 (Wed, 30 Mar 2005)
New Revision: 42391

Modified:
   branches/mono-1-1-6/mcs/ChangeLog
   branches/mono-1-1-6/mcs/build/config-default.make
   branches/mono-1-1-6/mcs/build/executable.make
   branches/mono-1-1-6/mcs/build/library.make
   branches/mono-1-1-6/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/ChangeLog
   branches/mono-1-1-6/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds70.cs
   
branches/mono-1-1-6/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsConnectionPool.cs
   branches/mono-1-1-6/mcs/class/System.Web/System.Web/ChangeLog
   branches/mono-1-1-6/mcs/class/System.Web/System.Web/HttpCookieCollection.cs
   branches/mono-1-1-6/mcs/class/System/System.Net/ChangeLog
   branches/mono-1-1-6/mcs/class/System/System.Net/HttpWebResponse.cs
   branches/mono-1-1-6/mcs/class/corlib/Makefile
   branches/mono-1-1-6/mcs/ilasm/AssemblyInfo.cs
   branches/mono-1-1-6/mcs/mcs/AssemblyInfo.cs
   branches/mono-1-1-6/mcs/tools/corcompare/Makefile
   branches/mono-1-1-6/mcs/tools/security/Makefile
Log:
Fixes for 1.1.6

Modified: branches/mono-1-1-6/mcs/ChangeLog
===================================================================
--- branches/mono-1-1-6/mcs/ChangeLog   2005-03-30 21:47:50 UTC (rev 42390)
+++ branches/mono-1-1-6/mcs/ChangeLog   2005-03-30 21:49:23 UTC (rev 42391)
@@ -15,7 +15,7 @@
 
        * btests: Removed. This directory is now superseded by
        mbas/Test.
-       
+
 2004-12-13  Raja R Harinath  <[EMAIL PROTECTED]>
 
        * INSTALL.txt: Minor updates to reflect build changes.

Modified: branches/mono-1-1-6/mcs/build/config-default.make
===================================================================
--- branches/mono-1-1-6/mcs/build/config-default.make   2005-03-30 21:47:50 UTC 
(rev 42390)
+++ branches/mono-1-1-6/mcs/build/config-default.make   2005-03-30 21:49:23 UTC 
(rev 42391)
@@ -15,7 +15,7 @@
 INSTALL = /usr/bin/install
 prefix = /usr/local
 exec_prefix = $(prefix)
-libdir = $(exec_prefix)/lib
+mono_libdir = $(exec_prefix)/lib
 RUNTIME = mono $(RUNTIME_FLAGS)
 TEST_RUNTIME = 
MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$(TEST_MONO_PATH)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH"
 $(RUNTIME) --debug
 

Modified: branches/mono-1-1-6/mcs/build/executable.make
===================================================================
--- branches/mono-1-1-6/mcs/build/executable.make       2005-03-30 21:47:50 UTC 
(rev 42390)
+++ branches/mono-1-1-6/mcs/build/executable.make       2005-03-30 21:49:23 UTC 
(rev 42391)
@@ -35,7 +35,7 @@
 else
 
 ifndef PROGRAM_INSTALL_DIR
-PROGRAM_INSTALL_DIR = $(libdir)/mono/$(FRAMEWORK_VERSION)
+PROGRAM_INSTALL_DIR = $(mono_libdir)/mono/$(FRAMEWORK_VERSION)
 endif
 
 install-local: $(PROGRAM) $(PROGRAM_config)

Modified: branches/mono-1-1-6/mcs/build/library.make
===================================================================
--- branches/mono-1-1-6/mcs/build/library.make  2005-03-30 21:47:50 UTC (rev 
42390)
+++ branches/mono-1-1-6/mcs/build/library.make  2005-03-30 21:49:23 UTC (rev 
42391)
@@ -92,12 +92,12 @@
 endif
 
 ifeq ($(PLATFORM), win32)
-GACDIR = `cygpath -w $(libdir)`
-GACROOT = `cygpath -w $(DESTDIR)$(libdir)`
+GACDIR = `cygpath -w $(mono_libdir)`
+GACROOT = `cygpath -w $(DESTDIR)$(mono_libdir)`
 test_flags += -d:WINDOWS
 else
-GACDIR = $(libdir)
-GACROOT = $(DESTDIR)$(libdir)
+GACDIR = $(mono_libdir)
+GACROOT = $(DESTDIR)$(mono_libdir)
 endif
 
 all-local: $(the_lib)

Modified: 
branches/mono-1-1-6/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/ChangeLog
===================================================================
--- 
branches/mono-1-1-6/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/ChangeLog    
    2005-03-30 21:47:50 UTC (rev 42390)
+++ 
branches/mono-1-1-6/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/ChangeLog    
    2005-03-30 21:49:23 UTC (rev 42391)
@@ -1,3 +1,13 @@
+2005-03-18 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+       * Tds70.cs: turns out that sp_reset_connection procedure might not be
+       found ("Invalid object name 'sp_reset_connection'"). In this case, and
+       if we get a proper state ('Class' property in the SqlException), just
+       ignore the error.
+
+       * TdsConnectionPool.cs: if the connection cannot be reset, attemp to
+       disconnect it before losing the last reference to it.
+
 2005-03-11 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
        * Tds.cs: set the charset for MS SQL 2000. Patch from Aleksandar

Modified: 
branches/mono-1-1-6/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds70.cs
===================================================================
--- branches/mono-1-1-6/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds70.cs 
2005-03-30 21:47:50 UTC (rev 42390)
+++ branches/mono-1-1-6/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds70.cs 
2005-03-30 21:49:23 UTC (rev 42391)
@@ -353,16 +353,19 @@
 
                public override bool Reset ()
                {
-                       try
-                       {
+                       try {
                                ExecProc ("exec sp_reset_connection");
-                               return true;
+                       } catch (Exception e) {
+                               System.Reflection.PropertyInfo pinfo = 
e.GetType ().GetProperty ("Class");
+                               if (pinfo != null && pinfo.PropertyType == 
typeof (byte)) {
+                                       byte klass = (byte) pinfo.GetValue (e, 
null);
+                                       // 11 to 16 indicates error that can be 
fixed by the user such as 'Invalid object name'
+                                       if (klass < 11 || klass > 16)
+                                               return false;
+                               }
                        }
-                       catch
-                       {
-                               Console.WriteLine ("Error reseting");
-                               return false;
-                       }
+
+                       return true;
                }
 
                public override void ExecPrepared (string commandText, 
TdsMetaParameterCollection parameters, int timeout, bool wantResults)

Modified: 
branches/mono-1-1-6/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsConnectionPool.cs
===================================================================
--- 
branches/mono-1-1-6/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsConnectionPool.cs
     2005-03-30 21:47:50 UTC (rev 42390)
+++ 
branches/mono-1-1-6/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsConnectionPool.cs
     2005-03-30 21:49:23 UTC (rev 42391)
@@ -131,6 +131,9 @@
                                                connection = (ITds) list 
[list.Count - 1];
                                                list.RemoveAt (list.Count - 1);
                                                if (!connection.Reset ()) {
+                                                       try {
+                                                               
connection.Disconnect ();
+                                                       } catch {}
                                                        connection = null;
                                                        continue;
                                                }

Modified: branches/mono-1-1-6/mcs/class/System/System.Net/ChangeLog
===================================================================
--- branches/mono-1-1-6/mcs/class/System/System.Net/ChangeLog   2005-03-30 
21:47:50 UTC (rev 42390)
+++ branches/mono-1-1-6/mcs/class/System/System.Net/ChangeLog   2005-03-30 
21:49:23 UTC (rev 42391)
@@ -1,3 +1,9 @@
+2005-03-29  Miguel de Icaza  <[EMAIL PROTECTED]>
+
+       * HttpWebResponse.cs: Handle quotations in the cookies values, per
+       the spec http://www.faqs.org/rfcs/rfc2109.html, it is allowed to
+       have quotations.
+
 2005-03-18 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
        * BasicClient.cs:

Modified: branches/mono-1-1-6/mcs/class/System/System.Net/HttpWebResponse.cs
===================================================================
--- branches/mono-1-1-6/mcs/class/System/System.Net/HttpWebResponse.cs  
2005-03-30 21:47:50 UTC (rev 42390)
+++ branches/mono-1-1-6/mcs/class/System/System.Net/HttpWebResponse.cs  
2005-03-30 21:49:23 UTC (rev 42391)
@@ -477,11 +477,24 @@
                        while (k < length && Char.IsWhiteSpace (header [k]))
                                k++;
 
-                       int begin = k;
-                       while (k < length && header [k] != ';')
-                               k++;
+                       int begin;
+                       if (header [k] == '"'){
+                               int j;
+                               begin = ++k;
 
-                       pos = k;
+                               while (k < length && header [k] != '"')
+                                       k++;
+
+                               for (j = k; j < length && header [j] != ';'; 
j++)
+                                       ;
+                               pos = j;
+                       } else {
+                               begin = k;
+                               while (k < length && header [k] != ';')
+                                       k++;
+                               pos = k;
+                       }
+                               
                        return header.Substring (begin, k - begin).Trim ();
                }
        }

Modified: branches/mono-1-1-6/mcs/class/System.Web/System.Web/ChangeLog
===================================================================
--- branches/mono-1-1-6/mcs/class/System.Web/System.Web/ChangeLog       
2005-03-30 21:47:50 UTC (rev 42390)
+++ branches/mono-1-1-6/mcs/class/System.Web/System.Web/ChangeLog       
2005-03-30 21:49:23 UTC (rev 42391)
@@ -1,3 +1,8 @@
+2005-03-23 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+       * HttpCookieCollection.cs: when adding more than one cookie with the
+       same name, the last one is the winner.
+
 2005-03-09 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
        * HttpRequest.cs: correctly store the value cookies in Params. Fixes

Modified: 
branches/mono-1-1-6/mcs/class/System.Web/System.Web/HttpCookieCollection.cs
===================================================================
--- branches/mono-1-1-6/mcs/class/System.Web/System.Web/HttpCookieCollection.cs 
2005-03-30 21:47:50 UTC (rev 42390)
+++ branches/mono-1-1-6/mcs/class/System.Web/System.Web/HttpCookieCollection.cs 
2005-03-30 21:49:23 UTC (rev 42391)
@@ -77,7 +77,10 @@
                        _AllCookies = null;
                        _AllKeys = null;
 
-                       BaseAdd (cookie.Name, cookie);
+                       if (BaseGet (cookie.Name) == null)
+                               BaseAdd (cookie.Name, cookie);
+                       else
+                               BaseSet (cookie.Name, cookie);
 
                        if (null != _Response)
                                _Response.OnCookieAdd (cookie);

Modified: branches/mono-1-1-6/mcs/class/corlib/Makefile
===================================================================
--- branches/mono-1-1-6/mcs/class/corlib/Makefile       2005-03-30 21:47:50 UTC 
(rev 42390)
+++ branches/mono-1-1-6/mcs/class/corlib/Makefile       2005-03-30 21:49:23 UTC 
(rev 42391)
@@ -19,7 +19,7 @@
 # disable, until people fix their code...
 #corlib_flags = /unsafe /nostdlib /d:INSIDE_CORLIB
 
-LIBRARY_INSTALL_DIR = $(libdir)/mono/$(FRAMEWORK_VERSION)
+LIBRARY_INSTALL_DIR = $(mono_libdir)/mono/$(FRAMEWORK_VERSION)
 
 CLEAN_FILES = $(cmplib) $(reslib) $(plattestlib) $(plattestlib).sources \
               $(cmp_response) $(cmp_makefrag) \

Modified: branches/mono-1-1-6/mcs/ilasm/AssemblyInfo.cs
===================================================================
--- branches/mono-1-1-6/mcs/ilasm/AssemblyInfo.cs       2005-03-30 21:47:50 UTC 
(rev 42390)
+++ branches/mono-1-1-6/mcs/ilasm/AssemblyInfo.cs       2005-03-30 21:49:23 UTC 
(rev 42391)
@@ -1,7 +1,7 @@
 using System.Reflection;
 using System.Runtime.CompilerServices;
 
-[assembly: AssemblyVersion("1.1.5")]
+[assembly: AssemblyVersion("1.1.6")]
 [assembly: AssemblyTitle ("Mono ILasm Compiler")]
 [assembly: AssemblyDescription ("Mono ILasm Compiler")]
 [assembly: AssemblyCopyright ("Sergey Chaban and Jackson Harper")]

Modified: branches/mono-1-1-6/mcs/mcs/AssemblyInfo.cs
===================================================================
--- branches/mono-1-1-6/mcs/mcs/AssemblyInfo.cs 2005-03-30 21:47:50 UTC (rev 
42390)
+++ branches/mono-1-1-6/mcs/mcs/AssemblyInfo.cs 2005-03-30 21:49:23 UTC (rev 
42391)
@@ -1,7 +1,7 @@
 using System.Reflection;
 using System.Runtime.CompilerServices;
 
-[assembly: AssemblyVersion("1.1.5")]
+[assembly: AssemblyVersion("1.1.6")]
 [assembly: AssemblyTitle ("Mono C# Compiler")]
 [assembly: AssemblyDescription ("Mono C# Compiler")]
 [assembly: AssemblyCopyright ("2001, 2002, 2003 Ximian, Inc.")]

Modified: branches/mono-1-1-6/mcs/tools/corcompare/Makefile
===================================================================
--- branches/mono-1-1-6/mcs/tools/corcompare/Makefile   2005-03-30 21:47:50 UTC 
(rev 42390)
+++ branches/mono-1-1-6/mcs/tools/corcompare/Makefile   2005-03-30 21:49:23 UTC 
(rev 42391)
@@ -21,7 +21,7 @@
        MissingType.cs \
        ToDoAssembly.cs
 
-PROGRAM_INSTALL_DIR = $(libdir)/mono/$(FRAMEWORK_VERSION)
+PROGRAM_INSTALL_DIR = $(mono_libdir)/mono/$(FRAMEWORK_VERSION)
 
 APIINFO_SOURCES = mono-api-info.cs
 APIDIFF_SOURCES = mono-api-diff.cs

Modified: branches/mono-1-1-6/mcs/tools/security/Makefile
===================================================================
--- branches/mono-1-1-6/mcs/tools/security/Makefile     2005-03-30 21:47:50 UTC 
(rev 42390)
+++ branches/mono-1-1-6/mcs/tools/security/Makefile     2005-03-30 21:49:23 UTC 
(rev 42391)
@@ -8,7 +8,7 @@
 SECURITY_PROGRAMS = secutil.exe cert2spc.exe sn.exe MakeCert.exe chktrust.exe 
signcode.exe setreg.exe certmgr.exe caspol.exe permview.exe
 SECURITY_SOURCES = AssemblyInfo.cs StrongNameManager.cs 
$(SECURITY_PROGRAMS:.exe=.cs)
 
-PROGRAM_INSTALL_DIR = $(libdir)/mono/$(FRAMEWORK_VERSION)
+PROGRAM_INSTALL_DIR = $(mono_libdir)/mono/$(FRAMEWORK_VERSION)
 
 DISTFILES = README $(SECURITY_SOURCES)
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to