Commit Graph
7 Commits
Author SHA1 Message Date
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 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 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
Sebastien Pouliot 9317031d00 2010-04-06 Sebastien Pouliot <[email protected]>
* ClientAccessPolicyParser.cs: Catch extra attributes that
	leads to an invalid (no-access) policy. Fix parts of DRT#666
	* CrossDomainPolicyManager.cs: Ignore policies sent with a 
	Content-Type different than "text/*". Fix DRT#667
	* FlashCrossDomainPolicyParser.cs: Catch extra attributes and
	the case where a second policy is present (invalid xml). Fix 
	parts of DRT#666


svn path=/trunk/mcs/; revision=154862
2010-04-06 15:57:19 +00:00
Sebastien Pouliot c54a75466f In System/System.Net.Sockets:
2010-03-10  Sebastien Pouliot  <[email protected]>

	* SocketAsyncEventArgs.cs: Remove the use of reflection to check
	xdomain poilicy on sockets (since the policy code now resides in
	System.Net.dll)

In System.Net:
2010-03-10  Sebastien Pouliot  <[email protected]>

	* net_2_1_raw_System.Net.dll.sources: Add types from (new internal)
	System.Net.Policy (moved from System.Windows.Browser.dll)
	* Makefile: Add reference to System.Xml.dll to parse policies

In System.Net/System.Net.Policy:
2010-03-10  Sebastien Pouliot  <[email protected]>

	* BaseDomainPolicy.cs, ClientAccessPolicy[Parser].cs, 
	CrossDomainPolicyManager.cs, FlashCrossDomainPolicy[Parser].cs,
	ICrossDomainPolicy.cs, NoAccessPolicy.cs, PolicyDownloadPolicy.cs,
	SiteOfOriginPolicy.cs: Moved from System.Net.dll with namespace 
	and minor build adjustments.


svn path=/trunk/mcs/; revision=153396
2010-03-10 13:19:46 +00:00