Commit Graph
158 Commits
Author SHA1 Message Date
Miguel de Icaza 60fa2525fb [build] the csproj files can now do a full class libraries build 2014-05-25 00:47:09 -04:00
Miguel de Icaza 3599b97b57 [build] Fresh new csproj files based on the updated build system. 2014-05-23 17:15:53 -04:00
Miguel de Icaza d79280674b Refreshed the CSProj files to use the new output build directory 2014-04-18 18:15:35 -04:00
Martin Baulig 1ae48f124c Use msfinal.pub for System.Net in .NET 4.0/4.5. 2013-09-11 15:37:06 +02:00
Alistair Leslie-Hughes 9a1ddb9f0c Revert "Add class DnsPermission"
This reverts commit c3d818e1ba.

The class is already part of the System assembly.  I mistook the
namespace as the Assembly name.
2013-08-02 19:02:35 +10:00
Marek Safar 694d67d582 No type forwarders for 2.0 System.Net 2013-07-30 15:51:29 +02:00
Alistair Leslie-Hughes c3d818e1ba Add class DnsPermission 2013-07-29 20:53:03 +10:00
Marek Safar b888cf5f04 Update csproj files 2013-07-02 13:45:15 +02:00
Martin Baulig 8ea5b572f9 Add type-forwarders for existing assemblies. 2013-03-13 18:07:44 -04:00
Marek Safar 28ddbf1429 Build correct version of System.Net for non-mobile profile 2013-03-01 18:55:49 +01:00
Marek Safar cf650fb3fb Update 4.5 bcl solution files 2013-02-21 17:25:06 +01:00
Marek Safar 8063eb0963 Remove broken profile files 2013-02-12 10:19:10 +01:00
Marek Safar 78318771d5 Update csproj files 2013-02-07 16:34:23 +01:00
Marek Safar 2d2796f07b Fix System.Core reference in VS projects 2012-06-26 13:26:56 +01:00
Marek Safar d9e4371f9e Clean up assembly attributes 2012-06-07 15:17:52 +01:00
Marek Safar 8074a7d31e Update csproj files 2012-04-05 15:46:25 +01:00
Marek Safar 76dac96b4b Cleanup some assembly attributes 2012-02-17 12:37:25 +00:00
Marek Safar 88fde5a568 Add VS project files for test project 2012-02-10 14:56:23 +00:00
Marek Safar 91d40d754d Update class library csproj files 2012-02-09 11:25:18 +00:00
Marek Safar dd9b92a100 Install 4.0 profile as developers package and make 4.5 profile default gac target for 4.x 2011-09-26 12:08:01 +01:00
Sebastien Pouliot 11037f269c Add new WP7 properties in HttpWebRequest
* HttpWebRequest_2_1.cs: Add new AllowAutoRedirect and UserAgent
properties for binary compatibility with WP7. As documented both
properties are not usable in SL4 (throws NIE) but their existance
helps writing portable code
2011-04-25 13:31:18 -04:00
Sebastien Pouliot 48fd0e1b2e Fix non-element in XML flash policy (same as #681699 was for silverlight policies)
* FlashCrossDomainPolicyParser.cs: Skip, not throw, if we find a non-
element node type in a flash policy file.
2011-04-15 15:19:12 -04:00
Rolf Bjarne Kvinge f64261401d Fix many corcompare issues for moonlight 2011-03-31 16:05:03 +02:00
Sebastien Pouliot 95482a1aba Do not allow extra elements in policy
* ClientAccessPolicyParser.cs: Fix regression (from a023b07a) found by
DRT #666. More test cases to be added into moonlight WebPolicies test
application
2011-03-25 10:15:44 -04:00
Sebastien Pouliot 0a23b07aea Relax policy parser to accept text elements - fix 681699
* ClientAccessPolicyParser.cs: Allow non-element between the expected
XML elements. Fix text, like '-', being present inside policies.
2011-03-23 13:57:23 -04:00
Sebastien Pouliot 6669a22163 Fix throwing exception in WebClient
* mcs/class/System.Net/System.Net/WebClient_2_1.cs: Do not throw
in finally clause (recent gendarme rule)
2011-03-21 09:38:49 -04:00
Sebastien Pouliot 3dbfe75434 Fix parameters names inside System.Net.dll for 2.1 profile
* System.Net/System.Net.Sockets/SocketException_2_1.cs:
* System.Net/System.Net/WebClient_2_1.cs:
* System.Net/System.Net/WebRequest_2_1.cs:
* System/System.Net.Sockets/Socket_2_1.cs:
* System/System.Net/Cookie.cs:
* System/System.Net/DnsEndPoint.cs:
* System/System.Net/EndPoint.cs:
* System/System.Net/IPAddress.cs:
* System/System.Net/IPEndPoint.cs:
* System/System.Net/SocketAddress.cs:
	Remove all red ! from corcompare in System.Net.dll (Silverlight
	4 profile) to make it easier to pinpoint other errors/warnings.
2011-02-15 08:38:06 -05:00
Miguel de Icaza 38253abf8c Add solution files 2011-02-12 22:09:49 -05:00
Larry Ewing a7e40bc796 Pinvoke symbols according to the new moonlight naming convention. 2011-02-07 10:56:50 -06:00
Sebastien Pouliot 0cf8705abf Fix access policy when more than one scheme is present #659791
* ClientAccessPolicy.cs: Remove special case for scheme
* ClientAccessPolicyParser.cs: Add scheme-only entries like full URI
2010-12-16 16:29:56 -05:00
Marek Safar 25b26705a4 Add existing class to System.Net build 2010-12-15 11:40:59 +00:00
Sebastien Pouliot e7b97d3d29 Add CookieParser to Moonlight's System.Net assembly
* moonlight_raw_System.Net.dll.sources: Add new CookieParser to the
build
2010-11-05 14:39:32 -04:00
Sebastien Pouliot 383a5e711e Use same socket family as the endpoint when retrieving the policy
* System.Net.Policy/CrossDomainPolicyManager.cs: Use same socket family
as the endpoint when retrieving the policy. Also do not try to create a
policy out of an empty stream (avoid misleading exceptions in logs)
2010-09-27 20:20:24 -04:00
Sebastien Pouliot fcdbcb49c7 Fix WebRequest.RegisterPrefix / Create to match SL in some corner cases
* System.Net/WebRequest_2_1.cs: (Create) Find the prefix that is the
closest match to the specified Uri and use it's associated creator.
(RegisterPrefix) We cannot register 'http[s]:' even if registering
'http[s]' is possible (but does not work as expected) as are the (fully)
valid 'http[s]:/[/]' values.
2010-09-23 17:10:06 -04:00
Sebastien Pouliot 016a04eb84 [moonlight] Fully honor WebResponse.SupportsHeaders
* System.Net.Policy/CrossDomainPolicyManager.cs: Use InternalHeaders,
instead of Headers, since we always use the browser stack to download
the security policies.

* System.Net/WebClient_2_1.cs: Throw a NotImplementedException from
ResponseHeaders if the response does not support them.
* System.Net/WebResponse_2_1.cs: Make Headers property smart to throw a
NotImplementedException if SupportsHeaders return false. Add a new
InternalHeaders property since the response headers are needed,
internally (e.g. policies), even if not exposed to the outside world.
2010-09-23 17:10:04 -04:00
Sebastien Pouliot dc669b3572 Ensure OnUploadProgressChanged is called on the right thread
* mcs/class/System.Net/System.Net/WebClient_2_1.cs: Use sync_context to
post the call to OnUploadProgressChanged
2010-09-02 16:18:40 -04:00
Sebastien Pouliot 56a925b467 Do not set the exception to NotSupportedException for denied headers
* mcs/class/System.Net/System.Net.Policy/ClientAccessPolicy.cs: Do not
throw a NotSupportedException here since it regress some DRT (like 656).
The (hopefully) correct fix (for DRT3001) will be committed inside moon
2010-09-02 11:13:38 -04:00
Sebastien Pouliot 5273386864 Multiple fixes for WebClient (from NCL tests)
* mcs/class/System.Net/System.Net/InternalWebRequestStreamWrapper.cs:
Ensure WebClient.WriteStreamClosedCallback is never called more than
once (even if the stream was closed by the caller). Supply the length
of the data that was written to the stream to WebClient.

* mcs/class/System.Net/System.Net/WebClient_2_1.cs: Keep an Uri of
BaseAddress handy since we'll need it later. Ensure OnWriteStreamClosed
is at least called once (inside finally). Emit UploadProgressChanged
(instead of Download*) when uploading.

* mcs/class/System.Net/System.Net/WebRequest_2_1.cs: Change text for
InvalidOperationException when the URI is not absolute (some MS tests
check for, case-sensitive, "URI").
2010-08-31 13:17:22 -04:00
Sebastien Pouliot 64c1e80dbc Multiple compatibility fixes for web headers on Moonlight
* HttpWebRequest_2_1.cs: Avoid using AllKeys (unneeded allocations)
* WebClient_2_1.cs: Copy headers to WebRequest (some special cases are
now considered) then clear them. Expose SecurityException (unwrapped)
and closely match SL4 exceptions (including inner exceptions).
* WebHeaderCollection_2_1.cs: Add missing validations on header names
and values (from original WebHeaderCollection.cs + small fix)
2010-08-25 15:58:27 -04:00
Sebastien Pouliot 6e6d592880 Fix check order and throw NSE on invalid headers 2010-07-23 14:01:39 -04:00
Sebastien Pouliot e1a5014726 2010-07-20 Sebastien Pouliot <[email protected]>
* NoAccessPolicy.cs: Set default to SecurityException each time
	IsAllowed is called since we share a single instance of this type


svn path=/trunk/mcs/; revision=160611
2010-07-20 14:39:59 +00:00
Sebastien Pouliot eeeaf44f44 2010-07-19 Sebastien Pouliot <[email protected]>
* BaseDomainPolicy.cs:
	* ICrossDomainPolicy.cs:
	* NoAccessPolicy.cs:
	* PolicyDownloadPolicy.cs:
	* SiteOfOriginPolicy.cs:
		Allow throwing something else than a SecurityException
		which is pretty rare but we got a DRT for it


svn path=/trunk/mcs/; revision=160586
2010-07-19 20:30:10 +00:00
Sebastien Pouliot a36dc89129 2010-07-14 Sebastien Pouliot <[email protected]>
* WebHeaderCollection_2_1.cs: Fix IEnumerable.GetEnumerator


svn path=/trunk/mcs/; revision=160387
2010-07-14 21:46:36 +00:00
Rolf Bjarne Kvinge 119386440c 2010-07-12 Rolf Bjarne Kvinge <[email protected]>
* NetworkChange_2_1.cs: Don't leak exceptions to native code.

svn path=/trunk/mcs/; revision=160255
2010-07-12 14:57:39 +00:00
Sebastien Pouliot aa659717f7 2010-05-14 Sebastien Pouliot <[email protected]>
* FlashCrossDomainPolicy.cs: Reverse conditions order on secure=true
	since we're currently too severe. Fix DRT668


svn path=/trunk/mcs/; revision=157359
2010-05-14 13:12:28 +00:00
Sebastien Pouliot 0e8bdc8ce3 2010-05-14 Sebastien Pouliot <[email protected]>
* WebHeaderCollection_2_1.cs: Hide the internal Dictionary and 
	provide methods to use it properly.
	* HttpWebRequest_2_1.cs: Use internal Clear method


svn path=/trunk/mcs/; revision=157358
2010-05-14 13:10:34 +00:00
Chris Toshok 987ee7eec6 2010-05-05 Chris Toshok <[email protected]>
* NetworkInterface_2_1.cs: implement for moonlight.

	* NetworkChange_2_1.cs: implement for moonlight.

svn path=/trunk/mcs/; revision=156737
2010-05-05 17:47:27 +00:00
Sebastien Pouliot 240f7e8f1d update System.Net.dll for SL4 API
svn path=/trunk/mcs/; revision=155874
2010-04-21 14:03:45 +00:00
Sebastien Pouliot 9f7ad37b2b 2010-04-13 Sebastien Pouliot <[email protected]>
* CrossDomainPolicyManager.cs: Fix previous change since it 
	breaks several valid cases (e.g. text/*, text/xml; charset=utf-8)
	and does not completely covers the application/xml case.
	Avoid possible ArgumentException while adding policies since it 
	confuse	the logs.


svn path=/trunk/mcs/; revision=155309
2010-04-13 13:16:03 +00:00
Andreia Gaita bb3ab70c3e 2010-04-13 Andreia Gaita <[email protected]>
* CrossDomainPolicyManager.cs: make the contentType detection
	look for /xml at the end, it's more reliable
	(fixes olympics for moonlight)

svn path=/trunk/mcs/; revision=155283
2010-04-13 05:06:15 +00:00