Commit Graph
7 Commits
Author SHA1 Message Date
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 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
Sebastien Pouliot 82f9bc99cd 2010-04-07 Sebastien Pouliot <[email protected]>
* BaseDomainPolicy.cs: Abstract-fy IsAllowed(WebRequest) and 
	remove abstract IsAllowed(Uri,string[]) since it cannot provide
	enough information for the client access policy.
	* ClientAccessPolicy.cs: Replace IsAllowed(Uri,string[]) with
	IsAllowed(WebRequest) and add logic for AllowAnyMethod
	* ClientAccessPolicyParser.cs: Read "http-methods" attribute (new
	in SL3) and set the new AllowAnyMethod property if the value is
	"*" (the only legal value if the attribute is present).
	* FlashCrossDomainPolicy.cs: Add IsAllowed(WebRequest) since it's
	not part of BaseDomainPolicy anymore.


svn path=/trunk/mcs/; revision=154949
2010-04-07 13:15:44 +00:00
Sebastien Pouliot b61b5703ba 2010-04-06 Sebastien Pouliot <[email protected]>
* ClientAccessPolicyParser.cs: Don't forget "http-request-headers"
	as a valid attribute


svn path=/trunk/mcs/; revision=154876
2010-04-06 17:45:06 +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