Commit Graph
24 Commits
Author SHA1 Message Date
Alexander Köplinger 98cf04084a [bcl] Remove NET_4_0 defines from class libs
NET_4_0 is always defined now, so the ifdefs are redundant.
I verified the libs are exactly the same after this change, so this is effectively a no-op.
2015-07-26 15:01:49 +02:00
Alexander Köplinger 746650d1b9 [bcl] Remove more NET_2_0 checks from class libs 2015-01-17 05:45:39 +01:00
Sebastien Pouliot 21d2c6aedb A few moves/changes following previous patch review
* Makefile: Compile tests with TEST defined (to include System.Web.Util.
MachineKeySectionUtils unit tests)
* System.Web.dll.sources: Move MachineKeySectionUtils.cs from System.
Web.Configuration_2.0 to System.Web.Util
* System.Web_test.dll.sources: Move MachineKeySectionUtilsTest.cs from
System.Web.Configuration_2.0 to System.Web.Util

* System.Web.Configuration_2.0/MachineKeySection.cs: Adjust using
clauses. Uncomment some code. Fix TripleDES versus 3DES for Validation
under NET_4_0. Remove 'private' on fields/methods.
* System.Web.Handlers/AssemblyResourceLoader.cs: Adjust using clauses
* System.Web.Security/MembershipHelper.cs: Adjust using clauses
* System.Web.Security/RolePrincipal.cs: Adjust using clauses
* System.Web.SessionState_2.0/SessionId.cs: Adjust using clauses
* System.Web.UI/LosFormatter.cs: Adjust using clauses.
* System.Web.Util/MachineKeySectionUtils.cs: Moved from System.Web.
Configuration_2.0. Rename namespace and remove 'internal' on type
declaration

* Test/System.Web.Util/MachineKeySectionUtilsTest.cs: Moved from Test/
System.Web.Configuration/MachineKeySectionTest.cs. Add test case for
TripleDES versus 3DES
2010-10-12 11:38:48 -04:00
Sebastien Pouliot a22389fde2 Normalization of cryptographic uses in asp.net
* System.Web.Configuration_2.0/MachineKeyRegistryStorage.cs:
Remove key length check and generic key generation.

* System.Web.Configuration_2.0/MachineKeySection.cs: Add support for 4.0
ValidationAlgorithm and the use of custom algorithms (validation and
decryption). Allow the use of any, valid, key length (based on the
algorithm). Let each algorithm creates its own key (e.g. special needs,
default length...)

* System.Web.Configuration_2.0/MachineKeySectionUtils.cs: Remove key
generation (from random) code and 192bits key length hack (won't work
with custom algorithms). Add support for new (4.0) algorithms, including
custom ones. Provide uniform/shared code to Encrypt/Decrypt, Sign/Verify
and EncryptSign/VerifyDecrypt using MachineKeySection data.

* System.Web.Configuration_2.0/MachineKeyValidation.cs: Add new (4.0)
values.

* System.Web.Configuration_2.0/MachineKeyValidationConverter.cs: Add
support for new (4.0) algorithms.

* System.Web.Handlers/AssemblyResourceLoader.cs: Use the new common
cryptographic code and base64 the encrypted data.

* System.Web.Security/FormsAuthentication.cs: Use the new common
cryptographic code and base64 the signed and/or encrypted data.

* System.Web.Security/MembershipHelper.cs: Use the new common
cryptographic code - this should be 100% compatible with existing data.

* System.Web.Security/RolePrincipal.cs: Use the new common cryptographic
code.

* System.Web.Security/SqliteMembershipProvider.cs: Adapt code for
internal API change.

* System.Web.UI/LosFormatter.cs: Adapt code for internal API change.
Fix some small behaviro changes wrt NET_4_0

* System.Web.UI/ObjectStateFormatter.cs: Use the new common cryptographic
code.

* System.Web.UI/Page.cs: Remove code that is now unneeded (with the new
common cryptogrraphic code).

* System.Web.Configuration_2.0/MachineKeyCompatibilityMode.cs: New.

* Test/System.Web.Configuration/MachineKeyValidationConverterTest.cs:
Add more, mostly 4.0, test cases.

* Test/System.Web.Security/FormsAuthenticationTest.cs: Add test case to
ensure HashPasswordForStoringInConfigFile is not case sensitive.

* Test/System.Web.UI/LosFormatterTest.cs: Add some rountrip test cases
with the different ctors
2010-10-12 11:38:47 -04:00
Marek Habersack b30b111972 Added a test for GlobalizationSection usage of encoding names
svn path=/trunk/mcs/; revision=155089
2010-04-08 19:44:45 +00:00
Marek Habersack ce8461d813 2008-12-23 Marek Habersack <[email protected]>
* NunitWeb/Makefile (NunitWeb.dll): added NunitWeb/CustomSection.cs

	* NunitWebResources/CustomSectionEmptyCollection.aspx: added

2008-12-23  Marek Habersack  <[email protected]>

	* WebConfigurationManagerTest.cs: added new test.

2008-12-23  Marek Habersack  <[email protected]>

	* CustomSection.cs: added. Implementation of custom configuration
	elements for WebConfigurationManager tests.

2008-12-23  Marek Habersack  <[email protected]>

	* Web.mono.config: added CustomTags section definition, used in
	WebConfiguratioManager tests.

2008-12-23  Marek Habersack  <[email protected]>

	* WebConfigurationManager.cs: GetSection should call
	OpenWebConfiguration using the actual directory path, not a file
	path. If it fails to do so, System.Configuration may treat the
	top-level Web.config file as a child one which, in turn, in
	certain circumstances will lead to duplicate keys inserted in
	collections.

2008-12-23  Marek Habersack  <[email protected]>

	* Makefile (TEST_RESOURCE_FILES): added Test/mainsoft/NunitWebResources/CustomSectionEmptyCollection.aspx

	* System.Web_test.dll.sources: added mainsoft/NunitWeb/NunitWeb/CustomSection.cs

svn path=/trunk/mcs/; revision=122024
2008-12-23 02:42:50 +00:00
Marek Habersack 7eb6037d96 2007-11-23 Marek Habersack <[email protected]>
* CacheSectionTest.cs: modified to match the new MS.NET defaults.
2007-11-23  Marek Habersack  <[email protected]>

	* CustomErrorsSection.cs: added two missing overrides -
	DeserializeSection and Reset.

svn path=/trunk/mcs/; revision=90208
2007-11-23 01:03:48 +00:00
Marek Habersack c7bbc99b2a 2007-03-24 Marek Habersack <[email protected]>
* WebConfigurationManagerTest.cs: the tests don't work because of
	the way the test suite is set up. In a normal application, the
	three test would work just fine.

2007-03-24  Marek Habersack  <[email protected]>

	* HttpRuntime.cs: use ICalls.GetMachineConfigPath instead of
	opening the machine.config file and getting its path.

	* CapabilitiesLoader.cs: use HttpRuntime.MachineConfigurationDirectory 
	instead of opening the machine config file and getting its path.

2007-03-24  Marek Habersack  <[email protected]>

	* WebConfigurationHost.cs: allow MachineToApplication definition
	for config paths that equal the domain virtual app directory.


svn path=/trunk/mcs/; revision=74927
2007-03-24 01:01:57 +00:00
Konstantin Triger 9f00e7cd30 * ClientTargetSection.cs: refactoring.
* ClientTargetCollection.cs: create ClientTarget with null parameters,
	refactoring.

svn path=/trunk/mcs/; revision=71127
2007-01-16 12:36:20 +00:00
Yoni Klain 7a6090166e added a NotWorking category attribute for tests that pass on .NET and fail on mono.
svn path=/trunk/mcs/; revision=67260
2006-11-02 09:11:11 +00:00
Atsushi Eno b49b89fafe 2006-06-26 Atsushi Enomoto <[email protected]>
* NullableStringValidator.cs : new internal class that is almost
	  identical to StringValidator but allows null value.
	* PropertyHelper.cs : use new NullableStringValidator.
	* NamespaceCollection.cs : in NamespaceInfo "" is not allowed.

	* NullableStringValidatorTest.cs : new aggregated tests for
	  properties that use PropertyHelper.EmptyStringValidator.

	* System.Web.dll.sources : added NullableStringValidator.cs.
	* System.Web_test.dll.sources : NullableStringValidatorTest.cs.


svn path=/trunk/mcs/; revision=62052
2006-06-26 04:22:29 +00:00
Chris Toshok d3da2c39b8 2006-03-08 Chris Toshok <[email protected]>
* SiteMapSectionTest.cs: test defaults.


svn path=/trunk/mcs/; revision=57703
2006-03-08 17:29:22 +00:00
Chris Toshok 91554ef0af new tests
svn path=/trunk/mcs/; revision=56313
2006-01-31 07:01:20 +00:00
Chris Toshok 358164657b 2005-12-06 Chris Toshok <[email protected]>
* AuthorizationRuleCollectionTest.cs (GetElementKey): new test.

	* AuthorizationRuleTest.cs (PostDeserialize): PostDeserialize
	doesn't return a value.


svn path=/trunk/mcs/; revision=54005
2005-12-06 20:39:31 +00:00
Chris Toshok f0f5d4bfde 2005-12-05 Chris Toshok <[email protected]>
* ClientTargetTest.cs: new tests.

	* AssemblyCollectionTest.cs: new tests.

	* CustomErrorCollectionTest.cs: new tests.

	* AuthorizationRuleCollectionTest.cs: new tests.

	* CodeSubDirectoryTest.cs: new tests.


svn path=/trunk/mcs/; revision=53955
2005-12-05 22:54:20 +00:00
Chris Toshok 2651cd506c 2005-12-02 Chris Toshok <[email protected]>
* ProfilePropertySettingsTest.cs: new tests.

	* GlobalizationSectionTest.cs: add PostDeserialize test.

	* AuthorizationRuleTest.cs: add PostDeserialize test.


svn path=/trunk/mcs/; revision=53873
2005-12-03 02:07:31 +00:00
Chris Toshok b038bbb183 2005-12-01 Chris Toshok <[email protected]>
* GlobalizationSectionTest.cs: Add a test for PreSerialize.


svn path=/trunk/mcs/; revision=53811
2005-12-02 00:28:43 +00:00
Chris Toshok 598ad5e65f make one test use deny instead of allow.
svn path=/trunk/mcs/; revision=53805
2005-12-01 23:07:32 +00:00
Chris Toshok 314390faf3 2005-12-01 Chris Toshok <[email protected]>
* AuthorizationRuleTest.cs: Add a test for
	Preserialize/SerializeElement.


svn path=/trunk/mcs/; revision=53804
2005-12-01 23:03:40 +00:00
Chris Toshok 76962db715 2005-11-23 Chris Toshok <[email protected]>
* MachineKeyValidationConverterTest.cs: new test.


svn path=/trunk/mcs/; revision=53426
2005-11-24 03:07:20 +00:00
Chris Toshok b28e1709ae 2005-11-18 Chris Toshok <[email protected]>
* GlobalizationSectionTest.cs, HostingEnvironmentSectionTest.cs,
	CacheSectionTest.cs, CustomErrorsSectionTest.cs,
	HealthMonitoringSectionTest.cs, CompilationSectionTest.cs,
	DeploymentSectionTest.cs, ClientTargetSectionTest.cs: new tests.


svn path=/trunk/mcs/; revision=53257
2005-11-18 23:28:52 +00:00
Chris Toshok 30cbeff9fd 2005-11-14 Chris Toshok <[email protected]>
* AnonymousIdentificationSectionTest.cs: remove MS stacktrace
	comment.

	* BuildProviderTest.cs: new tests.

	* AuthorizationRuleTest.cs: new tests.

	* AuthorizationSectionTest.cs: new tests.

	* AuthenticationSectionTest.cs: new tests.

	* BufferModeSettingsTest.cs: new tests.


svn path=/trunk/mcs/; revision=53036
2005-11-15 04:44:33 +00:00
Chris Toshok f94334c621 2005-11-13 Chris Toshok <[email protected]>
* AssemblyInfoTest.cs: programmatic property access tests.

	* AnonymousIdentificationSectionTest.cs: same.


svn path=/trunk/mcs/; revision=52998
2005-11-14 01:46:21 +00:00
Sebastien Pouliot 7eef0f40f0 2005-09-02 Sebastien Pouliot <[email protected]>
* HttpCapabilitiesBaseCas.cs: New. CAS unit tests for 
	HttpCapabilitiesBase class.

svn path=/trunk/mcs/; revision=49354
2005-09-02 15:47:17 +00:00