1 2006-08-23 Konstantin Triger <kostat@mainsoft.com>
3 * ConfigurationLocation.cs: do not read root element, correctly close stream.
4 * Configuration.cs: use ReadData for nested content to throw if location
5 elements are encounterd.
6 In constructor taking parent Configurqation: do not call Init and so avoid
9 2006-09-05 Vladimir Krasnov <vladimirk@mainsoft.com>
11 * NameValueConfigurationElement.cs: fixed functionality
12 * ConfigurationElementCollection.cs,
13 ConnectionStringSettingsCollection.cs: fixed <remove> element in
14 connectionStrings section
16 2006-08-23 Konstantin Triger <kostat@mainsoft.com>
18 * ConfigurationSection.cs: for net 1.1 SectionHandlers: return null in case
19 RawXml is null, as net 1.1 does.
21 2006-08-17 Vladimir Krasnov <vladimirk@mainsoft.com>
23 * ConfigurationFileMap.cs: added TARGET_JVM on not supported members
26 2006-07-07 Atsushi Enomoto <atsushi@ximian.com>
28 * ConfigurationManager.cs : OpenExeConfiguration(null) should still
29 work. This is required for embedded scenario.
31 2006-06-10 Atsushi Enomoto <atsushi@ximian.com>
33 * SectionGroupInfo.cs : skip <dllmap> in configuration.
35 2006-05-14 Atsushi Enomoto <atsushi@ximian.com>
37 * ConfigurationManager.cs: since ConfigurationSystem is different
38 for web.config, cast from ConfigurationSection to runtime object
39 should be done at GetSection().
40 This really fixed bug #78372.
42 2006-05-12 Atsushi Enomoto <atsushi@ximian.com>
44 * Configuration.cs : configPath is null for machine.config, so don't
45 use it. Use streamName instead. To my understanding, this should
48 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
50 * ConnectionStringSettings.cs : it seems that "name" property
51 could be null i.e. there is no StringValidator.
52 * StringValidator.cs : allow null.
54 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
56 * ConfigurationManager.cs : use GetCallingAssembly() instead of
57 GetEntryAssembly() which possibly returns null (e.g. nunit) in
58 OpenExeConfiguration(). Several nunit test failures are gone.
60 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
62 * ConnectionStringSettings.cs : oops, this API fix broke standalone
65 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
67 * ConfigurationElement.cs,
68 ConfigurationErrorsException.cs,
69 ConfigurationUserLevel.cs,
70 ConfigurationPropertyOptions.cs,
71 ConnectionStringSettings.cs : assorted minor corcompare fixes.
73 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
75 * Configuration.cs : some kind of refactoring is absolutely needed
76 here. Reuse RawXml from parentSection when data was not available
77 on current section. This should fix bug #78353.
79 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
81 * ConfigurationElement.cs,
83 in some cases RawXml was set null string, so skip such cases.
84 * Configuration.cs : support IConfigurationSectionHandler here.
85 * ConfigurationManager.cs : GetSection() now returns name value
86 collection, not a section.
87 * ConfigurationSection.cs : added SectionHandler for
88 IConfigurationSectionHandler support, and use its Create() in
90 * ClientConfigurationSystem.cs :
91 use GetRuntimeObject() in GetSection(). Thus now
92 ConfigurationManager.GetSection() returns a runtime object.
95 2006-04-28 Atsushi Enomoto <atsushi@ximian.com>
97 * SectionGroupInfo.cs :
98 sections which are defined in sectionGroups could be directly
99 referenced, so search corresponding section recursively.
100 * DefaultSection.cs : It does not reject unrecognized contents.
102 2006-04-26 Chris Toshok <toshok@ximian.com>
104 * SectionInformation.cs (.ctor): add MonoTODO about the default
105 value for require_permission.
106 (RequirePermission): implement the getter/setter for this so
107 Atsushi's previous commit doesn't break everything :)
109 2006-04-26 Atsushi Enomoto <atsushi@ximian.com>
112 SectionInfo.cs : added support for "requirePermission" attribute
113 in "section" element. This fixes bug #77957.
115 2006-04-25 Chris Toshok <toshok@ximian.com>
117 * ConfigurationElementCollection.cs (Reset): it makes no sense to
118 pass the typename to CreateNewElementInternal. the argument is
119 the elementname. pass null instead.
122 2006-02-01 Atsushi Enomoto <atsushi@ximian.com>
124 * ConfigurationElement.cs : ListErrors() and SetPropertyValue()
126 * ConfigurationSection.cs : the .ctor() is protected.
127 * ConfigurationElementCollection.cs : CollectionType is public.
128 Count and BaseAdd() are not virtual.
129 * ConfigurationPropertyCollection.cs : Count is not virtual.
131 2006-02-01 Chris Toshok <toshok@ximian.com>
133 * ConfigurationElement.cs: revert the patch that stores and writes
134 out xmlns attributes for all elements.
136 * ClientConfigurationSystem.cs: SupportsUserConfig == false.
138 * AppSettingsSection.cs (GetRuntimeObject): call col.SetReadOnly()
139 only if SupportsUserConfig != true.
141 * ConfigurationManager.cs (ConfigurationSystem): add a property
142 like ConfigurationFactory, and use it instead of the private field
145 2006-01-26 Chris Toshok <toshok@ximian.com>
147 * SectionGroupInfo.cs (ReadContent): handle "location" (seemingly)
150 * InternalConfigurationRoot.cs: misc logical additions. still
153 * ConfigurationManager.cs (OpenExeConfigurationInternal): throw an
154 exception if both calling_assembly and exePath are null. Allow
155 the exePath to be a path to a config file as well, checking to see
156 if it ends in .config before appending.
157 (OpenExeConfiguration): stop blindly passing
158 Assembly.GetCallingAssembly. I'm assuming this will likely break
159 .dll.config usage. need to investigate that (and write more unit
161 (GetSection): call configSystem.GetSection.
162 (RefreshSection): call configSystem.RefreshSection.
163 (ChangeConfigurationSystem): modeled after the
164 ConfigurationSettings System.Web hack - allow
165 WebConfigurationManager to replace the current
166 IInternalConfigSystem.
168 * InternalConfigurationHost.cs (InternalConfigurationHost): make
169 abstract, and remove all the NotImplenmentedException's.
171 * ConfigurationElement.cs (DeserializeElement): store off the xml
172 namespace if there is one.
173 (SerializeElement): write out the namespace if there was one.
175 * ClientConfigurationSystem.cs: new class, based on some stack
176 traces I've seen in tests. Kinda (well, not *kinda*..) hacky.
178 * Configuration.cs (NamespaceDeclared): implement.
179 (Load): don't swallow all exceptions, just the ones raised when we
180 open the stream for reading.
181 (ReadConfigFile): handle xmlns.
183 2006-01-25 Chris Toshok <toshok@ximian.com>
185 * ConfigInfo.cs (ThrowException): throw a
186 ConfigurationErrorsException, not a ConfigurationException.
188 * SectionGroupInfo.cs (ReadContent): throw an exception
189 unconditionally if we see a <location>. they aren't valid in
192 2006-01-25 Chris Toshok <toshok@ximian.com>
194 * KeyValueInternalCollection.cs: don't use a nested collection,
195 just defer to our base class. This fixes usage of
196 ConfigurationManager.AppSettings.Keys.
198 2006-01-13 Chris Toshok <toshok@ximian.com>
200 * AppSettingsSection.cs (GetRuntimeObject): only access
201 Settings[key] once per iteration.
203 2006-01-09 Chris Toshok <toshok@ximian.com>
205 * ConfigurationManager.cs (AppSettings): just return
206 AppSettingsSection.GetRuntimeObject() here.
208 * AppSettingsSection.cs: fix the "file" property to match dumper
210 (GetRuntimeObject): this returns a KeyValueInternalCollection in
213 2006-01-09 Chris Toshok <toshok@ximian.com>
215 * ElementInformation.cs (Validator): if propertyInfo == null,
216 return a DefaultValidator instance.
218 2006-01-09 Chris Toshok <toshok@ximian.com>
220 * AppSettingsSection.cs (.cctor): specify null for
223 * ProtectedProviderSettings.cs (.cctor): specify null for
226 2006-01-03 Chris Toshok <toshok@ximian.com>
228 * Configuration.cs (SaveAs): open with FileMode.OpenOrCreate so we
229 can save to a new file.
230 (CreateSection): don't bother to set the section information's
231 Name here. we'll do it in SectionInfo.CreateInstance.
233 * ProtectedConfiguration.cs (Section): new static property so we
234 can remove all the GetSection calls.
235 (GetProvider): load a named provider, optionally throwing an
236 exception if it's not found.
238 * InternalConfigurationHost.cs (EncryptSection, DecryptSection):
239 make these private interface implementations, and call
240 protectedSection.{EncryptSection,DecryptSection}.
242 * ProtectedConfigurationSection.cs (EncryptSection,
243 DecryptSection): add these two calls. They really shouldn't be
244 here, but I saw them in an MS stack trace and thought "why not?".
246 * ConfigurationSection.cs (SectionInformation): don't set
247 attributes here, that's done in SectionInfo.CreateInstance.
248 (DeserializeSection): shoehorn in the decryption stuff here. It
249 doesn't belong here, and I've added a MonoTODO about it. It
250 should live someplace like SectionInfo.ReadData (which would make
251 it similar to the encryption stuff in .WriteData).
253 * SectionInformation.cs (IsProtected): remove the special flag,
254 just return true if we have a non-null protection_provider.
255 (ProtectSection): do nothing but try to instantiate the named
257 (UnprotectSection): null out protection_provider.
259 * DpapiProtectedConfigurationProvider.cs: move the
260 NotSupportedExceptions to Decrypt/Encrypt so we don't bomb out
261 when parsing our machine.config file.
263 * RsaProtectedConfigurationProvider.cs: initial implementation.
264 much is missing (OAEP support, key importing, adding/deleting
265 keys), but it can be used.
267 2006-01-02 Chris Toshok <toshok@ximian.com>
269 * RsaProtectedConfigurationProvider.cs: implement the
270 CspProviderName and UseOAEP properties..
272 2006-01-02 Chris Toshok <toshok@ximian.com>
274 * ProtectedConfigurationSection.cs: flesh this out (and add logic
275 to instantiate providers, based on some of the standalone test
276 exception stack traces.)
278 * ProtectedConfiguration.cs: new implementation.
280 * ProtectedConfigurationProviderCollection.cs: new
283 * ProtectedProviderSettings.cs: new implementation.
285 * ProtectedConfigurationProvider.cs: trim the superclass's name.
287 * RsaProtectedConfigurationProvider.cs: stubbed, unimplemented.
289 * DpapiProtectedConfigurationProvider.cs: add stubbed
290 implementation that throws NotSupportedException telling people
291 they should be using RsaProtectedConfigurationProvider.
293 2006-01-02 Chris Toshok <toshok@ximian.com>
295 * DefaultSection.cs (Properties): implement.
297 * IgnoreSection.cs: move from lazily creating the properties
298 collection to sharing a single one across all instances.
300 * ConfigurationLockCollection.cs (IsReadOnly): fix compiler warning.
302 * ConfigurationElementCollection.cs (BaseAdd) remove logic to
303 remove an old matching element.
304 (BaseGetKey): throw an exception if @index is out of range.
306 * SectionInformation.cs (SectionName): just return name, like Name
307 does.. redundant, but it matches tests.
308 (GetRawXml): implement.
309 (SetRawXml): implement.
311 * ConfigurationSection.cs (SectionInformation): fill in
312 sectionInformation.Type before returning.
313 (DeserializeSection): save off the raw xml to our
316 * ConfigurationElement.cs (LockItem): implement.
317 (DeserializeElement): add support for the "lockItem" attribute.
319 2005-12-16 Chris Toshok <toshok@ximian.com>
321 * ConfigurationLockCollection.cs (Add): only add the name if it's
323 (IsReadOnly): always return false for the time being, in the
324 non-exceptional case.
326 2005-12-15 Chris Toshok <toshok@ximian.com>
328 * ConfigurationElement.cs (LockAllAttributesExcept): implement.
329 (LockAllElementsExcept): implement.
330 (DeserializeElement): handle the built-in attributes (lock* for
333 2005-12-15 Chris Toshok <toshok@ximian.com>
335 * ConfigurationLockCollection.cs (..ctor): don't call Populate.
337 (CheckName): make sure the passes in name is valid for this type
339 (Add): call CheckName, and set is_modified to true.
340 (Clear): set is_modified.
341 (IsReadOnly): add plausable implementation, including exception in
342 the case where the name isn't found.
343 (Remove): set is_modified.
344 (SetFromList): implement.
345 (get_AttributeList): implement.
346 (set_IsModified): add internal setter so we can clear the modified
349 2005-12-12 Chris Toshok <toshok@ximian.com>
351 * AppSettingsSection.cs (DeserializeElement): provide rather naive
352 version of the file="" handling. It's enough to make our tests
355 2005-12-11 Chris Toshok <toshok@ximian.com>
357 * ConnectionStringsSection.cs (..cctor): use "" instead of null
358 for the name of the default collection.
360 * AppSettingsSection.cs (..cctor): create a property for the
362 (DeserializeElement): call base.DeserializeElement.
363 (File): index off the property, not the name.
364 (Settings): don't use an private variable here, use
367 * ConfigurationManager.cs (GetSection): GetEntryAssembly returns
368 null for new app domains. so deal with this by calling
369 GetCallingAssembly if it's null. This is probably still wrong but
370 it doesn't NRE in xsp2.
371 (AppSettings): remove MonoTODO.
373 * KeyValueConfigurationElement.cs (..ctor): new method, create the
374 ConfigurationProperty's and the collection here.
375 (.ctor): add internal arg-less ctor.
376 (Key): use keyProp instead of "key".
377 (Value): use vlaueProp instead of "value".
378 (Properties): return our class's properties.
380 * KeyValueConfigurationCollection.cs (CreateNewElement): use the
382 (GetElementKey): re-enable the BaseIndexOf test.
384 2005-12-02 Chris Toshok <toshok@ximian.com>
386 * Configuration.cs (Save): call WriteStartDocument.
388 * ConnectionStringSettingsCollection.cs (CreateNewElement): use
389 parameter-less ctor to keep from generating exceptions when using
392 2005-12-02 Chris Toshok <toshok@ximian.com>
394 * ConnectionStringSettings.cs: tabify, fix default values, and add
395 a string validator for "name".
397 2005-12-02 Chris Toshok <toshok@ximian.com>
399 * CommaDelimitedStringCollectionConverter.cs (ConvertTo): change
400 the type check away from an exact check for
401 CommaDelimitedStringCollection to an assignable test from
402 StringCollection. This is due to the fact that AuthorizationRule
403 doesn't create CommaDelimitedStringCollections, for some odd
404 reason. It uses StringCollections.
406 * PropertyInformation.cs (Value): remove the case for
407 IsDefaultCollection - it's not necessary, as the property is an
410 * ConnectionStringSettings.cs: fix formatting and remove some
413 * ConnectionStringSettingsCollection.cs: same.
415 * ConnectionStringsSection.cs: same.
417 * ConfigurationElement.cs (SerializeToXmlElement): don't write the
418 enclosing start/end elements if the elementName is null or "".
419 this fixes the case for the DefaultCollections (at least in the
420 case of connectionStrings).
422 * IgnoreSection.cs (Properties): remove the MonoTODO.
424 * SectionInfo.cs (WriteData): remove the "<!-- dd -->" output.
426 2005-11-28 Chris Toshok <toshok@ximian.com>
428 * ProviderSettings.cs: use ConfigurationProperty's to implement
431 2005-11-24 Chris Toshok <toshok@ximian.com>
433 * ConfigurationProperty.cs (Validate): add internal method.
435 2005-11-24 Chris Toshok <toshok@ximian.com>
437 * ConfigurationElement.cs (ElementProperty): make this protected
438 internal virtual instead of public.
439 (SetPropertyValue): add a validator call and a blurb about the
440 code based on information gleaned from tests.
441 (set_Item (string)): call SetPropertyValue in the setter.
443 2005-11-14 Chris Toshok <toshok@ximian.com>
445 * CommaDelimitedStringCollection.cs: reformat things a bit, and
446 flag ToString() as override.
448 * DefaultSection.cs: new stubbed out implementation.
450 * CommaDelimitedStringCollectionConverter.cs: new implementation.
452 2005-11-10 Chris Toshok <toshok@ximian.com>
454 * AppSettingsSection.cs (DeserializeElement): stop explicitly
455 calling Settings.DeserializeElement, as the DefaultCollection
458 * ConfigurationElement.cs (DeserializeElement): rework the loop
459 here so that we actually loop over all the content elements.
461 2005-11-09 Chris Toshok <toshok@ximian.com>
463 * ConfigurationElement.cs: Add support for DefaultCollection
466 * PropertyInformation.cs (PropertyInformation.Value): add case for
469 * SectionGroupInfo.cs (SectionGroupInfo.ReadConfig): when we read
470 a "type" attribute, make sure the cached System.Type is cleared.
472 2005-10-25 Chris Toshok <toshok@ximian.com>
474 * InfiniteTimeSpanConverter.cs: new implementation.
476 * InfiniteIntConverter.cs: new implementation.
478 * GenericEnumConverter.cs: new implementation.
480 * Configuration.cs: we don't need to check with "is" after we use
481 "as".. just check for null-ness.
483 * KeyValueConfigurationCollection.cs: GetElementKey should throw
484 NRE if element == null.
486 * CommaDelimitedStringCollection.cs: raise the correct exceptions
487 in the read only case, and return null from ToString if there are
490 2005-10-25 Chris Toshok <toshok@ximian.com>
492 * PositiveTimeSpanValidatorAttribute.cs: new implementation.
494 * PositiveTimeSpanValidator.cs: new implementation.
496 2005-10-24 Chris Toshok <toshok@ximian.com>
498 * TimeSpanSecondsOrInfiniteConverter.cs: new implementation.
500 * TypeNameConverter.cs: new implementation.
502 * WhiteSpaceTrimStringConverter.cs: new implementation.
504 2005-10-24 Chris Toshok <toshok@ximian.com>
506 * AppSettingsSection.cs (DeserializeElement, SerializeSection):
507 split the behavior based on if File == "". If it is, we do the
508 default. otherwise we throw NIE.
510 * ConnectionStringsSection.cs (DeserializeElement): we shouldn't
511 need this, but we do until the IsDefaultCollection stuff is fixed.
513 * ConfigurationElementCollection.cs
514 (OnDeserializeUnrecognizedElement): for clearElementName, make
515 sure we have no attributes.
517 * ConnectionStringSettingsCollection.cs (get_Properties): for now
518 just chain up to base.Properties.
520 * ConfigurationElement.cs (ReflectProperties): do the default
521 value/property type check in a more robust way, using
524 2005-10-24 Chris Toshok <toshok@ximian.com>
526 * ConfigurationElement.cs: treat
527 ConfigurationProperty.NoDefaultValue the same as null when we're
528 checking the default value's type. this fixes t13 and 14.
530 * ConnectionStringsSection.cs (ConnectionStrings): fix the
531 DefaultValue in the ConfigurationPropertyAttribute.
533 2005-10-24 Chris Toshok <toshok@ximian.com>
535 * KeyValueConfigurationCollection.cs (GetElementKey): sacrifice
536 one test to get another working. Return a valid key even if the
537 element is not in this collection.
538 (get_ThrowOnDuplicate): return false.
540 * ConfigurationElementCollection.cs (BaseAdd): if we're adding an
541 element with the same key, overwrite the old one (remove the old
542 one after inserting the new one). Also, re-enable the throwing of
543 exceptions if ThrowOnDuplicate == true.
545 2005-10-24 Chris Toshok <toshok@ximian.com>
547 * AppSettingsSection.cs (Settings): fix ConfigurationProperty
550 * ProtectedConfigurationSection.cs (Providers): same.
552 2005-10-12 Chris Toshok <toshok@ximian.com>
554 * ConfigurationPermission.cs: flesh out as per tests.
556 2005-10-11 Chris Toshok <toshok@ximian.com>
558 * ConfigurationProperty.cs: don't use null to mean no default
559 value, use NoDefaultValue.
561 2005-10-11 Chris Toshok <toshok@ximian.com>
563 * KeyValueConfigurationCollection.cs (GetElementKey): duh.
564 BaseGet calls GetElementKey, so we were hitting an infinite
565 recursion here. Use BaseIndexOf instead.
567 2005-10-07 Chris Toshok <toshok@ximian.com>
569 * InternalConfigurationHost.cs: some interface work, adding in the
572 * ConfigurationProperty.cs: remove debug spew.
574 * Configuration.cs: add NIE'd NamespaceDeclared property.
576 * ElementInformation.cs: add NIE'd Errors property.
578 * PropertyInformationCollection.cs: add NIE'd GetObjectData().
580 * ConfigurationManager.cs: quite a bit of new work here. Some
581 definie TODO's still though.
583 2005-10-07 Chris Toshok <toshok@ximian.com>
585 * ConfigurationErrorsException.cs (.ctor): for the (string)
586 overload, chain up to the base (string) ctor.
588 2005-10-07 Chris Toshok <toshok@ximian.com>
590 * ConfigurationElement.cs (ElementMap.ReflectProperties): make
591 sure the type of the default value is compatible with that of the
592 property itself, and throw ConfigurationErrorsException if they
593 don't match. Fixes t12.
595 2005-10-07 Chris Toshok <toshok@ximian.com>
597 * ConfigHelper.cs: remove some unused code.
599 * ConfigurationProperty.cs: disambiguate the ctor we chain to.
601 * ConfigurationElement.cs (ElementProperty): implement.
602 (ElementMap.ReflectProperties): make DefaultValidator the default
605 2005-10-06 Chris Toshok <toshok@ximian.com>
607 * KeyValueConfigurationElement.cs: uncomment out some stuff.
608 (Properties): just return base.Properties. Not sure why they
609 override this, as the base class's implementation passes our test.
611 * KeyValueConfigurationCollection.cs (Add): for the keyValue
612 overload, call keyValue.Init as the unit test stack traces
613 indicates that'9s where it's called. For the string,string
614 overload, just call the keyValue overload instead of calling
616 (CreateNewElement): just use the name/value ctor, and specify ""
618 (GetElementKey): this function always returns "" for elements that
619 haven't been added to the collection. Once theyre added, it seems
620 to always return keyValue.Key.
621 (Properties): the unit tests show this returns a 0 length
624 2005-10-05 Chris Toshok <toshok@ximian.com>
626 * ConfigurationPermissionAttribute.cs: stub out.
628 2005-10-05 Chris Toshok <toshok@ximian.com>
630 * TimeSpanMinutesOrInfiniteConverter.cs: fill in the
633 2005-10-05 Chris Toshok <toshok@ximian.com>
635 * TimeSpanSecondsConverter.cs: new implementation.
637 2005-10-05 Chris Toshok <toshok@ximian.com>
639 * TimeSpanMinutesConverter.cs: flesh out implementation.
641 * ConfigurationConverterBase.cs: make all subclasses work with
642 strings only, since that's what seems to manifest itself in the
645 2005-10-05 Chris Toshok <toshok@ximian.com>
647 * ConfigurationLockCollection.cs: add NIE'd AttributeList
650 * ConfigurationConverterBase.cs: add MonoTODO'd CanConvertFrom and
651 CanConvertTo methods.
653 * ConfigurationSectionGroup.cs: add NIE'd IsDeclared property.
655 * ProtectedConfigurationSection.cs: add NIE'd properties.
657 * ConfigurationElementCollection.cs: add MonoTODO'd IsReadOnly
658 and SetReadOnly methods, and have then chain up to the base class.
660 * KeyValueConfigurationCollection.cs: add the class level
661 ConfigurationCollectionAttribute, and add a NIE'ed Properties
664 * ProviderSettingsCollection.cs: add the class level
665 ConfigurationCollectionAttribute, and add a "new" keyword to the
666 this property. Also, nuke the Provider's property.
668 * SectionInformation.cs: add some NEI'd properties.
670 * ConfigurationSection.cs (ResetModified): leave the MonoTODO, but
671 chain up to base class's method instead of throwing NIE.
673 * ConnectionStringSettingsCollection.cs: add the class-level
674 ConfigurationCollectionAttribute, and add the unimplemented
677 * ConfigurationErrorsException.cs: flesh this out, and add a
678 pragma to disable the obsolete warnings from our base class.
680 * ProviderSettings.cs: add unimplemented Properties property.
682 * ConfigurationElement.cs: remove unnecessary
683 EvaluationInformation.
685 * InternalConfigurationRoot.cs: add unimplemented IsDesignTime
688 * ConfigurationProperty.cs: add a missing ctor.
690 * AppSettingsSection.cs: add missing "override" keyword.
692 * ConnectionStringsSection.cs: remove override.
694 * ConfigurationSectionCollection.cs: AllKeys -> Keys, and add
695 unimplemented GetObjectData override.
697 * ConfigurationSectionGroupCollection.cs: same.
699 * ConfigurationCollectionAttribute.cs: add missing CollectionType
702 2005-10-05 Chris Toshok <toshok@ximian.com>
704 * ConfigurationPermission.cs: new implementation.
706 * IgnoreSection.cs: new implementation.
708 2005-10-05 Chris Toshok <toshok@ximian.com>
710 * CommaDelimitedStringCollection.cs: new implementation.
712 2005-10-05 Chris Toshok <toshok@ximian.com>
714 * NameValueConfigurationCollection.cs: new implementation.
716 * NameValueConfigurationElement.cs: new implementation.
718 2005-10-05 Chris Toshok <toshok@ximian.com>
720 * ValidatorCallback.cs: new implementation.
722 * SubclassTypeValidator.cs, SubclassTypeValidatorAttribute.cs: new
725 * CallbackValidator.cs, CallbackValidatorAttribute.cs: new
728 * RegexStringValidator.cs, RegexStringValidatorAttribute.cs: new
731 * LongValidator.cs, LongValidatorAttribute.cs: new implementation.
733 * IntegerValidator.cs, IntegerValidatorAttribute.cs: new
736 * DefaultValidator.cs: new implementation.
738 2005-09-28 Chris Toshok <toshok@ximian.com>
740 * ConfigurationElementCollection.cs: more work on the "<clear />"
741 handling - just skip the element for now. this causes a failure
742 in one test ('<clear hi="bye" />' doesn't throw an exception when
743 it should), but it succeeds for collections that have required
746 * ConnectionStringSettings.cs: providerName isn't a required
749 * AppSettingsSection.cs (.cctor): initialize our "file" Property.
752 (GetRuntimeObject): call the base class method instead of just
755 * ConnectionStringsSection.cs: Add a hacky DeserializeElement
756 method here (that isn't in MS's) for the time being so we actually
757 deserialize our collection.
759 2005-09-28 Chris Toshok <toshok@ximian.com>
761 * KeyValueInternalCollection.cs: found this by way of a stack
762 trace in one of the tests. A NameValueCollection that wraps a
763 KeyValueConfigurationCollection.
765 * Configuration.cs (Init): save off configPath.
766 (EvaluationContext): new, mostly implemented.
767 (GetSectionInstance): use IgnoreSection instead of
769 (Load): don't fail when we can't load a file.
771 * IgnoreSection.cs: replace RuntimeOnlySection with this new
774 * RuntimeOnlySection.cs: nuke.
776 2005-09-27 Chris Toshok <toshok@ximian.com>
778 * TimeSpanMinutesOrInfiniteConverter.cs: this is sealed.
780 2005-09-27 Chris Toshok <toshok@ximian.com>
782 * ConfigurationProperty.cs: add IsDefaultCollection property.
784 2005-09-27 Chris Toshok <toshok@ximian.com>
786 * ConfigurationElementProperty.cs: new file.
788 * ConfigurationLockCollection.cs: new file.
790 * ConfigurationElementCollection.cs
791 (OnDeserializeUnrecognizedElement): make sure we consume the
792 <clear /> element so we don't into an endless loop.
794 * ConfigurationElement.cs: add a bunch of NIE's properties.
796 * ContextInformation.cs: Add NIE'ed IsMachineLevel property.
798 2005-09-23 Chris Toshok <toshok@ximian.com>
800 * AppSettingsSection.cs: fix build and add a couple of TODO'ed
803 2005-09-23 Chris Toshok <toshok@ximian.com>
805 * ProviderSettings.cs (Unmerge): track change to
806 ConfigurationElement.Unmerge.
808 * ConfigurationSection.cs: add functions nuked from
809 ConfigurationElement here.
811 * ConfigurationElementCollection.cs: add DebuggerDisplay attribute
813 (BaseGetAllKeys): returns object[], not string[].
814 (BaseGetKey): returns object, not string.
815 (Unmerge): track change to ConfigurationElement.Unmerge signature.
817 * ConfigurationElement.cs (ConfigurationElement.Unmerge): fix
818 signature (drop the serializeCollectionKey parameter).
821 2005-09-23 Chris Toshok <toshok@ximian.com>
823 * StringValidator.cs: throw ArgumentException instead of
824 ConfigurationErrorsException.
826 2005-09-23 Chris Toshok <toshok@ximian.com>
828 * ConnectionStringsSection.cs: track change to
829 ConfigurationPropertyOptions.
831 * ConfigurationPropertyAttribute.cs, ConfigurationProperty.cs,
832 ProviderSettings.cs: track change to ConfigurationPropertyOptions.
834 * ConnectionStringSettings.cs: track change to
835 ConfigurationProprertyOptions, and add some ConfigurationProperty
838 * ConfigurationPropertyOptions.cs: DefaultCollection ->
839 IsDefaultCollection, Required -> IsRequired.
841 2005-09-22 Chris Toshok <toshok@ximian.com>
843 * PositiveTimeSpanValidator.cs: this lives in
844 System.Web.Configuration, not System.Configuration.
846 2005-09-22 Chris Toshok <toshok@ximian.com>
848 * TimeSpanValidator.cs: change to ArgumentException and alter the
851 2005-09-22 Chris Toshok <toshok@ximian.com>
853 * ExeConfigurationFileMap.cs (ctor): init all the strings to "".
855 2005-07-01 Lluis Sanchez Gual <lluis@novell.com>
857 * ProviderSettings.cs: Implemented properties using property attributes.
858 * ConfigurationElement.cs: Implemented ElementInformation property and
859 moved there all value management.
860 * ProtectedConfigurationProvider.cs: Set the correct base class.
861 * SectionInformation.cs: Added missing AllowExeDefinition property.
862 * TimeSpanValidatorAttribute.cs: Implemented.
863 * StringValidator.cs: Implemented.
864 * ProviderSettingsCollection.cs: Added missing class attribute.
865 * ConfigurationSaveMode.cs: Fix enum values.
866 * ConfigurationElementCollection.cs: Added Init method for initializing
867 elements from properties.
868 * StringValidatorAttribute.cs: Implemented.
869 * ConfigurationLocation.cs: Added support for allowOverride flag.
870 * TimeSpanMinutesOrInfiniteConverter.cs: Created skeleton class.
871 * PositiveTimeSpanValidator.cs: Implemented.
872 * TimeSpanMinutesConverter.cs: Created skeleton class.
873 * SectionInfo.cs: Properly read, store and check the values of AllowLocation,
874 AllowDefinition and AllowExeDefinition.
875 * TimeSpanValidator.cs: Implemented.
876 * ConfigurationConverterBase.cs: Created skeleton class.
877 * InternalConfigurationHost.cs: Implemented IsDefinitionAllowed and
878 VerifyDefinitionAllowed.
879 * ConfigurationManager.cs: That class must be static.
880 * PropertyInformationCollection.cs: Implemented.
881 * Configuration.cs: Added some checks for AllowLocation, AllowDefinition and
882 so on. In Save(), don't forget to save location elements.
883 * ConfigurationProperty.cs: Keep track of collection attributes.
884 * ConfigInfo.cs: Support overrideAllowed flag.
885 * KeyValueConfigurationElement.cs: Define properties using attributes.
886 * PropertyValueOrigin.cs: implemented.
887 * PropertyInformation.cs: Mostly implemented.
888 * SectionGroupInfo.cs: Properly propagate the overrideAllowed flag.
889 * ElementInformation.cs: Mostly implemented.
890 * ConfigurationPropertyAttribute.cs: Set the correct default value.
891 * ConfigurationCollectionAttribute.cs: Implemented.
893 2005-06-23 Lluis Sanchez Gual <lluis@novell.com>
895 * SectionInfo.cs: Set the config host when loading the section.
896 * InternalConfigurationHost.cs: Implemented some basic methods.
897 * Configuration.cs: Find the correct parent for the configuration,
898 taking into accound locations and such. Use Host functions to get
900 * ConfigurationLocationCollection.cs: Added find method.
901 * ConfigInfo.cs: Added Host property.
902 * InternalConfigurationFactory.cs: The InitForConfiguration calls
903 are now done in each correspoding configuration.
904 * SectionGroupInfo.cs: When reading a location element, create
905 a Configuration object for each path specified in the location.
906 * ConfigurationElementCollection.cs: Added the CreateNewElementInternal
907 method, which properly initializes the created element.
908 * ConfigurationLocation.cs: OpenConfiguration now has to read the
909 xml contents. It also has to find the correct parent configuration,
910 if it has not been specified.
912 2005-06-17 Lluis Sanchez Gual <lluis@novell.com>
914 * SectionInfo.cs, ConfigInfo.cs, SectionGroupInfo.cs: Minor api fixes.
915 * ConfigurationPropertyCollection.cs: Added Clear method.
916 * ContextInformation.cs: Implemented.
917 * ConfigurationManager.cs: Implemented some missing methods.
918 Configuration objects are now created through the ConfigurationFactory.
919 * InternalConfigurationHost.cs: Implementation of IInternalConfigHost
920 to be used for exe files and machine.config.
921 * ConfigurationFileMap.cs: Implemented.
922 * Configuration.cs: Read and write config files using the methods that
923 IInternalConfigHost provides.
924 * InternalConfigurationRoot.cs: IInternalConfigRoot stub.
925 * ExeContext.cs: Implemented.
926 * AppSettingsSection.cs: Use the KeyValueConfigurationCollection
927 collection to store values.
928 * KeyValueConfigurationElement.cs: Implemented.
929 * KeyValueConfigurationCollection.cs: Implemented.
930 * InternalConfigurationFactory.cs: An implementation of
931 IInternalConfigConfigurationFactory.
932 * ConfigurationPropertyAttribute.cs: Added missing attributes.
933 * ExeConfigurationFileMap.cs: Implemented.
935 2005-06-15 Lluis Sanchez Gual <lluis@novell.com>
937 * ConfigurationElement.cs, ConfigurationErrorsException.cs
938 SectionInfo.cs, ConnectionStringSettingsCollection.cs,
939 ConfigurationPropertyCollection.cs, ProtectedConfigurationProvider.cs,
940 ConfigurationSection.cs, NonEmptyStringConfigurationProperty.cs,
941 ConfigurationElementCollectionType.cs, Configuration.cs,
942 ConnectionStringSettings.cs, ConfigurationProperty.cs,
943 ConfigurationLocationCollection.cs, TimeSpanConfigurationProperty.cs,
944 ConfigurationAllowDefinition.cs, ConfigInfo.cs,
945 ConfigurationSectionGroupCollection.cs, AppSettingsSection.cs,
946 ProviderSettingsCollection.cs, IntegerConfigurationProperty.cs,
947 SectionGroupInfo.cs, ConfigurationUserLevel.cs,
948 ConnectionStringsSection.cs, ConfigurationPropertyAttribute.cs,
949 ConfigurationLocation.cs, ConfigurationSectionCollection.cs,
950 ConfigurationSectionGroup.cs, RuntimeOnlySection.cs,
954 * ConfigurationElementCollection.cs: Implemented support for Basic
955 collection type. Other fixes.
957 * ConfigurationPropertyFlags.cs: Renamed to ConfigurationPropertyOptions.
958 * ConfigurationUpdateMode.cs: Renamed to ConfigurationSaveMode.
960 * SectionInformation.cs, ConfigurationAllowExeDefinition.cs
961 ConfigurationManager.cs, ConfigurationSaveMode.cs,
962 ConfigurationValidatorAttribute.cs, ProtectedConfigurationSection.cs,
963 ConfigurationValidatorBase.cs, ConfigurationPropertyOptions.cs:
966 * ConfigurationValidationAttribute.cs: Removed.
968 * ProviderBase.cs: Moved to System.dll.
970 2005-06-14 Lluis Sanchez Gual <lluis@novell.com>
972 * AppSettingsSection.cs, ConfigInfo.cs, Configuration.cs
973 ConfigurationAllowDefinition.cs, ConfigurationElement.cs
974 ConfigurationElementCollection.cs, ConfigurationElementCollectionType.cs
975 ConfigurationLocation.cs, ConfigurationLocationCollection.cs
976 ConfigurationProperty.cs, ConfigurationPropertyAttribute.cs
977 ConfigurationPropertyCollection.cs, ConfigurationPropertyFlags.cs
978 ConfigurationSection.cs, ConfigurationSectionCollection.cs
979 ConfigurationSectionGroup.cs, ConfigurationSectionGroupCollection.cs
980 ConfigurationUpdateMode.cs, ConfigurationUserLevel.cs
981 ConfigurationValidationAttribute.cs, ConnectionStringsSection.cs
982 ConnectionStringSettingsCollection.cs, ConnectionStringSettings.cs
983 IntegerConfigurationProperty.cs, NonEmptyStringConfigurationProperty.cs
984 NonEmptyStringFlags.cs, PathLevel.cs, ProtectedConfigurationProvider.cs
985 ProviderBase.cs, ProviderSettings.cs, ProviderSettingsCollection.cs
986 RuntimeOnlySection.cs, SectionInfo.cs, SectionGroupInfo.cs
987 TimeSpanConfigurationProperty.cs, TimeSpanPropertyFlags.cs
988 TimeSpanSerializedFormat.cs:
990 Moved from the System assembly.