1 2007-06-13 Atsushi Enomoto <atsushi@ximian.com>
3 * ConfigurationSectionGroup.cs
4 Configuration.cs : ConfigurationSectionGroup must be initialized
5 at least when being added to a collection.
7 2007-06-12 Vladimir Krasnov <vladimirk@mainsoft.com>
9 * ConfigurationElement.cs: refactored GetKeyProperties and
10 GetDefaultCollection methods, map should not be used here, Properties
11 will do instead. Refactored ElementMap class
12 * ConfigurationElementCollection.cs: fixed InitFromProperty, GetMap()
13 should not be called here
14 * ElementInformation.cs: fixed Properties, moved to ctor to be thread
16 * PropertyInformation.cs: members assigned readonly modifier
18 2007-05-30 Marek Habersack <mhabersack@novell.com>
20 * SectionGroupInfo.cs: <location> elements are case-insensitive
21 and the same 'path' attribute may be used only once.
23 * ConfigurationLocationCollection.cs: Find should be
24 case-insensitive for all targets, not just TARGET_JVM.
26 2007-05-17 Igor Zelmanovich <igorz@mainsoft.com>
28 * Configuration.cs: FilePath implemented according to MSDN:
29 If the value for this FilePath property represents a merged view and
30 no actual file exists for the application, the path to the parent
31 configuration file is returned.
33 2007-05-15 Igor Zelmanovich <igorz@mainsoft.com>
36 * ConfigurationLocation.cs:
37 implemented EvaluationContext property.
39 2007-05-15 Igor Zelmanovich <igorz@mainsoft.com>
41 * ConfigurationLocationCollection.cs: for TARGET_JVM only:
42 location path is case-insensitive.
44 2007-05-15 Marek Habersack <mhabersack@novell.com>
46 * ConfigurationElement.cs: added value validation on
47 deserialization from the config file.
49 2007-05-14 Igor Zelmanovich <igorz@mainsoft.com>
51 * ConfigurationElement.cs: when attribute value cannot be parsed,
52 ConfigurationErrorException is thrown.
54 2007-05-09 Igor Zelmanovich <igorz@mainsoft.com>
56 * ConfigurationManager.cs:
57 added MonoLimitation attribute for TARGATE_JVM.
59 2007-05-08 Igor Zelmanovich <igorz@mainsoft.com>
61 * ConnectionStringSettingsCollection.cs: removed 'new' keyword, cause
62 property doesn't hide any inherit property.
64 2007-04-24 Atsushi Enomoto <atsushi@ximian.com>
66 * InternalConfigurationHost.cs : machine configuration covers all
67 ConfigurationAllowDefinition values.
69 2007-04-17 Atsushi Enomoto <atsushi@ximian.com>
71 * ConfigurationSectionCollection.cs : GetEnumerator() should return
72 IEnumerator for the items, not keys.
73 * ConfigurationProperty.cs : more helpful type mismatch message.
75 2007-04-16 Marek Habersack <mhabersack@novell.com>
77 * SectionGroupInfo.cs: another (and final, hopefully) fix for bug
78 #81321 and several other related issues that were discovered by
79 the way. Thanks to Atsushi for help with XmlReader!
81 2007-04-15 Marek Habersack <mhabersack@novell.com>
83 * SectionGroupInfo.cs: another incarnation of the fix for bug
86 2007-04-12 Marek Habersack <mhabersack@novell.com>
88 * SectionGroupInfo.cs: a better fix for #81321
90 2007-04-10 Marek Habersack <mhabersack@novell.com>
92 * SectionGroupInfo.cs: make sure empty sections with the
93 short-circuit tag ends (<section/>) don't make the process loop
94 endlessly. Fixes bug #81321.
96 2007-03-22 Konstantin Triger <kostat@mainsoft.com>
98 * ConfigInfo.cs: should be able instantiate types with private ctors.
100 2007-03-19 Vladimir Krasnov <vladimirk@mainsoft.com>
102 * ConfigurationSectionCollection.cs,
103 * ConfigurationSectionGroupCollection.cs,
104 * PropertyInformationCollection.cs,
105 * SectionGroupInfo.cs: used StringComparer.Ordinal instead of
108 2007-03-15 Vladimir Krasnov <vladimirk@mainsoft.com>
110 * ConfigurationSectionCollection.cs,
111 * ConfigurationSectionGroupCollection.cs,
112 * PropertyInformationCollection.cs,
113 * SectionGroupInfo.cs: these collections should be based on case
114 insensitive NameObjectCollectionBase
115 * added OrdinalComparer.cs for use in NameObjectCollectionBase
117 2007-02-07 Atsushi Enomoto <atsushi@ximian.com>
119 * SectionInfo.cs : don't stop at restartOnExternalChanges attribute.
121 2007-01-16 Konstantin Triger <kostat@mainsoft.com>
123 * ConfigurationElement.cs: ignore properties with null or empty name.
125 2007-01-16 Konstantin Triger <kostat@mainsoft.com>
127 * ConfigurationElement.cs: Try to deserilalize an unrecognized element by
128 current element, and only if failed delegate to default collection.
130 2006-12-27 Vladimir Krasnov <vladimirk@mainsoft.com>
132 * ConfigurationElementCollection.cs: fixed BaseAdd, looking for
133 identical element when collection type is not alternate
135 2006-12-27 Vladimir Krasnov <vladimirk@mainsoft.com>
137 * ConnectionStringSettingsCollection.cs: made connection string key
140 2006-12-27 Atsushi Enomoto <atsushi@ximian.com>
142 * ConfigurationElementCollection.cs : fixed BaseAdd() with
143 throwIfExists to not raise an error for identical element
144 but for different element which shares the same key. Fix by
147 2006-12-21 Vladimir Krasnov <vladimirk@mainsoft.com>
149 * ConfigurationProperty.cs: fixed DefaultValue of type Enum
151 2006-12-10 Konstantin Triger <kostat@mainsoft.com>
153 * ConfigurationElement.cs: Delegate parameter checking and default
154 assigning to Configuratin property.
155 * ConfigurationProperty.cs:
156 Ensure the TypeConvert and Validator always exist.
157 Ensure the primitive types are properly initialized.
159 2006-12-09 Vladimir Krasnov <vladimirk@mainsoft.com>
161 * ConfigurationElementCollection.cs
162 * ConfigurationRemoveElement.cs: fixed key for <remove> element in
163 ConfigurationRemoveElement class
165 2006-11-28 Marek Habersack <grendello@gmail.com>
167 * SectionGroupInfo.cs: Implement merging of section groups with
168 the same names and parents.
170 * ConfigInfo.cs: Add an abstract method for merging sections.
172 * SectionInfo.cs: Add implementation of an abstract base method
174 2006-08-23 Konstantin Triger <kostat@mainsoft.com>
176 * SectionInfo.cs: refactoring - remove unneeded bool? usage.
178 2006-11-05 Vladimir Krasnov <vladimirk@mainsoft.com>
180 * added: ConfigurationRemoveElement.cs, common element for <remove>
181 * ConnectionStringSettingsCollection.cs: reverted last fix for
183 * ConfigurationElementCollection.cs: fixed the way that
184 OnDeserializeUnrecognizedElement method handles <remove> element
186 2006-11-02 Vladimir Krasnov <vladimirk@mainsoft.com>
188 * ConfigurationElement.cs: typo in DefaultCollectionProperty
191 2006-10-30 Joel Reed <joel.reed@ddiworld.com>
193 * NameValueConfigurationCollection.cs: Implement the Properties
196 2006-08-23 Konstantin Triger <kostat@mainsoft.com>
198 * ConfigurationLocation.cs: do not read root element, correctly close stream.
199 * Configuration.cs: use ReadData for nested content to throw if location
200 elements are encounterd.
201 In constructor taking parent Configurqation: do not call Init and so avoid
202 rereading config file.
204 2006-09-05 Vladimir Krasnov <vladimirk@mainsoft.com>
206 * NameValueConfigurationElement.cs: fixed functionality
207 * ConfigurationElementCollection.cs,
208 ConnectionStringSettingsCollection.cs: fixed <remove> element in
209 connectionStrings section
211 2006-08-23 Konstantin Triger <kostat@mainsoft.com>
213 * ConfigurationSection.cs: for net 1.1 SectionHandlers: return null in case
214 RawXml is null, as net 1.1 does.
216 2006-08-17 Vladimir Krasnov <vladimirk@mainsoft.com>
218 * ConfigurationFileMap.cs: added TARGET_JVM on not supported members
221 2006-07-07 Atsushi Enomoto <atsushi@ximian.com>
223 * ConfigurationManager.cs : OpenExeConfiguration(null) should still
224 work. This is required for embedded scenario.
226 2006-06-10 Atsushi Enomoto <atsushi@ximian.com>
228 * SectionGroupInfo.cs : skip <dllmap> in configuration.
230 2006-05-14 Atsushi Enomoto <atsushi@ximian.com>
232 * ConfigurationManager.cs: since ConfigurationSystem is different
233 for web.config, cast from ConfigurationSection to runtime object
234 should be done at GetSection().
235 This really fixed bug #78372.
237 2006-05-12 Atsushi Enomoto <atsushi@ximian.com>
239 * Configuration.cs : configPath is null for machine.config, so don't
240 use it. Use streamName instead. To my understanding, this should
243 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
245 * ConnectionStringSettings.cs : it seems that "name" property
246 could be null i.e. there is no StringValidator.
247 * StringValidator.cs : allow null.
249 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
251 * ConfigurationManager.cs : use GetCallingAssembly() instead of
252 GetEntryAssembly() which possibly returns null (e.g. nunit) in
253 OpenExeConfiguration(). Several nunit test failures are gone.
255 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
257 * ConnectionStringSettings.cs : oops, this API fix broke standalone
260 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
262 * ConfigurationElement.cs,
263 ConfigurationErrorsException.cs,
264 ConfigurationUserLevel.cs,
265 ConfigurationPropertyOptions.cs,
266 ConnectionStringSettings.cs : assorted minor corcompare fixes.
268 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
270 * Configuration.cs : some kind of refactoring is absolutely needed
271 here. Reuse RawXml from parentSection when data was not available
272 on current section. This should fix bug #78353.
274 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
276 * ConfigurationElement.cs,
278 in some cases RawXml was set null string, so skip such cases.
279 * Configuration.cs : support IConfigurationSectionHandler here.
280 * ConfigurationManager.cs : GetSection() now returns name value
281 collection, not a section.
282 * ConfigurationSection.cs : added SectionHandler for
283 IConfigurationSectionHandler support, and use its Create() in
285 * ClientConfigurationSystem.cs :
286 use GetRuntimeObject() in GetSection(). Thus now
287 ConfigurationManager.GetSection() returns a runtime object.
290 2006-04-28 Atsushi Enomoto <atsushi@ximian.com>
292 * SectionGroupInfo.cs :
293 sections which are defined in sectionGroups could be directly
294 referenced, so search corresponding section recursively.
295 * DefaultSection.cs : It does not reject unrecognized contents.
297 2006-04-26 Chris Toshok <toshok@ximian.com>
299 * SectionInformation.cs (.ctor): add MonoTODO about the default
300 value for require_permission.
301 (RequirePermission): implement the getter/setter for this so
302 Atsushi's previous commit doesn't break everything :)
304 2006-04-26 Atsushi Enomoto <atsushi@ximian.com>
307 SectionInfo.cs : added support for "requirePermission" attribute
308 in "section" element. This fixes bug #77957.
310 2006-04-25 Chris Toshok <toshok@ximian.com>
312 * ConfigurationElementCollection.cs (Reset): it makes no sense to
313 pass the typename to CreateNewElementInternal. the argument is
314 the elementname. pass null instead.
317 2006-02-01 Atsushi Enomoto <atsushi@ximian.com>
319 * ConfigurationElement.cs : ListErrors() and SetPropertyValue()
321 * ConfigurationSection.cs : the .ctor() is protected.
322 * ConfigurationElementCollection.cs : CollectionType is public.
323 Count and BaseAdd() are not virtual.
324 * ConfigurationPropertyCollection.cs : Count is not virtual.
326 2006-02-01 Chris Toshok <toshok@ximian.com>
328 * ConfigurationElement.cs: revert the patch that stores and writes
329 out xmlns attributes for all elements.
331 * ClientConfigurationSystem.cs: SupportsUserConfig == false.
333 * AppSettingsSection.cs (GetRuntimeObject): call col.SetReadOnly()
334 only if SupportsUserConfig != true.
336 * ConfigurationManager.cs (ConfigurationSystem): add a property
337 like ConfigurationFactory, and use it instead of the private field
340 2006-01-26 Chris Toshok <toshok@ximian.com>
342 * SectionGroupInfo.cs (ReadContent): handle "location" (seemingly)
345 * InternalConfigurationRoot.cs: misc logical additions. still
348 * ConfigurationManager.cs (OpenExeConfigurationInternal): throw an
349 exception if both calling_assembly and exePath are null. Allow
350 the exePath to be a path to a config file as well, checking to see
351 if it ends in .config before appending.
352 (OpenExeConfiguration): stop blindly passing
353 Assembly.GetCallingAssembly. I'm assuming this will likely break
354 .dll.config usage. need to investigate that (and write more unit
356 (GetSection): call configSystem.GetSection.
357 (RefreshSection): call configSystem.RefreshSection.
358 (ChangeConfigurationSystem): modeled after the
359 ConfigurationSettings System.Web hack - allow
360 WebConfigurationManager to replace the current
361 IInternalConfigSystem.
363 * InternalConfigurationHost.cs (InternalConfigurationHost): make
364 abstract, and remove all the NotImplenmentedException's.
366 * ConfigurationElement.cs (DeserializeElement): store off the xml
367 namespace if there is one.
368 (SerializeElement): write out the namespace if there was one.
370 * ClientConfigurationSystem.cs: new class, based on some stack
371 traces I've seen in tests. Kinda (well, not *kinda*..) hacky.
373 * Configuration.cs (NamespaceDeclared): implement.
374 (Load): don't swallow all exceptions, just the ones raised when we
375 open the stream for reading.
376 (ReadConfigFile): handle xmlns.
378 2006-01-25 Chris Toshok <toshok@ximian.com>
380 * ConfigInfo.cs (ThrowException): throw a
381 ConfigurationErrorsException, not a ConfigurationException.
383 * SectionGroupInfo.cs (ReadContent): throw an exception
384 unconditionally if we see a <location>. they aren't valid in
387 2006-01-25 Chris Toshok <toshok@ximian.com>
389 * KeyValueInternalCollection.cs: don't use a nested collection,
390 just defer to our base class. This fixes usage of
391 ConfigurationManager.AppSettings.Keys.
393 2006-01-13 Chris Toshok <toshok@ximian.com>
395 * AppSettingsSection.cs (GetRuntimeObject): only access
396 Settings[key] once per iteration.
398 2006-01-09 Chris Toshok <toshok@ximian.com>
400 * ConfigurationManager.cs (AppSettings): just return
401 AppSettingsSection.GetRuntimeObject() here.
403 * AppSettingsSection.cs: fix the "file" property to match dumper
405 (GetRuntimeObject): this returns a KeyValueInternalCollection in
408 2006-01-09 Chris Toshok <toshok@ximian.com>
410 * ElementInformation.cs (Validator): if propertyInfo == null,
411 return a DefaultValidator instance.
413 2006-01-09 Chris Toshok <toshok@ximian.com>
415 * AppSettingsSection.cs (.cctor): specify null for
418 * ProtectedProviderSettings.cs (.cctor): specify null for
421 2006-01-03 Chris Toshok <toshok@ximian.com>
423 * Configuration.cs (SaveAs): open with FileMode.OpenOrCreate so we
424 can save to a new file.
425 (CreateSection): don't bother to set the section information's
426 Name here. we'll do it in SectionInfo.CreateInstance.
428 * ProtectedConfiguration.cs (Section): new static property so we
429 can remove all the GetSection calls.
430 (GetProvider): load a named provider, optionally throwing an
431 exception if it's not found.
433 * InternalConfigurationHost.cs (EncryptSection, DecryptSection):
434 make these private interface implementations, and call
435 protectedSection.{EncryptSection,DecryptSection}.
437 * ProtectedConfigurationSection.cs (EncryptSection,
438 DecryptSection): add these two calls. They really shouldn't be
439 here, but I saw them in an MS stack trace and thought "why not?".
441 * ConfigurationSection.cs (SectionInformation): don't set
442 attributes here, that's done in SectionInfo.CreateInstance.
443 (DeserializeSection): shoehorn in the decryption stuff here. It
444 doesn't belong here, and I've added a MonoTODO about it. It
445 should live someplace like SectionInfo.ReadData (which would make
446 it similar to the encryption stuff in .WriteData).
448 * SectionInformation.cs (IsProtected): remove the special flag,
449 just return true if we have a non-null protection_provider.
450 (ProtectSection): do nothing but try to instantiate the named
452 (UnprotectSection): null out protection_provider.
454 * DpapiProtectedConfigurationProvider.cs: move the
455 NotSupportedExceptions to Decrypt/Encrypt so we don't bomb out
456 when parsing our machine.config file.
458 * RsaProtectedConfigurationProvider.cs: initial implementation.
459 much is missing (OAEP support, key importing, adding/deleting
460 keys), but it can be used.
462 2006-01-02 Chris Toshok <toshok@ximian.com>
464 * RsaProtectedConfigurationProvider.cs: implement the
465 CspProviderName and UseOAEP properties..
467 2006-01-02 Chris Toshok <toshok@ximian.com>
469 * ProtectedConfigurationSection.cs: flesh this out (and add logic
470 to instantiate providers, based on some of the standalone test
471 exception stack traces.)
473 * ProtectedConfiguration.cs: new implementation.
475 * ProtectedConfigurationProviderCollection.cs: new
478 * ProtectedProviderSettings.cs: new implementation.
480 * ProtectedConfigurationProvider.cs: trim the superclass's name.
482 * RsaProtectedConfigurationProvider.cs: stubbed, unimplemented.
484 * DpapiProtectedConfigurationProvider.cs: add stubbed
485 implementation that throws NotSupportedException telling people
486 they should be using RsaProtectedConfigurationProvider.
488 2006-01-02 Chris Toshok <toshok@ximian.com>
490 * DefaultSection.cs (Properties): implement.
492 * IgnoreSection.cs: move from lazily creating the properties
493 collection to sharing a single one across all instances.
495 * ConfigurationLockCollection.cs (IsReadOnly): fix compiler warning.
497 * ConfigurationElementCollection.cs (BaseAdd) remove logic to
498 remove an old matching element.
499 (BaseGetKey): throw an exception if @index is out of range.
501 * SectionInformation.cs (SectionName): just return name, like Name
502 does.. redundant, but it matches tests.
503 (GetRawXml): implement.
504 (SetRawXml): implement.
506 * ConfigurationSection.cs (SectionInformation): fill in
507 sectionInformation.Type before returning.
508 (DeserializeSection): save off the raw xml to our
511 * ConfigurationElement.cs (LockItem): implement.
512 (DeserializeElement): add support for the "lockItem" attribute.
514 2005-12-16 Chris Toshok <toshok@ximian.com>
516 * ConfigurationLockCollection.cs (Add): only add the name if it's
518 (IsReadOnly): always return false for the time being, in the
519 non-exceptional case.
521 2005-12-15 Chris Toshok <toshok@ximian.com>
523 * ConfigurationElement.cs (LockAllAttributesExcept): implement.
524 (LockAllElementsExcept): implement.
525 (DeserializeElement): handle the built-in attributes (lock* for
528 2005-12-15 Chris Toshok <toshok@ximian.com>
530 * ConfigurationLockCollection.cs (..ctor): don't call Populate.
532 (CheckName): make sure the passes in name is valid for this type
534 (Add): call CheckName, and set is_modified to true.
535 (Clear): set is_modified.
536 (IsReadOnly): add plausable implementation, including exception in
537 the case where the name isn't found.
538 (Remove): set is_modified.
539 (SetFromList): implement.
540 (get_AttributeList): implement.
541 (set_IsModified): add internal setter so we can clear the modified
544 2005-12-12 Chris Toshok <toshok@ximian.com>
546 * AppSettingsSection.cs (DeserializeElement): provide rather naive
547 version of the file="" handling. It's enough to make our tests
550 2005-12-11 Chris Toshok <toshok@ximian.com>
552 * ConnectionStringsSection.cs (..cctor): use "" instead of null
553 for the name of the default collection.
555 * AppSettingsSection.cs (..cctor): create a property for the
557 (DeserializeElement): call base.DeserializeElement.
558 (File): index off the property, not the name.
559 (Settings): don't use an private variable here, use
562 * ConfigurationManager.cs (GetSection): GetEntryAssembly returns
563 null for new app domains. so deal with this by calling
564 GetCallingAssembly if it's null. This is probably still wrong but
565 it doesn't NRE in xsp2.
566 (AppSettings): remove MonoTODO.
568 * KeyValueConfigurationElement.cs (..ctor): new method, create the
569 ConfigurationProperty's and the collection here.
570 (.ctor): add internal arg-less ctor.
571 (Key): use keyProp instead of "key".
572 (Value): use vlaueProp instead of "value".
573 (Properties): return our class's properties.
575 * KeyValueConfigurationCollection.cs (CreateNewElement): use the
577 (GetElementKey): re-enable the BaseIndexOf test.
579 2005-12-02 Chris Toshok <toshok@ximian.com>
581 * Configuration.cs (Save): call WriteStartDocument.
583 * ConnectionStringSettingsCollection.cs (CreateNewElement): use
584 parameter-less ctor to keep from generating exceptions when using
587 2005-12-02 Chris Toshok <toshok@ximian.com>
589 * ConnectionStringSettings.cs: tabify, fix default values, and add
590 a string validator for "name".
592 2005-12-02 Chris Toshok <toshok@ximian.com>
594 * CommaDelimitedStringCollectionConverter.cs (ConvertTo): change
595 the type check away from an exact check for
596 CommaDelimitedStringCollection to an assignable test from
597 StringCollection. This is due to the fact that AuthorizationRule
598 doesn't create CommaDelimitedStringCollections, for some odd
599 reason. It uses StringCollections.
601 * PropertyInformation.cs (Value): remove the case for
602 IsDefaultCollection - it's not necessary, as the property is an
605 * ConnectionStringSettings.cs: fix formatting and remove some
608 * ConnectionStringSettingsCollection.cs: same.
610 * ConnectionStringsSection.cs: same.
612 * ConfigurationElement.cs (SerializeToXmlElement): don't write the
613 enclosing start/end elements if the elementName is null or "".
614 this fixes the case for the DefaultCollections (at least in the
615 case of connectionStrings).
617 * IgnoreSection.cs (Properties): remove the MonoTODO.
619 * SectionInfo.cs (WriteData): remove the "<!-- dd -->" output.
621 2005-11-28 Chris Toshok <toshok@ximian.com>
623 * ProviderSettings.cs: use ConfigurationProperty's to implement
626 2005-11-24 Chris Toshok <toshok@ximian.com>
628 * ConfigurationProperty.cs (Validate): add internal method.
630 2005-11-24 Chris Toshok <toshok@ximian.com>
632 * ConfigurationElement.cs (ElementProperty): make this protected
633 internal virtual instead of public.
634 (SetPropertyValue): add a validator call and a blurb about the
635 code based on information gleaned from tests.
636 (set_Item (string)): call SetPropertyValue in the setter.
638 2005-11-14 Chris Toshok <toshok@ximian.com>
640 * CommaDelimitedStringCollection.cs: reformat things a bit, and
641 flag ToString() as override.
643 * DefaultSection.cs: new stubbed out implementation.
645 * CommaDelimitedStringCollectionConverter.cs: new implementation.
647 2005-11-10 Chris Toshok <toshok@ximian.com>
649 * AppSettingsSection.cs (DeserializeElement): stop explicitly
650 calling Settings.DeserializeElement, as the DefaultCollection
653 * ConfigurationElement.cs (DeserializeElement): rework the loop
654 here so that we actually loop over all the content elements.
656 2005-11-09 Chris Toshok <toshok@ximian.com>
658 * ConfigurationElement.cs: Add support for DefaultCollection
661 * PropertyInformation.cs (PropertyInformation.Value): add case for
664 * SectionGroupInfo.cs (SectionGroupInfo.ReadConfig): when we read
665 a "type" attribute, make sure the cached System.Type is cleared.
667 2005-10-25 Chris Toshok <toshok@ximian.com>
669 * InfiniteTimeSpanConverter.cs: new implementation.
671 * InfiniteIntConverter.cs: new implementation.
673 * GenericEnumConverter.cs: new implementation.
675 * Configuration.cs: we don't need to check with "is" after we use
676 "as".. just check for null-ness.
678 * KeyValueConfigurationCollection.cs: GetElementKey should throw
679 NRE if element == null.
681 * CommaDelimitedStringCollection.cs: raise the correct exceptions
682 in the read only case, and return null from ToString if there are
685 2005-10-25 Chris Toshok <toshok@ximian.com>
687 * PositiveTimeSpanValidatorAttribute.cs: new implementation.
689 * PositiveTimeSpanValidator.cs: new implementation.
691 2005-10-24 Chris Toshok <toshok@ximian.com>
693 * TimeSpanSecondsOrInfiniteConverter.cs: new implementation.
695 * TypeNameConverter.cs: new implementation.
697 * WhiteSpaceTrimStringConverter.cs: new implementation.
699 2005-10-24 Chris Toshok <toshok@ximian.com>
701 * AppSettingsSection.cs (DeserializeElement, SerializeSection):
702 split the behavior based on if File == "". If it is, we do the
703 default. otherwise we throw NIE.
705 * ConnectionStringsSection.cs (DeserializeElement): we shouldn't
706 need this, but we do until the IsDefaultCollection stuff is fixed.
708 * ConfigurationElementCollection.cs
709 (OnDeserializeUnrecognizedElement): for clearElementName, make
710 sure we have no attributes.
712 * ConnectionStringSettingsCollection.cs (get_Properties): for now
713 just chain up to base.Properties.
715 * ConfigurationElement.cs (ReflectProperties): do the default
716 value/property type check in a more robust way, using
719 2005-10-24 Chris Toshok <toshok@ximian.com>
721 * ConfigurationElement.cs: treat
722 ConfigurationProperty.NoDefaultValue the same as null when we're
723 checking the default value's type. this fixes t13 and 14.
725 * ConnectionStringsSection.cs (ConnectionStrings): fix the
726 DefaultValue in the ConfigurationPropertyAttribute.
728 2005-10-24 Chris Toshok <toshok@ximian.com>
730 * KeyValueConfigurationCollection.cs (GetElementKey): sacrifice
731 one test to get another working. Return a valid key even if the
732 element is not in this collection.
733 (get_ThrowOnDuplicate): return false.
735 * ConfigurationElementCollection.cs (BaseAdd): if we're adding an
736 element with the same key, overwrite the old one (remove the old
737 one after inserting the new one). Also, re-enable the throwing of
738 exceptions if ThrowOnDuplicate == true.
740 2005-10-24 Chris Toshok <toshok@ximian.com>
742 * AppSettingsSection.cs (Settings): fix ConfigurationProperty
745 * ProtectedConfigurationSection.cs (Providers): same.
747 2005-10-12 Chris Toshok <toshok@ximian.com>
749 * ConfigurationPermission.cs: flesh out as per tests.
751 2005-10-11 Chris Toshok <toshok@ximian.com>
753 * ConfigurationProperty.cs: don't use null to mean no default
754 value, use NoDefaultValue.
756 2005-10-11 Chris Toshok <toshok@ximian.com>
758 * KeyValueConfigurationCollection.cs (GetElementKey): duh.
759 BaseGet calls GetElementKey, so we were hitting an infinite
760 recursion here. Use BaseIndexOf instead.
762 2005-10-07 Chris Toshok <toshok@ximian.com>
764 * InternalConfigurationHost.cs: some interface work, adding in the
767 * ConfigurationProperty.cs: remove debug spew.
769 * Configuration.cs: add NIE'd NamespaceDeclared property.
771 * ElementInformation.cs: add NIE'd Errors property.
773 * PropertyInformationCollection.cs: add NIE'd GetObjectData().
775 * ConfigurationManager.cs: quite a bit of new work here. Some
776 definie TODO's still though.
778 2005-10-07 Chris Toshok <toshok@ximian.com>
780 * ConfigurationErrorsException.cs (.ctor): for the (string)
781 overload, chain up to the base (string) ctor.
783 2005-10-07 Chris Toshok <toshok@ximian.com>
785 * ConfigurationElement.cs (ElementMap.ReflectProperties): make
786 sure the type of the default value is compatible with that of the
787 property itself, and throw ConfigurationErrorsException if they
788 don't match. Fixes t12.
790 2005-10-07 Chris Toshok <toshok@ximian.com>
792 * ConfigHelper.cs: remove some unused code.
794 * ConfigurationProperty.cs: disambiguate the ctor we chain to.
796 * ConfigurationElement.cs (ElementProperty): implement.
797 (ElementMap.ReflectProperties): make DefaultValidator the default
800 2005-10-06 Chris Toshok <toshok@ximian.com>
802 * KeyValueConfigurationElement.cs: uncomment out some stuff.
803 (Properties): just return base.Properties. Not sure why they
804 override this, as the base class's implementation passes our test.
806 * KeyValueConfigurationCollection.cs (Add): for the keyValue
807 overload, call keyValue.Init as the unit test stack traces
808 indicates that'9s where it's called. For the string,string
809 overload, just call the keyValue overload instead of calling
811 (CreateNewElement): just use the name/value ctor, and specify ""
813 (GetElementKey): this function always returns "" for elements that
814 haven't been added to the collection. Once theyre added, it seems
815 to always return keyValue.Key.
816 (Properties): the unit tests show this returns a 0 length
819 2005-10-05 Chris Toshok <toshok@ximian.com>
821 * ConfigurationPermissionAttribute.cs: stub out.
823 2005-10-05 Chris Toshok <toshok@ximian.com>
825 * TimeSpanMinutesOrInfiniteConverter.cs: fill in the
828 2005-10-05 Chris Toshok <toshok@ximian.com>
830 * TimeSpanSecondsConverter.cs: new implementation.
832 2005-10-05 Chris Toshok <toshok@ximian.com>
834 * TimeSpanMinutesConverter.cs: flesh out implementation.
836 * ConfigurationConverterBase.cs: make all subclasses work with
837 strings only, since that's what seems to manifest itself in the
840 2005-10-05 Chris Toshok <toshok@ximian.com>
842 * ConfigurationLockCollection.cs: add NIE'd AttributeList
845 * ConfigurationConverterBase.cs: add MonoTODO'd CanConvertFrom and
846 CanConvertTo methods.
848 * ConfigurationSectionGroup.cs: add NIE'd IsDeclared property.
850 * ProtectedConfigurationSection.cs: add NIE'd properties.
852 * ConfigurationElementCollection.cs: add MonoTODO'd IsReadOnly
853 and SetReadOnly methods, and have then chain up to the base class.
855 * KeyValueConfigurationCollection.cs: add the class level
856 ConfigurationCollectionAttribute, and add a NIE'ed Properties
859 * ProviderSettingsCollection.cs: add the class level
860 ConfigurationCollectionAttribute, and add a "new" keyword to the
861 this property. Also, nuke the Provider's property.
863 * SectionInformation.cs: add some NEI'd properties.
865 * ConfigurationSection.cs (ResetModified): leave the MonoTODO, but
866 chain up to base class's method instead of throwing NIE.
868 * ConnectionStringSettingsCollection.cs: add the class-level
869 ConfigurationCollectionAttribute, and add the unimplemented
872 * ConfigurationErrorsException.cs: flesh this out, and add a
873 pragma to disable the obsolete warnings from our base class.
875 * ProviderSettings.cs: add unimplemented Properties property.
877 * ConfigurationElement.cs: remove unnecessary
878 EvaluationInformation.
880 * InternalConfigurationRoot.cs: add unimplemented IsDesignTime
883 * ConfigurationProperty.cs: add a missing ctor.
885 * AppSettingsSection.cs: add missing "override" keyword.
887 * ConnectionStringsSection.cs: remove override.
889 * ConfigurationSectionCollection.cs: AllKeys -> Keys, and add
890 unimplemented GetObjectData override.
892 * ConfigurationSectionGroupCollection.cs: same.
894 * ConfigurationCollectionAttribute.cs: add missing CollectionType
897 2005-10-05 Chris Toshok <toshok@ximian.com>
899 * ConfigurationPermission.cs: new implementation.
901 * IgnoreSection.cs: new implementation.
903 2005-10-05 Chris Toshok <toshok@ximian.com>
905 * CommaDelimitedStringCollection.cs: new implementation.
907 2005-10-05 Chris Toshok <toshok@ximian.com>
909 * NameValueConfigurationCollection.cs: new implementation.
911 * NameValueConfigurationElement.cs: new implementation.
913 2005-10-05 Chris Toshok <toshok@ximian.com>
915 * ValidatorCallback.cs: new implementation.
917 * SubclassTypeValidator.cs, SubclassTypeValidatorAttribute.cs: new
920 * CallbackValidator.cs, CallbackValidatorAttribute.cs: new
923 * RegexStringValidator.cs, RegexStringValidatorAttribute.cs: new
926 * LongValidator.cs, LongValidatorAttribute.cs: new implementation.
928 * IntegerValidator.cs, IntegerValidatorAttribute.cs: new
931 * DefaultValidator.cs: new implementation.
933 2005-09-28 Chris Toshok <toshok@ximian.com>
935 * ConfigurationElementCollection.cs: more work on the "<clear />"
936 handling - just skip the element for now. this causes a failure
937 in one test ('<clear hi="bye" />' doesn't throw an exception when
938 it should), but it succeeds for collections that have required
941 * ConnectionStringSettings.cs: providerName isn't a required
944 * AppSettingsSection.cs (.cctor): initialize our "file" Property.
947 (GetRuntimeObject): call the base class method instead of just
950 * ConnectionStringsSection.cs: Add a hacky DeserializeElement
951 method here (that isn't in MS's) for the time being so we actually
952 deserialize our collection.
954 2005-09-28 Chris Toshok <toshok@ximian.com>
956 * KeyValueInternalCollection.cs: found this by way of a stack
957 trace in one of the tests. A NameValueCollection that wraps a
958 KeyValueConfigurationCollection.
960 * Configuration.cs (Init): save off configPath.
961 (EvaluationContext): new, mostly implemented.
962 (GetSectionInstance): use IgnoreSection instead of
964 (Load): don't fail when we can't load a file.
966 * IgnoreSection.cs: replace RuntimeOnlySection with this new
969 * RuntimeOnlySection.cs: nuke.
971 2005-09-27 Chris Toshok <toshok@ximian.com>
973 * TimeSpanMinutesOrInfiniteConverter.cs: this is sealed.
975 2005-09-27 Chris Toshok <toshok@ximian.com>
977 * ConfigurationProperty.cs: add IsDefaultCollection property.
979 2005-09-27 Chris Toshok <toshok@ximian.com>
981 * ConfigurationElementProperty.cs: new file.
983 * ConfigurationLockCollection.cs: new file.
985 * ConfigurationElementCollection.cs
986 (OnDeserializeUnrecognizedElement): make sure we consume the
987 <clear /> element so we don't into an endless loop.
989 * ConfigurationElement.cs: add a bunch of NIE's properties.
991 * ContextInformation.cs: Add NIE'ed IsMachineLevel property.
993 2005-09-23 Chris Toshok <toshok@ximian.com>
995 * AppSettingsSection.cs: fix build and add a couple of TODO'ed
998 2005-09-23 Chris Toshok <toshok@ximian.com>
1000 * ProviderSettings.cs (Unmerge): track change to
1001 ConfigurationElement.Unmerge.
1003 * ConfigurationSection.cs: add functions nuked from
1004 ConfigurationElement here.
1006 * ConfigurationElementCollection.cs: add DebuggerDisplay attribute
1008 (BaseGetAllKeys): returns object[], not string[].
1009 (BaseGetKey): returns object, not string.
1010 (Unmerge): track change to ConfigurationElement.Unmerge signature.
1012 * ConfigurationElement.cs (ConfigurationElement.Unmerge): fix
1013 signature (drop the serializeCollectionKey parameter).
1016 2005-09-23 Chris Toshok <toshok@ximian.com>
1018 * StringValidator.cs: throw ArgumentException instead of
1019 ConfigurationErrorsException.
1021 2005-09-23 Chris Toshok <toshok@ximian.com>
1023 * ConnectionStringsSection.cs: track change to
1024 ConfigurationPropertyOptions.
1026 * ConfigurationPropertyAttribute.cs, ConfigurationProperty.cs,
1027 ProviderSettings.cs: track change to ConfigurationPropertyOptions.
1029 * ConnectionStringSettings.cs: track change to
1030 ConfigurationProprertyOptions, and add some ConfigurationProperty
1033 * ConfigurationPropertyOptions.cs: DefaultCollection ->
1034 IsDefaultCollection, Required -> IsRequired.
1036 2005-09-22 Chris Toshok <toshok@ximian.com>
1038 * PositiveTimeSpanValidator.cs: this lives in
1039 System.Web.Configuration, not System.Configuration.
1041 2005-09-22 Chris Toshok <toshok@ximian.com>
1043 * TimeSpanValidator.cs: change to ArgumentException and alter the
1046 2005-09-22 Chris Toshok <toshok@ximian.com>
1048 * ExeConfigurationFileMap.cs (ctor): init all the strings to "".
1050 2005-07-01 Lluis Sanchez Gual <lluis@novell.com>
1052 * ProviderSettings.cs: Implemented properties using property attributes.
1053 * ConfigurationElement.cs: Implemented ElementInformation property and
1054 moved there all value management.
1055 * ProtectedConfigurationProvider.cs: Set the correct base class.
1056 * SectionInformation.cs: Added missing AllowExeDefinition property.
1057 * TimeSpanValidatorAttribute.cs: Implemented.
1058 * StringValidator.cs: Implemented.
1059 * ProviderSettingsCollection.cs: Added missing class attribute.
1060 * ConfigurationSaveMode.cs: Fix enum values.
1061 * ConfigurationElementCollection.cs: Added Init method for initializing
1062 elements from properties.
1063 * StringValidatorAttribute.cs: Implemented.
1064 * ConfigurationLocation.cs: Added support for allowOverride flag.
1065 * TimeSpanMinutesOrInfiniteConverter.cs: Created skeleton class.
1066 * PositiveTimeSpanValidator.cs: Implemented.
1067 * TimeSpanMinutesConverter.cs: Created skeleton class.
1068 * SectionInfo.cs: Properly read, store and check the values of AllowLocation,
1069 AllowDefinition and AllowExeDefinition.
1070 * TimeSpanValidator.cs: Implemented.
1071 * ConfigurationConverterBase.cs: Created skeleton class.
1072 * InternalConfigurationHost.cs: Implemented IsDefinitionAllowed and
1073 VerifyDefinitionAllowed.
1074 * ConfigurationManager.cs: That class must be static.
1075 * PropertyInformationCollection.cs: Implemented.
1076 * Configuration.cs: Added some checks for AllowLocation, AllowDefinition and
1077 so on. In Save(), don't forget to save location elements.
1078 * ConfigurationProperty.cs: Keep track of collection attributes.
1079 * ConfigInfo.cs: Support overrideAllowed flag.
1080 * KeyValueConfigurationElement.cs: Define properties using attributes.
1081 * PropertyValueOrigin.cs: implemented.
1082 * PropertyInformation.cs: Mostly implemented.
1083 * SectionGroupInfo.cs: Properly propagate the overrideAllowed flag.
1084 * ElementInformation.cs: Mostly implemented.
1085 * ConfigurationPropertyAttribute.cs: Set the correct default value.
1086 * ConfigurationCollectionAttribute.cs: Implemented.
1088 2005-06-23 Lluis Sanchez Gual <lluis@novell.com>
1090 * SectionInfo.cs: Set the config host when loading the section.
1091 * InternalConfigurationHost.cs: Implemented some basic methods.
1092 * Configuration.cs: Find the correct parent for the configuration,
1093 taking into accound locations and such. Use Host functions to get
1095 * ConfigurationLocationCollection.cs: Added find method.
1096 * ConfigInfo.cs: Added Host property.
1097 * InternalConfigurationFactory.cs: The InitForConfiguration calls
1098 are now done in each correspoding configuration.
1099 * SectionGroupInfo.cs: When reading a location element, create
1100 a Configuration object for each path specified in the location.
1101 * ConfigurationElementCollection.cs: Added the CreateNewElementInternal
1102 method, which properly initializes the created element.
1103 * ConfigurationLocation.cs: OpenConfiguration now has to read the
1104 xml contents. It also has to find the correct parent configuration,
1105 if it has not been specified.
1107 2005-06-17 Lluis Sanchez Gual <lluis@novell.com>
1109 * SectionInfo.cs, ConfigInfo.cs, SectionGroupInfo.cs: Minor api fixes.
1110 * ConfigurationPropertyCollection.cs: Added Clear method.
1111 * ContextInformation.cs: Implemented.
1112 * ConfigurationManager.cs: Implemented some missing methods.
1113 Configuration objects are now created through the ConfigurationFactory.
1114 * InternalConfigurationHost.cs: Implementation of IInternalConfigHost
1115 to be used for exe files and machine.config.
1116 * ConfigurationFileMap.cs: Implemented.
1117 * Configuration.cs: Read and write config files using the methods that
1118 IInternalConfigHost provides.
1119 * InternalConfigurationRoot.cs: IInternalConfigRoot stub.
1120 * ExeContext.cs: Implemented.
1121 * AppSettingsSection.cs: Use the KeyValueConfigurationCollection
1122 collection to store values.
1123 * KeyValueConfigurationElement.cs: Implemented.
1124 * KeyValueConfigurationCollection.cs: Implemented.
1125 * InternalConfigurationFactory.cs: An implementation of
1126 IInternalConfigConfigurationFactory.
1127 * ConfigurationPropertyAttribute.cs: Added missing attributes.
1128 * ExeConfigurationFileMap.cs: Implemented.
1130 2005-06-15 Lluis Sanchez Gual <lluis@novell.com>
1132 * ConfigurationElement.cs, ConfigurationErrorsException.cs
1133 SectionInfo.cs, ConnectionStringSettingsCollection.cs,
1134 ConfigurationPropertyCollection.cs, ProtectedConfigurationProvider.cs,
1135 ConfigurationSection.cs, NonEmptyStringConfigurationProperty.cs,
1136 ConfigurationElementCollectionType.cs, Configuration.cs,
1137 ConnectionStringSettings.cs, ConfigurationProperty.cs,
1138 ConfigurationLocationCollection.cs, TimeSpanConfigurationProperty.cs,
1139 ConfigurationAllowDefinition.cs, ConfigInfo.cs,
1140 ConfigurationSectionGroupCollection.cs, AppSettingsSection.cs,
1141 ProviderSettingsCollection.cs, IntegerConfigurationProperty.cs,
1142 SectionGroupInfo.cs, ConfigurationUserLevel.cs,
1143 ConnectionStringsSection.cs, ConfigurationPropertyAttribute.cs,
1144 ConfigurationLocation.cs, ConfigurationSectionCollection.cs,
1145 ConfigurationSectionGroup.cs, RuntimeOnlySection.cs,
1146 ProviderSettings.cs:
1149 * ConfigurationElementCollection.cs: Implemented support for Basic
1150 collection type. Other fixes.
1152 * ConfigurationPropertyFlags.cs: Renamed to ConfigurationPropertyOptions.
1153 * ConfigurationUpdateMode.cs: Renamed to ConfigurationSaveMode.
1155 * SectionInformation.cs, ConfigurationAllowExeDefinition.cs
1156 ConfigurationManager.cs, ConfigurationSaveMode.cs,
1157 ConfigurationValidatorAttribute.cs, ProtectedConfigurationSection.cs,
1158 ConfigurationValidatorBase.cs, ConfigurationPropertyOptions.cs:
1161 * ConfigurationValidationAttribute.cs: Removed.
1163 * ProviderBase.cs: Moved to System.dll.
1165 2005-06-14 Lluis Sanchez Gual <lluis@novell.com>
1167 * AppSettingsSection.cs, ConfigInfo.cs, Configuration.cs
1168 ConfigurationAllowDefinition.cs, ConfigurationElement.cs
1169 ConfigurationElementCollection.cs, ConfigurationElementCollectionType.cs
1170 ConfigurationLocation.cs, ConfigurationLocationCollection.cs
1171 ConfigurationProperty.cs, ConfigurationPropertyAttribute.cs
1172 ConfigurationPropertyCollection.cs, ConfigurationPropertyFlags.cs
1173 ConfigurationSection.cs, ConfigurationSectionCollection.cs
1174 ConfigurationSectionGroup.cs, ConfigurationSectionGroupCollection.cs
1175 ConfigurationUpdateMode.cs, ConfigurationUserLevel.cs
1176 ConfigurationValidationAttribute.cs, ConnectionStringsSection.cs
1177 ConnectionStringSettingsCollection.cs, ConnectionStringSettings.cs
1178 IntegerConfigurationProperty.cs, NonEmptyStringConfigurationProperty.cs
1179 NonEmptyStringFlags.cs, PathLevel.cs, ProtectedConfigurationProvider.cs
1180 ProviderBase.cs, ProviderSettings.cs, ProviderSettingsCollection.cs
1181 RuntimeOnlySection.cs, SectionInfo.cs, SectionGroupInfo.cs
1182 TimeSpanConfigurationProperty.cs, TimeSpanPropertyFlags.cs
1183 TimeSpanSerializedFormat.cs:
1185 Moved from the System assembly.