* AuthorizationRule.cs (CheckUser): handle * and ?, and use
String.Compare instead of ==.
(CheckVerb): use String.Compare instead of ==.
* AuthorizationSection.cs (IsValidUser): return false for a null
user.
svn path=/trunk/mcs/; revision=56052
* WebConfigurationManager.cs: implement a IConfigurationSystem for
use with WebConfigurationManager.
(GetSection): try to load the section
using GetWebApplicationSection before calling into
ConfigurationManager.GetSection.
(GetWebApplicationConfiguration): move common code to here.
(GetWebApplicationSection): use GetWebApplicationConfiguration.
(AppSettings): implement.
* WebConfigurationHost.cs (GetWebConfigFileName): add
"Web.Config", and move to an array/loop implementation. maybe we
should scan the directory and check ToLower() instead of
explicitly enumerating?
svn path=/trunk/mcs/; revision=55650
* PagesSection.cs (.cctor): fix the default value for the
enableSessionState attribute - it's not a bool, but a
PagesEnableSessionState enum.
svn path=/trunk/mcs/; revision=55337
* ExpressionBuilderCollection.cs (.cctor): no need to create a
collection property here. we're already in the collection.
svn path=/trunk/mcs/; revision=55249
* MachineKeySection.cs: bring over some more internal methods from
MachineKeyConfig, and call Set{Decryption,Validation}Key from
their respective property setters.
svn path=/trunk/mcs/; revision=55054
* AuthorizationSection.cs (IsValidUser): add analogous method from
AuthorizationConfig.cs.
* AuthorizationRule.cs: add predicates for Verb, User, and Role
analogous to what existed in AuthorizationConfig.cs.
svn path=/trunk/mcs/; revision=55037
* WebConfigurationManager.cs (OpenMachineConfiguration): just call
ConfigurationManager.OpenMachineConfiguration.
(OpenWebConfiguration): remove the "IntPtr userToken" version and
add a "string userName" version to clean up corcompare output.
Modify all the overloads to pass null instead of IntPtr.Zero.
(GetWebApplicationSection): if we're not running in a web
application, use the machine configuration.
svn path=/trunk/mcs/; revision=54213
* CodeSubDirectory.cs (DirectoryName): don't use an private field,
but base[directoyNameProp].
* AuthorizationRuleCollection.cs (Add): use BaseAdd (rule, false),
so we can insert duplicates.
(GetKey): nuke.
(GetElementKey): MS for some reason just uses the action for the
key, ToString()'ed.
(Remove): pass the correct key.
* ProfileGroupSettings.cs (GetHashCode): implement.
* GlobalizationSection.cs (GetEncoding): for the utf-8 case, just
use Encoding.UTF8.
* AssemblyCollection.cs (Add): use BaseAdd (info, false) so we can
insert duplicates.
* CacheSection.cs (.cctor): make privateByteLimit's default 0L so
we don't get a invalid cast exception later on.
* AuthorizationRule.cs (VerifyData): split out the verification
foo from PreSerialize.
(PostDeserialize): so we can call it from here.
(PreSerialize): and here.
svn path=/trunk/mcs/; revision=54006
* AuthorizationRuleCollection.cs (GetKey): split out the logic for
creating a key from a rule here.
(GetElementKey): use it here.
(Remove): and here.
svn path=/trunk/mcs/; revision=53957
* CustomError.cs: add an internal argument-less ctor for use by
the collection.
* CustomErrorCollection.cs: implement all the MonoTODO's.
svn path=/trunk/mcs/; revision=53908
* GlobalizationSection.cs (VerifyData): split out the stuff that
used to live in PreSerialize here.
(PreSerialize): call VerifyData here.
(PostDeserialize): and here.
svn path=/trunk/mcs/; revision=53875
* AuthorizationRule.cs (..ctor): provide default values for
roles/users/verbs here. Not sure if we should do this in the ctor
or if the System.Configuration infrastructure should.. time will
tell.
(PreSerialize): throw if Roles.Count and Users.Count == 0.
(SerializeElement): write out the element here. don't chain up to
the base class since that has differing behavior than what we
want.
svn path=/trunk/mcs/; revision=53806
* CompilerCollection.cs: ugly hack to fix the
2.0-without-config-2.0 case. wrap this file in #if
CONFIGURATION_2_0 as well as #if NET_2_0.
* Compiler.cs: same.
svn path=/trunk/mcs/; revision=53738
* GlobalizationSection.cs (GetEncoding): if the encoding name is
null, default to utf-8 before we hit the try block, so we don't
throw and generate a spurious warning.
* SessionStateSection.cs: The Cookieless handling needs a custom
parser, it appears, as the converter is a StringConverter, not a
GenericEnumConverter.
(ParseCookieMode): the parser.
svn path=/trunk/mcs/; revision=53602
* HttpHandlerAction.cs: add some c&p code from the 1.1 config
stuff to look for matching handlers.
(..ctor): add parameterless ctor.
* HttpHandlerActionCollection.cs: clean up formatting.
(CreateNewElement): call the parameter-less ctor for
HttpHandlerAction.
* HttpHandlersSection.cs (..ctor): add a ConfigurationProperty for
the default collection.
(get_Handlers): implement.
(LocateHandler): copy over (and massage) some 1.1 config code.
* MachineKeySection.cs: move some code over from the 1.1 config
code to deal with autogeneration of keys, as well as converting
from the string rep to the byte[] rep.
svn path=/trunk/mcs/; revision=53577
* HttpModuleActionCollection.cs (CreateNewElement): use the new
HttpModuleAction ctor.
* HttpModuleAction.cs: add internal ctor with no parameters, for
use in HttpModuleActionCollection.
svn path=/trunk/mcs/; revision=53576
* GlobalizationSection.cs (..cctor): the encoding
ConfigurationProperties are of type "string", even though the
properties themselves are of type Encoding. we do conversions
manually in the setter/getters. gross. Add code (mostly c&p +
massaged from GlobalizationConfigurationHandler) for this and also
to handle the culture gettes.
svn path=/trunk/mcs/; revision=53575
* AuthorizationRuleCollection.cs (GetElementKey): implement this.
* ProfilePropertyNameValidator.cs: make this internal, and add a
blurb about how MS doesn't do the testing you'd expect them to.
svn path=/trunk/mcs/; revision=53515
* AssemblyInfo.cs: move this here from System.Web.Configuration,
and fix up the properties.
* SystemWebSectionGroup.cs: enable most of the sections (2
remaining to be enabled.)
svn path=/trunk/mcs/; revision=53468
* MachineKeyValidationConverter.cs: new converter (and a pretty
silly one, considering all it seems to do is convert "TripleDES"
to "3DES").
* HostingEnvironmentSection.cs (.cctor): use
PositiveTimeSpanValidator like MS does.
svn path=/trunk/mcs/; revision=53425
* SystemWebSectionGroup.cs: enable a whole slew of properties.
* RegexWorker.cs: stub this out.
* HttpCapabilitiesBase.cs: remove GetClrVersions since it's in one
of the other partial files.
* CompilationSection.cs: fix this up.
* PagesSection.cs: fix some types and add a comment to
DeserializeSection.
* CompilerCollection.cs (Add): new internal method.
* ProvidersHelper.cs: put the using System.Configuration.Provider
inside the NET_2_0 block.
* CacheSection.cs: add validators.
svn path=/trunk/mcs/; revision=53259
* BufferModeSettings.cs: add validators/converters to the
programmatic property list.
* BuildProvider.cs: add validators/converters to the programmatic
property list, and add an internal ctor with no args.
* Compiler.cs: wrap the code i hacked from the 1.1 stuff with a
#region.
* BuildProviderCollection.cs (CreateNewElement): use the internal
BuildProvider ctor to get around validation.
* AssemblyCollection.cs: same.
svn path=/trunk/mcs/; revision=53037
* AnonymousIdentificationSection.cs: rework this class a bit to
fit in with the rest of S.W.C. Add validators to the
ConfigurationProperty ctor calls, a pattern which will need to be
replicated across the entire assembly, it appears (uggggh).
svn path=/trunk/mcs/; revision=52996