[corlib] Improve CancellationTokenSource test
[mono.git] / mcs / class / System / System.Net / ChangeLog
index 2a6221984c1b6a6dfa835efb66ad9aca8d67ef36..28f2b747b7c503c5a4a8180b0d927f500e9cff8d 100644 (file)
@@ -1,3 +1,438 @@
+2010-07-21  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * ServicePointManager.cs: Add special validation for Moonlight
+       * WebConnection.cs: Change a define to NET_2_1
+
+2010-07-16 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * WebClient.cs: ignore values set in CachePolicy and
+       UseDefaultCredentials instead of throwing NIEX.
+
+2010-07-14 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * IPAddress.cs: allow values out of range as MS does.
+
+2010-07-08 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * WebClient.cs: handle compressed streams when automatic decompression
+       is turned on by a class derived from WebClient.
+
+2010-07-01  Marek Habersack  <mhabersack@novell.com>
+
+       * WebRequest.cs: DefaultCachePolicy and CachePolicy return a
+       NoCacheNoStore policy in all cases now. Workaround for bug #583934
+
+2010-06-29  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * ServicePointManager.cs: Remove NET_2_0 defines around 
+       RemoteCertificateValidationCallback
+
+2010-06-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * IPAddress.cs: verify the last IPv4 digit too.
+       Fixes bug #612135.
+
+2010-06-16 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * HttpWebRequest.cs: DELETE allows an entity body.
+       Fixes bug #614483.
+
+2010-06-15 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * HttpWebRequest.cs: 307 does not change request method.
+
+2010-06-11 Jonathan Chambers  <joncham@gmail.com>
+
+       * HttpListenerRequest.cs: Assign default value to variable before using.
+
+2010-05-18 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * FtpDataStream.cs:
+       * FtpWebRequest.cs: properly close the data connection even when
+       nothing is read from it. Refixes bug #598908.
+
+2010-04-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * FtpDataStream.cs:
+       * FtpWebRequest.cs: use streams instead of sockets as soon as
+       possible. Correctly initialize the control connection when SSL
+       is used and protect the data connection by default.
+       Fixes bug #598908.
+
+2010-04-20 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * ChunkStream.cs: ignore chunk extensions when reading the chunk
+       size. Fixes bug #597556.
+
+2010-04-15 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * HttpWebRequest.cs: set content length to -1 on redirect. Reset
+       'FinishedReading' on redirects. Fixes bug #593596.
+
+2010-04-08 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * ServicePointManager.cs: obtain the SubjectAltName extension the
+       right way. Fixes bug #594110.
+
+2010-03-27 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * HttpWebRequest.cs: when PreAuthenticate is true, don't remove the
+       existing authorization related headers until we know we have a
+       replacement. Fixes bug #591633.
+
+2010-03-26 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * ServicePointManager.cs: errors parsing the certificate don't prevent
+       calling the callback now. Exceptions thrown parsing the certificate
+       are printed to stderr in case they are library errors.
+
+2010-03-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * WebClient.cs: fix handling of query string, whether it comes from
+       the address used or is part of the QueryString.
+
+2010-03-20  Miguel de Icaza  <miguel@novell.com>
+
+       * WebConnection.cs: Drop pre-2.0 and pre-1.1 support, and remove
+       warnings. 
+
+       * WebClient.cs: Drop the pre-2.0 support
+
+2010-03-19  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * AuthenticationManager.cs: Internal type for Moonlight.
+       Add BasicClient, DigestClient, NtlmClient for NET_2_1 since
+       this applies to both monotouch and moonlight (client stack).
+       Removed unneeded NET_2_0 defines
+       * CookieContainer.cs: For Moonlight it needs to be internal in 
+       System.dll and public in System.Net.dll. Removed unneeded NET_2_0
+       defines
+       * HttpContinueDelegate.cs: Internal type for Moonlight.
+       * HttpRequestCreator.cs: Remove a MOONLIGHT define
+       * HttpStatusCode.cs: For Moonlight it needs to be internal in 
+       System.dll and public in System.Net.dll
+       * HttpWebRequest.cs: Internal type for Moonlight. Change S.Config
+       to NET_2_1 defines (applies to both monotouch and moonlight).
+       Removed unneeded NET_2_0 and NET_1_1 defines
+       * HttpWebResponse.cs: Internal type for Moonlight. Removed 
+       unneeded NET_2_0 defines
+       * IAuthenticationModule.cs: Internal type for Moonlight.
+       * ICertificatePolicy.cs: Internal type for Moonlight.
+       * ICredentialPolicy.cs: Internal type for Moonlight. Removed 
+       unneeded NET_2_0 defines
+       * IWebRequestCreate.cs: For Moonlight it needs to be internal in 
+       System.dll and public in System.Net.dll
+       * ServicePoint.cs: Internal type for Moonlight. Change S.Config
+       to NET_2_1 defines (applies to both monotouch and moonlight)
+       * ServicePointManager.cs: Remove a MOONLIGHT define
+       * WebException.cs: For Moonlight it needs to be internal in 
+       System.dll and public in System.Net.dll. Removed unneeded NET_2_0
+       defines
+       * WebHeaderCollection.cs: Internal type for Moonlight. Removed 
+       unneeded NET_2_0 defines
+       * WebRequest.cs: Internal type for Moonlight. Change S.Config
+       to NET_2_1 defines (applies to both monotouch and moonlight)
+       * WebResponse.cs: Internal type for Moonlight. Removed unneeded
+       NET_2_0 defines
+
+2010-03-18 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * FtpWebResponse.cs:
+       * FtpWebRequest.cs: for non-data operations, make sure we send the
+       QUIT command upon completion when KeepAlive is false.
+       Fixes bug #589305.
+
+2010-03-16  Jb Evain  <jbevain@novell.com>
+
+       * Dns.cs, HttpRequestCreator.cs, ServicePoint.cs: use MOONLIGHT
+       symbol to disambiguate MonoTouch and Moonlight code.
+
+2010-03-11 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * ServicePointManager.cs: perform the entire chain validation here.
+
+2010-03-09 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * HttpConnection.cs: set the right position when a CR is found.
+       Fixes bug #577891.
+
+2010-03-09 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * HttpListener.cs:
+       * HttpListenerRequest.cs:
+       * ListenerAsyncResult.cs:
+       * HttpConnection.cs: make sure there is no pending input when reusing
+       the connection.
+
+2010-03-08 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * HttpListenerContext.cs: split the auth header in 2 parts.
+       * HttpListener.cs: backported SelectAuthenticationScheme and
+       added new InternalEndGetContext used for connections that require
+       authentication.
+       * ListenerAsyncResult.cs: allow this object to be just a forwarder
+       when nesting connections for authentication purposes.
+       Fixes bug #585455.
+
+2010-03-06 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * WebClient.cs: fix for UploadStringAsync(). Closes bug #577818.
+       Patch by Atsushi.
+
+2010-03-04  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * HttpListenerContext.cs : WWW-Authenticate header should not be
+         limited to Basic.
+
+2010-03-04  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * HttpListenerContext.cs : The header line here is already trimmed
+         "Authorization:" , so do not try to remove it.
+
+2010-03-04  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * HttpListener.cs, ListenerAsyncResult.cs : fix authentication
+         scheme selection mismatch.
+
+2010-03-03  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * HttpListenerContext.cs, HttpListener.cs :
+         support AuthenticationSchemeSelectorDelegate.
+
+2010-03-01  Miguel de Icaza  <miguel@novell.com>
+
+       * WebHeaderCollection.cs: Apply 2 year old patch from Yves Bastide
+       that fixes the keys casing in the collection; Fixes 325491
+
+2010-03-01 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * WebConnection.cs: attach a validation callback to the new
+       event in Mono.Security.
+       * ServicePointManager.cs: added a new ValidationHelper
+       class that takes care of building the certificate chain and perform
+       all the check that were done in Mono.Security before. This way the 2.0
+       server certificate validation callback can get all the data it needs.
+
+       Fixes bug #584050.
+
+2010-01-29  Mike Kestner <mkestner@novell.com>
+
+       * HttpUtility.cs: port more of the methods from System.Web file.
+       * WebUtility.cs: new 4.0 class.
+
+2010-01-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * IPEndPoint.cs: When throwing an ArgumentException in Create()
+       because of a mismatch in the address family, use a more informative
+       message. Patch by Juho Vaha-Herttu<juhovh@iki.fi>.
+       Fixes #505105.
+
+2010-01-21  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * CookieContainer.cs: Fix to cloning and expiration. Patch
+       by Tom Philpot <tom.philpot@logos.com>
+
+2010-01-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * HttpWebRequest.cs: when the server returns several different
+       authentication methods, pick the one that works.
+       Fixes bug #562043.
+
+2010-01-12  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * NetworkCredential.cs: Fix properties to never return null.
+
+2009-12-24  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * Cookie.cs: Re-work ToString to be useable in more cases. Fix
+       some issues found by Gendarme.
+       * CookieContainer.cs: Fix all NonWorking (and new) unit tests.
+       Implement removing oldest cookies when limits are reached.
+       * CookieCollection.cs: Move to generics internally. Fix sort to 
+       be closer to MS implementation (but still not 100% identical).
+       Fix some issues found by Gendarme.
+
+2009-12-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * WebConnectionGroup.cs:
+       * ServicePoint.cs: implemented CloseConnectionGroup().
+
+2009-12-04  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * System.Net/DnsEndPoint.cs: Moved from System.Net (where the
+       type resides in Moonlight) so it's available for 4.0
+
+2009-11-30  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * CookieCollection.cs: Seal inner CookieCollectionPathComparer
+       * IPAddress.cs: Avoid multiple casts in Equals
+       * SocketAddress.cs: Avoid multiple casts in Equals
+       [Found using Gendarme]
+
+2009-10-23  Alexandre Gomes  <alexmipego@gmail.com>
+
+       * WebClient.cs: Fixed GetWebRequest overriding problems, bug: 
+         https://bugzilla.novell.com/show_bug.cgi?id=549580
+         
+2009-10-17 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * WebConnectionStream.cs: add 3 missing DoCallback() calls in
+       EndRead/EndWrite.
+
+2009-09-29 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * EndPointListener.cs: fix matching a listener in presence of a query
+       string or anchor.
+
+2009-09-15 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * HttpListenerRequest.cs: add the right status code.
+       * HttpConnection.cs: exception might come from more places when
+       reading the input. Catch all of them.
+
+2009-09-15 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * WebRequest.cs: handle upper and lowercase HTTP_PROXY and the Any
+       address. Fixes bug #537283.
+
+2009-09-04 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * WebConnection.cs: if the request has already finished reading, don't
+       throw ObjectDisposedException here, just return as if nothing
+       happened. Fixes bug #312968.
+
+2009-08-29 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * WebConnection.cs: HEAD response does not have a body even if the
+       response is an error. Fixes buf #535102.
+
+2009-08-17  Geoff Norton  <gnorton@novell.com>
+
+       * NtlmClient.cs: Mono.Http does not exist on monotouch
+
+2009-08-17  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * CookieCollection.cs: Seal class for NET_2_1 (SL3)
+       * CookieContainer.cs: Seal class for NET_2_1 (SL3)
+       * NetworkCredential.cs: Use in NET_2_1 (SL3) but without implementing
+       ICredentialsByHost
+
+2009-08-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * HttpWebRequest.cs:
+       * WebConnectionStream.cs: if there's an error writing the headers from
+       a buffered request, propagate the error instead of hiding it and
+       causing a different one later (ie, ObjectDisposedException instead of
+       the original WebException). This happened when posting without
+       Content-Length set to an HTTPS url without validating the server
+       certificate.
+
+2009-07-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * WebClient.cs: rethrow WebExceptions instead of creating a new one
+       with less information on the actual error.
+       Fixes bug #526069.
+
+2009-07-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * WebHeaderCollection.cs: check the validity of the characters in the
+       header names.
+
+2009-07-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * WebHeaderCollection.cs: implemente the 2.0 IsRestricted().
+
+2009-07-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * WebConnectionStream.cs: when sending a 0-length POST, ignore further
+       writes instead of throwing.
+       Fixes bug #524049.
+
+2009-07-10 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * WebClient.cs: implement GetWebRequest and GetWebResponse. Use them
+       instead of SetupRequest and ProcessResponse.
+
+2009-07-07 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * WebClient.cs: set the content length when uploading values. This
+       allows reusing the connection.
+       * WebConnectionStream.cs: SetHeaders() takes ownership of the buffer
+       and does not need to copy it any more. WriteRequest() wasn't always
+       setting 'requestWritten' to true.
+       * HttpWebRequest.cs: change in SetHeaders call.
+
+2009-07-06  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * WebConnectionStream.cs: Move and improve argument checks to match MS.
+       Modified CanRead and CanWrite to return false when instance is disposed.
+
+2009-07-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * WebConnection.cs: provide better error message when there's an error
+       writing.
+       * WebConnectionStream.cs: don't nullify the buffer until
+       CheckFinalStatus() decides that there are no more authentication
+       retries or redirects.
+
+2009-07-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * ServicePointManager.cs: implement ServerCertificateValidationCallback.
+       * DefaultCertificatePolicy.cs: if there's a SCVC registered, don't do
+       normal error checking.a
+
+2009-07-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * HttpWebRequest.cs: avoid duplicating Accept-Encoding if GetHeaders()
+       is called twice.
+       * WebConnectionStream.cs: don't send a 0 content length for non-write
+       requests.
+
+2009-07-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * WebConnection.cs: must use the 'int' version in 1.1.
+
+2009-07-01 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * WebConnection.cs:
+       * ServicePoint.cs: UseNagleAlgorithm determines NoDelay value.
+
+2009-06-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * HttpWebRequest.cs: fix 1.1 only test.
+
+2009-06-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * WebConnectionStream.cs: when buffering the response, we have to set
+       the internal length and regenerate the headers.
+
+2009-06-26 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * HttpWebRequest.cs: don't send Content-Length header when SendChunked
+       is enabled.
+       * WebConnectionStream.cs: send the headers immediately when possible.
+       When writing the request before a Close(), if there was an exception
+       it was lost.
+
+2009-06-26 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * HttpConnection.cs:
+       * HttpListenerResponse.cs: force closing the socket when the response
+       is aborted.
+
+2009-06-25 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * WebAsyncResult.cs: new field that tells us if the request is being
+       written automatically because we reached the content length.
+       * WebConnection.cs:
+       * WebConnectionStream.cs: make sure we only access the NetworkStream
+       while we own it. Automatically write the request when we reach
+       ContentLength number of bytes. Kill the write buffer as soon as
+       possible. Don't use the buffer at all when chunked encoding is
+       enabled.
+
+       Fixes bugs #515931 and #510642.
+
 2009-06-24 Gonzalo Paniagua Javier <gonzalo@novell.com>
 
        * WebConnection.cs: 'socket' and 'Data' where being changed by 2
        Clear the ip_to_endpoints hashtable if there are no more prefixes
        listening on that address.
 
-2009-06-16 Andrés G. Aragoneses <aaragoneses@novell.com>
+2009-06-16 Andres G. Aragoneses <aaragoneses@novell.com>
 
        * WebConnection.cs: propagate the exception to the request.
        * WebException.cs: new internal ctor.