1 2010-07-27 Atsushi Enomoto <atsushi@ximian.com>
3 * ConfigurationPropertyCollection.cs, PropertyInformation.cs:
4 add null check to detect bogus configuration early.
6 2010-01-09 Marek Habersack <mhabersack@novell.com>
8 * ConfigurationLocation.cs: trailing / characters are removed from
11 * Configuration.cs: instances created for locations inherit
12 ConfigPath from their containing document.
13 Host.GetConfigPathFromLocationSubPath must be called with current
14 instance's configPath, not LocationConfigPath.
15 Locations are sought for using paths relative to the current
16 instance's configPath, not to the root path.
17 All of the above is part of fix for bug #568441
19 2009-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21 * SectionInformation.cs: ConfigSource should never be null, but empty.
22 Also, the Type property should throw an argument exception if the
23 new value is null or empty.
26 2009-10-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
28 * Configuration.cs: make this work again with bundled configuration
29 files. Fixes bug #495957. Patch from Tor Lillqvist.
31 2009-07-17 Gonzalo Paniagua Javier <gonzalo@novell.com>
33 * ConfigurationElement.cs: don't skip xml nodes when reading 2
34 ConfigurationElement in a row. Patch by Greg Smolyn that fixes bug
37 2009-07-15 Marek Habersack <mhabersack@novell.com>
39 * Configuration.cs: explicitly flush the stream when writing XML
40 data. Part of fix for bug #522017
42 2009-07-14 Marek Habersack <mhabersack@novell.com>
44 * ConfigurationSaveEventArgs.cs, ConfigurationSaveEventHandler.cs:
47 * Configuration.cs: added two internal events - SaveStart and
48 SaveEnd. They are used by System.Web's configuration system to
49 suppress application reloads when configuration is modified and
50 saved from within a web application. It is necessary to use events
51 since there is no guarantee the web application will use
52 WebConfigurationManager (and thus WebConfigurationHost) for
55 2009-06-08 Marek Habersack <mhabersack@novell.com>
57 * ConfigurationLocation.cs: if the path passed to constructor
58 starts with any of ' ' '.' '/' or '\', throw an exception. Fixes
61 2008-12-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
63 * Configuration.cs: don't try to open the file if we know it does not
64 exist. Also, don't hide the actual exception in case there's a problem
65 opening the configuration file.
67 2008-11-15 Gonzalo Paniagua Javier <gonzalo@novell.com>
69 * ConfigurationManager.cs: the config file name is arbitrary.
72 2008-11-10 Gonzalo Paniagua Javier <gonzalo@novell.com>
74 * ConfigurationManager.cs: when we're dealing with an EXE hosted
75 application, the configuration file is the one for the AppDomain,
76 otherwise we might try to get a config file for a dll. Fixes the
77 regression in 2.0 sys.config.
79 2008-07-09 Marek Habersack <mhabersack@novell.com>
81 * ConfigurationManager.cs: implemented a work-around for
82 OpenExeConfiguration ("") not working with ASP.NET apps properly.
84 2008-07-07 Rodrigo Kumpera <rkumpera@novell.com>
86 * ConfigurationManager.cs: Return the right path if the calling assembly is
87 not null. This happens when ConfigurationSession::GetRuntimeObject() is
88 called, SectionHandler != null and the handler itself calls
89 OpenExeConfigurationInternal ("").
91 2008-07-07 Rodrigo Kumpera <rkumpera@novell.com>
93 * ClientConfigurationSystem.cs:
94 * ConfigurationManager.cs: Reaply the patch from Gert.
95 This change doesn't contain any fix to to not clutter
98 2008-07-07 Rodrigo Kumpera <rkumpera@novell.com>
100 * ClientConfigurationSystem.cs:
101 * ConfigurationManager.cs: The previous patch since it
102 causes a regression. It will remain reverted until we figure
103 out what's wrong and how to fix it.
105 2008-07-02 Gert Driesen <drieseng@users.sourceforge.net>
107 * ClientConfigurationSystem.cs: Moved logic for defaulting to
108 configuration file of AppDomain to OpenExeConfigurationInternal.
109 * ConfigurationManager.cs (OpenExeConfigurationInternal):
110 Allow calling_assembly and exePath to be null. When userLevel is None,
111 default to configuration file of AppDomain if exePath is null or empty.
112 When exePath is specified, resolve it to absolute path and throw
113 ConfigurationErrorsException if exePath does not exist and add
114 .config extension to get config file name if exePath does exist.
116 2008-06-27 Atsushi Enomoto <atsushi@ximian.com>
118 * SectionInfo.cs, Configuration.cs, ConfigInfo.cs,
119 SectionGroupInfo.cs :
120 eliminate XmlTextReader, first stage.
122 2008-06-27 Atsushi Enomoto <atsushi@ximian.com>
124 * ConfigurationErrorsException.cs : recover from
125 silly change that tries to prevent debuggin by
126 decreasing error location information.
128 2008-06-26 Gert Driesen <drieseng@users.sourceforge.net>
130 * ConfigurationElement.cs: Use ConfigurationErrorsException instead of
131 ConfigurationException, and pass reader to ConfigurationErrorsException
132 ctor to allow for file/linenumber info in exception message.
133 * ConfigurationErrorsException.cs: Removed local bareMessage field, and
134 use base.BareMessage field instead. Fixed Message property to only add
135 filename if not null or zero-length string, and only add line if not
136 zero. In GetFilename/GetLineNumber overloads, only try to get info if
137 node/reader implements IConfigErrorInfo.
138 * ConfigurationSection.cs: Use ConfigXmlTextReader instead of
139 XmlTextReader to allow for file/linenumber info in exception messages.
140 * ConfigXmlTextReader.cs: Added XmlTextReader that implements
142 * ConfigurationLocation.cs: Use ConfigXmlTextReader instead of
143 XmlTextReader to allow for file/linenumber info in exception messages.
144 * ClientConfigurationSystem.cs: Perform lazy initialization and
145 wrap exceptions in ConfigurationErrorsException. Fixes standalone test
147 * Configuration.cs: Use ConfigXmlTextReader instead of XmlTextReader
148 to allow for file/linenumber info in exception messages.
149 * ConfigInfo.cs: Fixed ThrowException to use file/number info available
150 in XmlTextReader for exception message.
151 * AppSettingsSection.cs: Use ConfigXmlTextReader instead of
152 XmlTextReader to allow for file/linenumber info in exception messages.
154 2008-06-19 Jb Evain <jbevain@novell.com>
156 * ConfigurationPermissionAttribute.cs (CreatePermission): implement.
158 2008-05-28 Marek Habersack <mhabersack@novell.com>
160 * Configuration.cs: set the ConfigContext when getting
161 and instance of a section. Fix for bug #325128.
163 * ConfigurationSection.cs: added an internal property -
164 ConfigContext used to supply the HttpContext to the Create
165 method of SectionHandler when called from GetRuntimeObject.
168 * InternalConfiguationHost.cs: changed CreateDeprecatedConfigContext
169 to return null rather than throwing a NotImplementedException.
172 * All patches above contributed by James Fitzsimons <james.fitzsimons@gmail.com>,
175 2008-05-18 Sebastien Pouliot <sebastien@ximian.com>
177 * SectionGroupInfo.cs: Use String.IsNullOrEmpty inside 2.0 code.
178 [Found using Gendarme]
180 2008-05-11 Roei Erez <roeie@mainsoft.com>
182 * SectionGroupInfo.cs: fix loading a SectionGroup without sections as childern.
184 2008-05-05 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
186 * ConfigurationElement.cs: don't fail when a mandatory property is a
187 configuration element itself.
189 2008-04-30 Marek Habersack <mhabersack@novell.com>
191 * ConfigurationElement.cs: HasLocalModifications considers a
192 property modifed locally if its origin is SetHere and it's been
195 2008-03-20 Igor Zelmanovich <igorz@mainsoft.com>
198 * ConfigurationElement.cs:
199 implement EvaluationContext property.
201 2008-03-01 Marek Habersack <mhabersack@novell.com>
203 * SectionInformation.cs: added an internal property -
204 ConfigFilePath, used when deserializing a section in
205 ConfigurationSection.GetRuntimeObject.
207 * Configuration.cs: set SectionInformation.ConfigFilePath when
208 getting an instance of a section.
210 * ConfigurationSection.cs: support the 'configSource' attribute
211 when section is read through GetRuntimeObject.
213 2008-02-21 Marek Habersack <mhabersack@novell.com>
215 * Configuration.cs: if the section being deserialized uses the
216 configSource attribute, call the section's DeserializeConfigSource
219 * SectionInfo.cs: WriteData takes care of writing the section data
220 to the configSource file, if any.
222 * ConfigurationSection.cs: moved reading of the configSource
223 external data file to a separate internal method,
224 DeserializeConfigSource. Section's source config file path is now
225 used to find the configSource.
226 SerializeSection now doesn't write the section content to the
227 passed writer if configSource was used. Writing of the section
228 data is now done in SectionInfo.
230 * ConfigurationElement.cs: added a new method -
231 HasLocalModifications which returns true of any of the element
232 properties have been set locally on that element.
234 2008-02-20 Marek Habersack <mhabersack@novell.com>
236 * ConfigurationSection.cs: support the "configSource" attribute
237 when deserializing a section. Contents of the file (if it exists)
238 replaces the previous section contents.
240 * ConfigurationElement.cs: ignore the "configSource" attribute if we're a
241 ConfigurationSection instance.
242 HasValues () returns true only if any of the properties has the
243 origin set to SetHere.
245 2008-02-07 Konstantin Triger <kostat@mainsoft.com>
247 * ClientConfigurationSystem.cs: performance: refactor out the Configuration
248 object construction from GetSection() to the ctor.
250 2008-01-16 Zoltan Varga <vargaz@gmail.com>
252 * ConfigurationElement.cs: Allow non-public constructors. Fixes #353554.
254 * PropertyInformation.cs: Allow non-public constructors. Fixes #353557.
256 * ConfigurationElement.cs: Consider non-public properties as well. Fixes
259 2008-01-12 Sebastien Pouliot <sebastien@ximian.com>
261 * ConfigurationLocationCollection.cs: Avoid infinite recursion.
262 Found using Gendarme.
264 2007-12-25 Konstantin Triger <kostat@mainsoft.com>
266 * KeyValueInternalCollection.cs: properly override NameValueCollection
267 to support interop with it.
269 2007-12-25 Konstantin Triger <kostat@mainsoft.com>
271 * ConfigurationElement.cs:
272 1. typo - pass the correct property to Attribute.GetCustomAttribute.
273 2. Pass oroginal exception as inner.
275 2007-12-05 Marek Habersack <mhabersack@novell.com>
277 * ConfigurationElement.cs: some property values may be null
278 objects in GetHashCode.
280 2007-11-23 Marek Habersack <mhabersack@novell.com>
282 * ConfigurationElementCollection.cs: ThrowOnDuplicate returns true
283 if the collection is one of the AddRemoveClearMap or
284 AddRemoveClearMapAlternate types.
286 2007-11-15 Atsushi Enomoto <atsushi@ximian.com>
288 Part of fix for bug #323708.
289 * ConfigurationSection.cs : in GetRuntimeObject(), take parent
290 section instance into consideration.
291 * SectionInformation.cs : to make it possible, GetParentSection()
292 should be implemented.
293 * Configuration.cs : to make it possible, GetSectionInstance()
294 should set parent section on its SectionInformation. It used to
295 just steal parent's xml when its own xml does not exist, but
296 it now blocks correct configuration retrieval.
298 2007-11-15 Atsushi Enomoto <atsushi@ximian.com>
300 * SectionGroupInfo.cs : remove extra StringBuilder creation.
302 2007-11-14 Atsushi Enomoto <atsushi@ximian.com>
304 * Configuration.cs : (Save) when the given file path is relative
305 it failed to create directory. Fixed standalone test t25/t26.
306 * InternalConfigurationHost.cs : pass userLevel to create a host
309 2007-10-04 Atsushi Enomoto <atsushi@ximian.com>
311 * InternalConfigurationHost.cs : when the streamName is for
312 machine.config, try get_bundled_machine_config() icall first.
313 This hopefully implements the requested feature in bug #325022.
314 * Configuration.cs : added comment.
316 2007-08-31 Gert Driesen <drieseng@users.sourceforge.net>
318 * ConfigurationManager.cs: Fixed line endings. Avoid warning by
319 changing accessibility of ChangeConfigurationSystem to internal.
320 * Configuration.cs: Fixed compiler warnings.
321 * DpapiProtectedConfigurationProvider.cs: Fixed line endings.
323 2007-08-21 Atsushi Enomoto <atsushi@ximian.com>
325 * ConfigurationManager.cs : To open exe configuration, use
326 GetEntryAssembly() first, and GetCallingAssembly() only when
327 it was not found. Should fix bug #82071.
329 2007-06-21 Atsushi Enomoto <atsushi@ximian.com>
331 * Configuration.cs, InternalConfigurationHost.cs :
332 configuration file to write might be given as an absolute path,
333 where the ancestor directories may not exist.
335 2007-06-20 Atsushi Enomoto <atsushi@ximian.com>
337 * ConfigurationManager.cs : in OpenExeConfiguration() and
338 OpenMappedExeConfiguration(), take userLevel into consideration.
339 * InternalConfigurationHost.cs : consider ConfigurationUserLevel and
340 use correct config map file in InitForConfiguration().
342 2007-06-18 Atsushi Enomoto <atsushi@ximian.com>
344 * ClientConfigurationSystem.cs : do not asume GetEntryAssembly()
345 returns non-null. Patch by Patrick Perry.
347 2007-06-13 Atsushi Enomoto <atsushi@ximian.com>
349 * ConfigurationElement.cs : SerializeToXmlElement() should be
350 called regardless of HasValues() return value, especially since
351 it could be overriden (e.g. in SettingsValueElement).
353 2007-06-13 Atsushi Enomoto <atsushi@ximian.com>
355 * ConfigurationSectionGroup.cs
356 Configuration.cs : ConfigurationSectionGroup must be initialized
357 at least when being added to a collection.
359 2007-06-12 Vladimir Krasnov <vladimirk@mainsoft.com>
361 * ConfigurationElement.cs: refactored GetKeyProperties and
362 GetDefaultCollection methods, map should not be used here, Properties
363 will do instead. Refactored ElementMap class
364 * ConfigurationElementCollection.cs: fixed InitFromProperty, GetMap()
365 should not be called here
366 * ElementInformation.cs: fixed Properties, moved to ctor to be thread
368 * PropertyInformation.cs: members assigned readonly modifier
370 2007-05-30 Marek Habersack <mhabersack@novell.com>
372 * SectionGroupInfo.cs: <location> elements are case-insensitive
373 and the same 'path' attribute may be used only once.
375 * ConfigurationLocationCollection.cs: Find should be
376 case-insensitive for all targets, not just TARGET_JVM.
378 2007-05-17 Igor Zelmanovich <igorz@mainsoft.com>
380 * Configuration.cs: FilePath implemented according to MSDN:
381 If the value for this FilePath property represents a merged view and
382 no actual file exists for the application, the path to the parent
383 configuration file is returned.
385 2007-05-15 Igor Zelmanovich <igorz@mainsoft.com>
388 * ConfigurationLocation.cs:
389 implemented EvaluationContext property.
391 2007-05-15 Igor Zelmanovich <igorz@mainsoft.com>
393 * ConfigurationLocationCollection.cs: for TARGET_JVM only:
394 location path is case-insensitive.
396 2007-05-15 Marek Habersack <mhabersack@novell.com>
398 * ConfigurationElement.cs: added value validation on
399 deserialization from the config file.
401 2007-05-14 Igor Zelmanovich <igorz@mainsoft.com>
403 * ConfigurationElement.cs: when attribute value cannot be parsed,
404 ConfigurationErrorException is thrown.
406 2007-05-09 Igor Zelmanovich <igorz@mainsoft.com>
408 * ConfigurationManager.cs:
409 added MonoLimitation attribute for TARGATE_JVM.
411 2007-05-08 Igor Zelmanovich <igorz@mainsoft.com>
413 * ConnectionStringSettingsCollection.cs: removed 'new' keyword, cause
414 property doesn't hide any inherit property.
416 2007-04-24 Atsushi Enomoto <atsushi@ximian.com>
418 * InternalConfigurationHost.cs : machine configuration covers all
419 ConfigurationAllowDefinition values.
421 2007-04-17 Atsushi Enomoto <atsushi@ximian.com>
423 * ConfigurationSectionCollection.cs : GetEnumerator() should return
424 IEnumerator for the items, not keys.
425 * ConfigurationProperty.cs : more helpful type mismatch message.
427 2007-04-16 Marek Habersack <mhabersack@novell.com>
429 * SectionGroupInfo.cs: another (and final, hopefully) fix for bug
430 #81321 and several other related issues that were discovered by
431 the way. Thanks to Atsushi for help with XmlReader!
433 2007-04-15 Marek Habersack <mhabersack@novell.com>
435 * SectionGroupInfo.cs: another incarnation of the fix for bug
438 2007-04-12 Marek Habersack <mhabersack@novell.com>
440 * SectionGroupInfo.cs: a better fix for #81321
442 2007-04-10 Marek Habersack <mhabersack@novell.com>
444 * SectionGroupInfo.cs: make sure empty sections with the
445 short-circuit tag ends (<section/>) don't make the process loop
446 endlessly. Fixes bug #81321.
448 2007-03-22 Konstantin Triger <kostat@mainsoft.com>
450 * ConfigInfo.cs: should be able instantiate types with private ctors.
452 2007-03-19 Vladimir Krasnov <vladimirk@mainsoft.com>
454 * ConfigurationSectionCollection.cs,
455 * ConfigurationSectionGroupCollection.cs,
456 * PropertyInformationCollection.cs,
457 * SectionGroupInfo.cs: used StringComparer.Ordinal instead of
460 2007-03-15 Vladimir Krasnov <vladimirk@mainsoft.com>
462 * ConfigurationSectionCollection.cs,
463 * ConfigurationSectionGroupCollection.cs,
464 * PropertyInformationCollection.cs,
465 * SectionGroupInfo.cs: these collections should be based on case
466 insensitive NameObjectCollectionBase
467 * added OrdinalComparer.cs for use in NameObjectCollectionBase
469 2007-02-07 Atsushi Enomoto <atsushi@ximian.com>
471 * SectionInfo.cs : don't stop at restartOnExternalChanges attribute.
473 2007-01-16 Konstantin Triger <kostat@mainsoft.com>
475 * ConfigurationElement.cs: ignore properties with null or empty name.
477 2007-01-16 Konstantin Triger <kostat@mainsoft.com>
479 * ConfigurationElement.cs: Try to deserilalize an unrecognized element by
480 current element, and only if failed delegate to default collection.
482 2006-12-27 Vladimir Krasnov <vladimirk@mainsoft.com>
484 * ConfigurationElementCollection.cs: fixed BaseAdd, looking for
485 identical element when collection type is not alternate
487 2006-12-27 Vladimir Krasnov <vladimirk@mainsoft.com>
489 * ConnectionStringSettingsCollection.cs: made connection string key
492 2006-12-27 Atsushi Enomoto <atsushi@ximian.com>
494 * ConfigurationElementCollection.cs : fixed BaseAdd() with
495 throwIfExists to not raise an error for identical element
496 but for different element which shares the same key. Fix by
499 2006-12-21 Vladimir Krasnov <vladimirk@mainsoft.com>
501 * ConfigurationProperty.cs: fixed DefaultValue of type Enum
503 2006-12-10 Konstantin Triger <kostat@mainsoft.com>
505 * ConfigurationElement.cs: Delegate parameter checking and default
506 assigning to Configuratin property.
507 * ConfigurationProperty.cs:
508 Ensure the TypeConvert and Validator always exist.
509 Ensure the primitive types are properly initialized.
511 2006-12-09 Vladimir Krasnov <vladimirk@mainsoft.com>
513 * ConfigurationElementCollection.cs
514 * ConfigurationRemoveElement.cs: fixed key for <remove> element in
515 ConfigurationRemoveElement class
517 2006-11-28 Marek Habersack <grendello@gmail.com>
519 * SectionGroupInfo.cs: Implement merging of section groups with
520 the same names and parents.
522 * ConfigInfo.cs: Add an abstract method for merging sections.
524 * SectionInfo.cs: Add implementation of an abstract base method
526 2006-08-23 Konstantin Triger <kostat@mainsoft.com>
528 * SectionInfo.cs: refactoring - remove unneeded bool? usage.
530 2006-11-05 Vladimir Krasnov <vladimirk@mainsoft.com>
532 * added: ConfigurationRemoveElement.cs, common element for <remove>
533 * ConnectionStringSettingsCollection.cs: reverted last fix for
535 * ConfigurationElementCollection.cs: fixed the way that
536 OnDeserializeUnrecognizedElement method handles <remove> element
538 2006-11-02 Vladimir Krasnov <vladimirk@mainsoft.com>
540 * ConfigurationElement.cs: typo in DefaultCollectionProperty
543 2006-10-30 Joel Reed <joel.reed@ddiworld.com>
545 * NameValueConfigurationCollection.cs: Implement the Properties
548 2006-08-23 Konstantin Triger <kostat@mainsoft.com>
550 * ConfigurationLocation.cs: do not read root element, correctly close stream.
551 * Configuration.cs: use ReadData for nested content to throw if location
552 elements are encounterd.
553 In constructor taking parent Configurqation: do not call Init and so avoid
554 rereading config file.
556 2006-09-05 Vladimir Krasnov <vladimirk@mainsoft.com>
558 * NameValueConfigurationElement.cs: fixed functionality
559 * ConfigurationElementCollection.cs,
560 ConnectionStringSettingsCollection.cs: fixed <remove> element in
561 connectionStrings section
563 2006-08-23 Konstantin Triger <kostat@mainsoft.com>
565 * ConfigurationSection.cs: for net 1.1 SectionHandlers: return null in case
566 RawXml is null, as net 1.1 does.
568 2006-08-17 Vladimir Krasnov <vladimirk@mainsoft.com>
570 * ConfigurationFileMap.cs: added TARGET_JVM on not supported members
573 2006-07-07 Atsushi Enomoto <atsushi@ximian.com>
575 * ConfigurationManager.cs : OpenExeConfiguration(null) should still
576 work. This is required for embedded scenario.
578 2006-06-10 Atsushi Enomoto <atsushi@ximian.com>
580 * SectionGroupInfo.cs : skip <dllmap> in configuration.
582 2006-05-14 Atsushi Enomoto <atsushi@ximian.com>
584 * ConfigurationManager.cs: since ConfigurationSystem is different
585 for web.config, cast from ConfigurationSection to runtime object
586 should be done at GetSection().
587 This really fixed bug #78372.
589 2006-05-12 Atsushi Enomoto <atsushi@ximian.com>
591 * Configuration.cs : configPath is null for machine.config, so don't
592 use it. Use streamName instead. To my understanding, this should
595 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
597 * ConnectionStringSettings.cs : it seems that "name" property
598 could be null i.e. there is no StringValidator.
599 * StringValidator.cs : allow null.
601 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
603 * ConfigurationManager.cs : use GetCallingAssembly() instead of
604 GetEntryAssembly() which possibly returns null (e.g. nunit) in
605 OpenExeConfiguration(). Several nunit test failures are gone.
607 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
609 * ConnectionStringSettings.cs : oops, this API fix broke standalone
612 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
614 * ConfigurationElement.cs,
615 ConfigurationErrorsException.cs,
616 ConfigurationUserLevel.cs,
617 ConfigurationPropertyOptions.cs,
618 ConnectionStringSettings.cs : assorted minor corcompare fixes.
620 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
622 * Configuration.cs : some kind of refactoring is absolutely needed
623 here. Reuse RawXml from parentSection when data was not available
624 on current section. This should fix bug #78353.
626 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
628 * ConfigurationElement.cs,
630 in some cases RawXml was set null string, so skip such cases.
631 * Configuration.cs : support IConfigurationSectionHandler here.
632 * ConfigurationManager.cs : GetSection() now returns name value
633 collection, not a section.
634 * ConfigurationSection.cs : added SectionHandler for
635 IConfigurationSectionHandler support, and use its Create() in
637 * ClientConfigurationSystem.cs :
638 use GetRuntimeObject() in GetSection(). Thus now
639 ConfigurationManager.GetSection() returns a runtime object.
642 2006-04-28 Atsushi Enomoto <atsushi@ximian.com>
644 * SectionGroupInfo.cs :
645 sections which are defined in sectionGroups could be directly
646 referenced, so search corresponding section recursively.
647 * DefaultSection.cs : It does not reject unrecognized contents.
649 2006-04-26 Chris Toshok <toshok@ximian.com>
651 * SectionInformation.cs (.ctor): add MonoTODO about the default
652 value for require_permission.
653 (RequirePermission): implement the getter/setter for this so
654 Atsushi's previous commit doesn't break everything :)
656 2006-04-26 Atsushi Enomoto <atsushi@ximian.com>
659 SectionInfo.cs : added support for "requirePermission" attribute
660 in "section" element. This fixes bug #77957.
662 2006-04-25 Chris Toshok <toshok@ximian.com>
664 * ConfigurationElementCollection.cs (Reset): it makes no sense to
665 pass the typename to CreateNewElementInternal. the argument is
666 the elementname. pass null instead.
669 2006-02-01 Atsushi Enomoto <atsushi@ximian.com>
671 * ConfigurationElement.cs : ListErrors() and SetPropertyValue()
673 * ConfigurationSection.cs : the .ctor() is protected.
674 * ConfigurationElementCollection.cs : CollectionType is public.
675 Count and BaseAdd() are not virtual.
676 * ConfigurationPropertyCollection.cs : Count is not virtual.
678 2006-02-01 Chris Toshok <toshok@ximian.com>
680 * ConfigurationElement.cs: revert the patch that stores and writes
681 out xmlns attributes for all elements.
683 * ClientConfigurationSystem.cs: SupportsUserConfig == false.
685 * AppSettingsSection.cs (GetRuntimeObject): call col.SetReadOnly()
686 only if SupportsUserConfig != true.
688 * ConfigurationManager.cs (ConfigurationSystem): add a property
689 like ConfigurationFactory, and use it instead of the private field
692 2006-01-26 Chris Toshok <toshok@ximian.com>
694 * SectionGroupInfo.cs (ReadContent): handle "location" (seemingly)
697 * InternalConfigurationRoot.cs: misc logical additions. still
700 * ConfigurationManager.cs (OpenExeConfigurationInternal): throw an
701 exception if both calling_assembly and exePath are null. Allow
702 the exePath to be a path to a config file as well, checking to see
703 if it ends in .config before appending.
704 (OpenExeConfiguration): stop blindly passing
705 Assembly.GetCallingAssembly. I'm assuming this will likely break
706 .dll.config usage. need to investigate that (and write more unit
708 (GetSection): call configSystem.GetSection.
709 (RefreshSection): call configSystem.RefreshSection.
710 (ChangeConfigurationSystem): modeled after the
711 ConfigurationSettings System.Web hack - allow
712 WebConfigurationManager to replace the current
713 IInternalConfigSystem.
715 * InternalConfigurationHost.cs (InternalConfigurationHost): make
716 abstract, and remove all the NotImplenmentedException's.
718 * ConfigurationElement.cs (DeserializeElement): store off the xml
719 namespace if there is one.
720 (SerializeElement): write out the namespace if there was one.
722 * ClientConfigurationSystem.cs: new class, based on some stack
723 traces I've seen in tests. Kinda (well, not *kinda*..) hacky.
725 * Configuration.cs (NamespaceDeclared): implement.
726 (Load): don't swallow all exceptions, just the ones raised when we
727 open the stream for reading.
728 (ReadConfigFile): handle xmlns.
730 2006-01-25 Chris Toshok <toshok@ximian.com>
732 * ConfigInfo.cs (ThrowException): throw a
733 ConfigurationErrorsException, not a ConfigurationException.
735 * SectionGroupInfo.cs (ReadContent): throw an exception
736 unconditionally if we see a <location>. they aren't valid in
739 2006-01-25 Chris Toshok <toshok@ximian.com>
741 * KeyValueInternalCollection.cs: don't use a nested collection,
742 just defer to our base class. This fixes usage of
743 ConfigurationManager.AppSettings.Keys.
745 2006-01-13 Chris Toshok <toshok@ximian.com>
747 * AppSettingsSection.cs (GetRuntimeObject): only access
748 Settings[key] once per iteration.
750 2006-01-09 Chris Toshok <toshok@ximian.com>
752 * ConfigurationManager.cs (AppSettings): just return
753 AppSettingsSection.GetRuntimeObject() here.
755 * AppSettingsSection.cs: fix the "file" property to match dumper
757 (GetRuntimeObject): this returns a KeyValueInternalCollection in
760 2006-01-09 Chris Toshok <toshok@ximian.com>
762 * ElementInformation.cs (Validator): if propertyInfo == null,
763 return a DefaultValidator instance.
765 2006-01-09 Chris Toshok <toshok@ximian.com>
767 * AppSettingsSection.cs (.cctor): specify null for
770 * ProtectedProviderSettings.cs (.cctor): specify null for
773 2006-01-03 Chris Toshok <toshok@ximian.com>
775 * Configuration.cs (SaveAs): open with FileMode.OpenOrCreate so we
776 can save to a new file.
777 (CreateSection): don't bother to set the section information's
778 Name here. we'll do it in SectionInfo.CreateInstance.
780 * ProtectedConfiguration.cs (Section): new static property so we
781 can remove all the GetSection calls.
782 (GetProvider): load a named provider, optionally throwing an
783 exception if it's not found.
785 * InternalConfigurationHost.cs (EncryptSection, DecryptSection):
786 make these private interface implementations, and call
787 protectedSection.{EncryptSection,DecryptSection}.
789 * ProtectedConfigurationSection.cs (EncryptSection,
790 DecryptSection): add these two calls. They really shouldn't be
791 here, but I saw them in an MS stack trace and thought "why not?".
793 * ConfigurationSection.cs (SectionInformation): don't set
794 attributes here, that's done in SectionInfo.CreateInstance.
795 (DeserializeSection): shoehorn in the decryption stuff here. It
796 doesn't belong here, and I've added a MonoTODO about it. It
797 should live someplace like SectionInfo.ReadData (which would make
798 it similar to the encryption stuff in .WriteData).
800 * SectionInformation.cs (IsProtected): remove the special flag,
801 just return true if we have a non-null protection_provider.
802 (ProtectSection): do nothing but try to instantiate the named
804 (UnprotectSection): null out protection_provider.
806 * DpapiProtectedConfigurationProvider.cs: move the
807 NotSupportedExceptions to Decrypt/Encrypt so we don't bomb out
808 when parsing our machine.config file.
810 * RsaProtectedConfigurationProvider.cs: initial implementation.
811 much is missing (OAEP support, key importing, adding/deleting
812 keys), but it can be used.
814 2006-01-02 Chris Toshok <toshok@ximian.com>
816 * RsaProtectedConfigurationProvider.cs: implement the
817 CspProviderName and UseOAEP properties..
819 2006-01-02 Chris Toshok <toshok@ximian.com>
821 * ProtectedConfigurationSection.cs: flesh this out (and add logic
822 to instantiate providers, based on some of the standalone test
823 exception stack traces.)
825 * ProtectedConfiguration.cs: new implementation.
827 * ProtectedConfigurationProviderCollection.cs: new
830 * ProtectedProviderSettings.cs: new implementation.
832 * ProtectedConfigurationProvider.cs: trim the superclass's name.
834 * RsaProtectedConfigurationProvider.cs: stubbed, unimplemented.
836 * DpapiProtectedConfigurationProvider.cs: add stubbed
837 implementation that throws NotSupportedException telling people
838 they should be using RsaProtectedConfigurationProvider.
840 2006-01-02 Chris Toshok <toshok@ximian.com>
842 * DefaultSection.cs (Properties): implement.
844 * IgnoreSection.cs: move from lazily creating the properties
845 collection to sharing a single one across all instances.
847 * ConfigurationLockCollection.cs (IsReadOnly): fix compiler warning.
849 * ConfigurationElementCollection.cs (BaseAdd) remove logic to
850 remove an old matching element.
851 (BaseGetKey): throw an exception if @index is out of range.
853 * SectionInformation.cs (SectionName): just return name, like Name
854 does.. redundant, but it matches tests.
855 (GetRawXml): implement.
856 (SetRawXml): implement.
858 * ConfigurationSection.cs (SectionInformation): fill in
859 sectionInformation.Type before returning.
860 (DeserializeSection): save off the raw xml to our
863 * ConfigurationElement.cs (LockItem): implement.
864 (DeserializeElement): add support for the "lockItem" attribute.
866 2005-12-16 Chris Toshok <toshok@ximian.com>
868 * ConfigurationLockCollection.cs (Add): only add the name if it's
870 (IsReadOnly): always return false for the time being, in the
871 non-exceptional case.
873 2005-12-15 Chris Toshok <toshok@ximian.com>
875 * ConfigurationElement.cs (LockAllAttributesExcept): implement.
876 (LockAllElementsExcept): implement.
877 (DeserializeElement): handle the built-in attributes (lock* for
880 2005-12-15 Chris Toshok <toshok@ximian.com>
882 * ConfigurationLockCollection.cs (..ctor): don't call Populate.
884 (CheckName): make sure the passes in name is valid for this type
886 (Add): call CheckName, and set is_modified to true.
887 (Clear): set is_modified.
888 (IsReadOnly): add plausable implementation, including exception in
889 the case where the name isn't found.
890 (Remove): set is_modified.
891 (SetFromList): implement.
892 (get_AttributeList): implement.
893 (set_IsModified): add internal setter so we can clear the modified
896 2005-12-12 Chris Toshok <toshok@ximian.com>
898 * AppSettingsSection.cs (DeserializeElement): provide rather naive
899 version of the file="" handling. It's enough to make our tests
902 2005-12-11 Chris Toshok <toshok@ximian.com>
904 * ConnectionStringsSection.cs (..cctor): use "" instead of null
905 for the name of the default collection.
907 * AppSettingsSection.cs (..cctor): create a property for the
909 (DeserializeElement): call base.DeserializeElement.
910 (File): index off the property, not the name.
911 (Settings): don't use an private variable here, use
914 * ConfigurationManager.cs (GetSection): GetEntryAssembly returns
915 null for new app domains. so deal with this by calling
916 GetCallingAssembly if it's null. This is probably still wrong but
917 it doesn't NRE in xsp2.
918 (AppSettings): remove MonoTODO.
920 * KeyValueConfigurationElement.cs (..ctor): new method, create the
921 ConfigurationProperty's and the collection here.
922 (.ctor): add internal arg-less ctor.
923 (Key): use keyProp instead of "key".
924 (Value): use vlaueProp instead of "value".
925 (Properties): return our class's properties.
927 * KeyValueConfigurationCollection.cs (CreateNewElement): use the
929 (GetElementKey): re-enable the BaseIndexOf test.
931 2005-12-02 Chris Toshok <toshok@ximian.com>
933 * Configuration.cs (Save): call WriteStartDocument.
935 * ConnectionStringSettingsCollection.cs (CreateNewElement): use
936 parameter-less ctor to keep from generating exceptions when using
939 2005-12-02 Chris Toshok <toshok@ximian.com>
941 * ConnectionStringSettings.cs: tabify, fix default values, and add
942 a string validator for "name".
944 2005-12-02 Chris Toshok <toshok@ximian.com>
946 * CommaDelimitedStringCollectionConverter.cs (ConvertTo): change
947 the type check away from an exact check for
948 CommaDelimitedStringCollection to an assignable test from
949 StringCollection. This is due to the fact that AuthorizationRule
950 doesn't create CommaDelimitedStringCollections, for some odd
951 reason. It uses StringCollections.
953 * PropertyInformation.cs (Value): remove the case for
954 IsDefaultCollection - it's not necessary, as the property is an
957 * ConnectionStringSettings.cs: fix formatting and remove some
960 * ConnectionStringSettingsCollection.cs: same.
962 * ConnectionStringsSection.cs: same.
964 * ConfigurationElement.cs (SerializeToXmlElement): don't write the
965 enclosing start/end elements if the elementName is null or "".
966 this fixes the case for the DefaultCollections (at least in the
967 case of connectionStrings).
969 * IgnoreSection.cs (Properties): remove the MonoTODO.
971 * SectionInfo.cs (WriteData): remove the "<!-- dd -->" output.
973 2005-11-28 Chris Toshok <toshok@ximian.com>
975 * ProviderSettings.cs: use ConfigurationProperty's to implement
978 2005-11-24 Chris Toshok <toshok@ximian.com>
980 * ConfigurationProperty.cs (Validate): add internal method.
982 2005-11-24 Chris Toshok <toshok@ximian.com>
984 * ConfigurationElement.cs (ElementProperty): make this protected
985 internal virtual instead of public.
986 (SetPropertyValue): add a validator call and a blurb about the
987 code based on information gleaned from tests.
988 (set_Item (string)): call SetPropertyValue in the setter.
990 2005-11-14 Chris Toshok <toshok@ximian.com>
992 * CommaDelimitedStringCollection.cs: reformat things a bit, and
993 flag ToString() as override.
995 * DefaultSection.cs: new stubbed out implementation.
997 * CommaDelimitedStringCollectionConverter.cs: new implementation.
999 2005-11-10 Chris Toshok <toshok@ximian.com>
1001 * AppSettingsSection.cs (DeserializeElement): stop explicitly
1002 calling Settings.DeserializeElement, as the DefaultCollection
1005 * ConfigurationElement.cs (DeserializeElement): rework the loop
1006 here so that we actually loop over all the content elements.
1008 2005-11-09 Chris Toshok <toshok@ximian.com>
1010 * ConfigurationElement.cs: Add support for DefaultCollection
1013 * PropertyInformation.cs (PropertyInformation.Value): add case for
1014 IsDefaultCollection.
1016 * SectionGroupInfo.cs (SectionGroupInfo.ReadConfig): when we read
1017 a "type" attribute, make sure the cached System.Type is cleared.
1019 2005-10-25 Chris Toshok <toshok@ximian.com>
1021 * InfiniteTimeSpanConverter.cs: new implementation.
1023 * InfiniteIntConverter.cs: new implementation.
1025 * GenericEnumConverter.cs: new implementation.
1027 * Configuration.cs: we don't need to check with "is" after we use
1028 "as".. just check for null-ness.
1030 * KeyValueConfigurationCollection.cs: GetElementKey should throw
1031 NRE if element == null.
1033 * CommaDelimitedStringCollection.cs: raise the correct exceptions
1034 in the read only case, and return null from ToString if there are
1037 2005-10-25 Chris Toshok <toshok@ximian.com>
1039 * PositiveTimeSpanValidatorAttribute.cs: new implementation.
1041 * PositiveTimeSpanValidator.cs: new implementation.
1043 2005-10-24 Chris Toshok <toshok@ximian.com>
1045 * TimeSpanSecondsOrInfiniteConverter.cs: new implementation.
1047 * TypeNameConverter.cs: new implementation.
1049 * WhiteSpaceTrimStringConverter.cs: new implementation.
1051 2005-10-24 Chris Toshok <toshok@ximian.com>
1053 * AppSettingsSection.cs (DeserializeElement, SerializeSection):
1054 split the behavior based on if File == "". If it is, we do the
1055 default. otherwise we throw NIE.
1057 * ConnectionStringsSection.cs (DeserializeElement): we shouldn't
1058 need this, but we do until the IsDefaultCollection stuff is fixed.
1060 * ConfigurationElementCollection.cs
1061 (OnDeserializeUnrecognizedElement): for clearElementName, make
1062 sure we have no attributes.
1064 * ConnectionStringSettingsCollection.cs (get_Properties): for now
1065 just chain up to base.Properties.
1067 * ConfigurationElement.cs (ReflectProperties): do the default
1068 value/property type check in a more robust way, using
1071 2005-10-24 Chris Toshok <toshok@ximian.com>
1073 * ConfigurationElement.cs: treat
1074 ConfigurationProperty.NoDefaultValue the same as null when we're
1075 checking the default value's type. this fixes t13 and 14.
1077 * ConnectionStringsSection.cs (ConnectionStrings): fix the
1078 DefaultValue in the ConfigurationPropertyAttribute.
1080 2005-10-24 Chris Toshok <toshok@ximian.com>
1082 * KeyValueConfigurationCollection.cs (GetElementKey): sacrifice
1083 one test to get another working. Return a valid key even if the
1084 element is not in this collection.
1085 (get_ThrowOnDuplicate): return false.
1087 * ConfigurationElementCollection.cs (BaseAdd): if we're adding an
1088 element with the same key, overwrite the old one (remove the old
1089 one after inserting the new one). Also, re-enable the throwing of
1090 exceptions if ThrowOnDuplicate == true.
1092 2005-10-24 Chris Toshok <toshok@ximian.com>
1094 * AppSettingsSection.cs (Settings): fix ConfigurationProperty
1097 * ProtectedConfigurationSection.cs (Providers): same.
1099 2005-10-12 Chris Toshok <toshok@ximian.com>
1101 * ConfigurationPermission.cs: flesh out as per tests.
1103 2005-10-11 Chris Toshok <toshok@ximian.com>
1105 * ConfigurationProperty.cs: don't use null to mean no default
1106 value, use NoDefaultValue.
1108 2005-10-11 Chris Toshok <toshok@ximian.com>
1110 * KeyValueConfigurationCollection.cs (GetElementKey): duh.
1111 BaseGet calls GetElementKey, so we were hitting an infinite
1112 recursion here. Use BaseIndexOf instead.
1114 2005-10-07 Chris Toshok <toshok@ximian.com>
1116 * InternalConfigurationHost.cs: some interface work, adding in the
1119 * ConfigurationProperty.cs: remove debug spew.
1121 * Configuration.cs: add NIE'd NamespaceDeclared property.
1123 * ElementInformation.cs: add NIE'd Errors property.
1125 * PropertyInformationCollection.cs: add NIE'd GetObjectData().
1127 * ConfigurationManager.cs: quite a bit of new work here. Some
1128 definie TODO's still though.
1130 2005-10-07 Chris Toshok <toshok@ximian.com>
1132 * ConfigurationErrorsException.cs (.ctor): for the (string)
1133 overload, chain up to the base (string) ctor.
1135 2005-10-07 Chris Toshok <toshok@ximian.com>
1137 * ConfigurationElement.cs (ElementMap.ReflectProperties): make
1138 sure the type of the default value is compatible with that of the
1139 property itself, and throw ConfigurationErrorsException if they
1140 don't match. Fixes t12.
1142 2005-10-07 Chris Toshok <toshok@ximian.com>
1144 * ConfigHelper.cs: remove some unused code.
1146 * ConfigurationProperty.cs: disambiguate the ctor we chain to.
1148 * ConfigurationElement.cs (ElementProperty): implement.
1149 (ElementMap.ReflectProperties): make DefaultValidator the default
1150 validator, not null.
1152 2005-10-06 Chris Toshok <toshok@ximian.com>
1154 * KeyValueConfigurationElement.cs: uncomment out some stuff.
1155 (Properties): just return base.Properties. Not sure why they
1156 override this, as the base class's implementation passes our test.
1158 * KeyValueConfigurationCollection.cs (Add): for the keyValue
1159 overload, call keyValue.Init as the unit test stack traces
1160 indicates that'9s where it's called. For the string,string
1161 overload, just call the keyValue overload instead of calling
1163 (CreateNewElement): just use the name/value ctor, and specify ""
1165 (GetElementKey): this function always returns "" for elements that
1166 haven't been added to the collection. Once theyre added, it seems
1167 to always return keyValue.Key.
1168 (Properties): the unit tests show this returns a 0 length
1171 2005-10-05 Chris Toshok <toshok@ximian.com>
1173 * ConfigurationPermissionAttribute.cs: stub out.
1175 2005-10-05 Chris Toshok <toshok@ximian.com>
1177 * TimeSpanMinutesOrInfiniteConverter.cs: fill in the
1180 2005-10-05 Chris Toshok <toshok@ximian.com>
1182 * TimeSpanSecondsConverter.cs: new implementation.
1184 2005-10-05 Chris Toshok <toshok@ximian.com>
1186 * TimeSpanMinutesConverter.cs: flesh out implementation.
1188 * ConfigurationConverterBase.cs: make all subclasses work with
1189 strings only, since that's what seems to manifest itself in the
1192 2005-10-05 Chris Toshok <toshok@ximian.com>
1194 * ConfigurationLockCollection.cs: add NIE'd AttributeList
1197 * ConfigurationConverterBase.cs: add MonoTODO'd CanConvertFrom and
1198 CanConvertTo methods.
1200 * ConfigurationSectionGroup.cs: add NIE'd IsDeclared property.
1202 * ProtectedConfigurationSection.cs: add NIE'd properties.
1204 * ConfigurationElementCollection.cs: add MonoTODO'd IsReadOnly
1205 and SetReadOnly methods, and have then chain up to the base class.
1207 * KeyValueConfigurationCollection.cs: add the class level
1208 ConfigurationCollectionAttribute, and add a NIE'ed Properties
1211 * ProviderSettingsCollection.cs: add the class level
1212 ConfigurationCollectionAttribute, and add a "new" keyword to the
1213 this property. Also, nuke the Provider's property.
1215 * SectionInformation.cs: add some NEI'd properties.
1217 * ConfigurationSection.cs (ResetModified): leave the MonoTODO, but
1218 chain up to base class's method instead of throwing NIE.
1220 * ConnectionStringSettingsCollection.cs: add the class-level
1221 ConfigurationCollectionAttribute, and add the unimplemented
1222 Properties property.
1224 * ConfigurationErrorsException.cs: flesh this out, and add a
1225 pragma to disable the obsolete warnings from our base class.
1227 * ProviderSettings.cs: add unimplemented Properties property.
1229 * ConfigurationElement.cs: remove unnecessary
1230 EvaluationInformation.
1232 * InternalConfigurationRoot.cs: add unimplemented IsDesignTime
1235 * ConfigurationProperty.cs: add a missing ctor.
1237 * AppSettingsSection.cs: add missing "override" keyword.
1239 * ConnectionStringsSection.cs: remove override.
1241 * ConfigurationSectionCollection.cs: AllKeys -> Keys, and add
1242 unimplemented GetObjectData override.
1244 * ConfigurationSectionGroupCollection.cs: same.
1246 * ConfigurationCollectionAttribute.cs: add missing CollectionType
1249 2005-10-05 Chris Toshok <toshok@ximian.com>
1251 * ConfigurationPermission.cs: new implementation.
1253 * IgnoreSection.cs: new implementation.
1255 2005-10-05 Chris Toshok <toshok@ximian.com>
1257 * CommaDelimitedStringCollection.cs: new implementation.
1259 2005-10-05 Chris Toshok <toshok@ximian.com>
1261 * NameValueConfigurationCollection.cs: new implementation.
1263 * NameValueConfigurationElement.cs: new implementation.
1265 2005-10-05 Chris Toshok <toshok@ximian.com>
1267 * ValidatorCallback.cs: new implementation.
1269 * SubclassTypeValidator.cs, SubclassTypeValidatorAttribute.cs: new
1272 * CallbackValidator.cs, CallbackValidatorAttribute.cs: new
1275 * RegexStringValidator.cs, RegexStringValidatorAttribute.cs: new
1278 * LongValidator.cs, LongValidatorAttribute.cs: new implementation.
1280 * IntegerValidator.cs, IntegerValidatorAttribute.cs: new
1283 * DefaultValidator.cs: new implementation.
1285 2005-09-28 Chris Toshok <toshok@ximian.com>
1287 * ConfigurationElementCollection.cs: more work on the "<clear />"
1288 handling - just skip the element for now. this causes a failure
1289 in one test ('<clear hi="bye" />' doesn't throw an exception when
1290 it should), but it succeeds for collections that have required
1293 * ConnectionStringSettings.cs: providerName isn't a required
1296 * AppSettingsSection.cs (.cctor): initialize our "file" Property.
1299 (GetRuntimeObject): call the base class method instead of just
1302 * ConnectionStringsSection.cs: Add a hacky DeserializeElement
1303 method here (that isn't in MS's) for the time being so we actually
1304 deserialize our collection.
1306 2005-09-28 Chris Toshok <toshok@ximian.com>
1308 * KeyValueInternalCollection.cs: found this by way of a stack
1309 trace in one of the tests. A NameValueCollection that wraps a
1310 KeyValueConfigurationCollection.
1312 * Configuration.cs (Init): save off configPath.
1313 (EvaluationContext): new, mostly implemented.
1314 (GetSectionInstance): use IgnoreSection instead of
1316 (Load): don't fail when we can't load a file.
1318 * IgnoreSection.cs: replace RuntimeOnlySection with this new
1321 * RuntimeOnlySection.cs: nuke.
1323 2005-09-27 Chris Toshok <toshok@ximian.com>
1325 * TimeSpanMinutesOrInfiniteConverter.cs: this is sealed.
1327 2005-09-27 Chris Toshok <toshok@ximian.com>
1329 * ConfigurationProperty.cs: add IsDefaultCollection property.
1331 2005-09-27 Chris Toshok <toshok@ximian.com>
1333 * ConfigurationElementProperty.cs: new file.
1335 * ConfigurationLockCollection.cs: new file.
1337 * ConfigurationElementCollection.cs
1338 (OnDeserializeUnrecognizedElement): make sure we consume the
1339 <clear /> element so we don't into an endless loop.
1341 * ConfigurationElement.cs: add a bunch of NIE's properties.
1343 * ContextInformation.cs: Add NIE'ed IsMachineLevel property.
1345 2005-09-23 Chris Toshok <toshok@ximian.com>
1347 * AppSettingsSection.cs: fix build and add a couple of TODO'ed
1350 2005-09-23 Chris Toshok <toshok@ximian.com>
1352 * ProviderSettings.cs (Unmerge): track change to
1353 ConfigurationElement.Unmerge.
1355 * ConfigurationSection.cs: add functions nuked from
1356 ConfigurationElement here.
1358 * ConfigurationElementCollection.cs: add DebuggerDisplay attribute
1360 (BaseGetAllKeys): returns object[], not string[].
1361 (BaseGetKey): returns object, not string.
1362 (Unmerge): track change to ConfigurationElement.Unmerge signature.
1364 * ConfigurationElement.cs (ConfigurationElement.Unmerge): fix
1365 signature (drop the serializeCollectionKey parameter).
1368 2005-09-23 Chris Toshok <toshok@ximian.com>
1370 * StringValidator.cs: throw ArgumentException instead of
1371 ConfigurationErrorsException.
1373 2005-09-23 Chris Toshok <toshok@ximian.com>
1375 * ConnectionStringsSection.cs: track change to
1376 ConfigurationPropertyOptions.
1378 * ConfigurationPropertyAttribute.cs, ConfigurationProperty.cs,
1379 ProviderSettings.cs: track change to ConfigurationPropertyOptions.
1381 * ConnectionStringSettings.cs: track change to
1382 ConfigurationProprertyOptions, and add some ConfigurationProperty
1385 * ConfigurationPropertyOptions.cs: DefaultCollection ->
1386 IsDefaultCollection, Required -> IsRequired.
1388 2005-09-22 Chris Toshok <toshok@ximian.com>
1390 * PositiveTimeSpanValidator.cs: this lives in
1391 System.Web.Configuration, not System.Configuration.
1393 2005-09-22 Chris Toshok <toshok@ximian.com>
1395 * TimeSpanValidator.cs: change to ArgumentException and alter the
1398 2005-09-22 Chris Toshok <toshok@ximian.com>
1400 * ExeConfigurationFileMap.cs (ctor): init all the strings to "".
1402 2005-07-01 Lluis Sanchez Gual <lluis@novell.com>
1404 * ProviderSettings.cs: Implemented properties using property attributes.
1405 * ConfigurationElement.cs: Implemented ElementInformation property and
1406 moved there all value management.
1407 * ProtectedConfigurationProvider.cs: Set the correct base class.
1408 * SectionInformation.cs: Added missing AllowExeDefinition property.
1409 * TimeSpanValidatorAttribute.cs: Implemented.
1410 * StringValidator.cs: Implemented.
1411 * ProviderSettingsCollection.cs: Added missing class attribute.
1412 * ConfigurationSaveMode.cs: Fix enum values.
1413 * ConfigurationElementCollection.cs: Added Init method for initializing
1414 elements from properties.
1415 * StringValidatorAttribute.cs: Implemented.
1416 * ConfigurationLocation.cs: Added support for allowOverride flag.
1417 * TimeSpanMinutesOrInfiniteConverter.cs: Created skeleton class.
1418 * PositiveTimeSpanValidator.cs: Implemented.
1419 * TimeSpanMinutesConverter.cs: Created skeleton class.
1420 * SectionInfo.cs: Properly read, store and check the values of AllowLocation,
1421 AllowDefinition and AllowExeDefinition.
1422 * TimeSpanValidator.cs: Implemented.
1423 * ConfigurationConverterBase.cs: Created skeleton class.
1424 * InternalConfigurationHost.cs: Implemented IsDefinitionAllowed and
1425 VerifyDefinitionAllowed.
1426 * ConfigurationManager.cs: That class must be static.
1427 * PropertyInformationCollection.cs: Implemented.
1428 * Configuration.cs: Added some checks for AllowLocation, AllowDefinition and
1429 so on. In Save(), don't forget to save location elements.
1430 * ConfigurationProperty.cs: Keep track of collection attributes.
1431 * ConfigInfo.cs: Support overrideAllowed flag.
1432 * KeyValueConfigurationElement.cs: Define properties using attributes.
1433 * PropertyValueOrigin.cs: implemented.
1434 * PropertyInformation.cs: Mostly implemented.
1435 * SectionGroupInfo.cs: Properly propagate the overrideAllowed flag.
1436 * ElementInformation.cs: Mostly implemented.
1437 * ConfigurationPropertyAttribute.cs: Set the correct default value.
1438 * ConfigurationCollectionAttribute.cs: Implemented.
1440 2005-06-23 Lluis Sanchez Gual <lluis@novell.com>
1442 * SectionInfo.cs: Set the config host when loading the section.
1443 * InternalConfigurationHost.cs: Implemented some basic methods.
1444 * Configuration.cs: Find the correct parent for the configuration,
1445 taking into accound locations and such. Use Host functions to get
1447 * ConfigurationLocationCollection.cs: Added find method.
1448 * ConfigInfo.cs: Added Host property.
1449 * InternalConfigurationFactory.cs: The InitForConfiguration calls
1450 are now done in each correspoding configuration.
1451 * SectionGroupInfo.cs: When reading a location element, create
1452 a Configuration object for each path specified in the location.
1453 * ConfigurationElementCollection.cs: Added the CreateNewElementInternal
1454 method, which properly initializes the created element.
1455 * ConfigurationLocation.cs: OpenConfiguration now has to read the
1456 xml contents. It also has to find the correct parent configuration,
1457 if it has not been specified.
1459 2005-06-17 Lluis Sanchez Gual <lluis@novell.com>
1461 * SectionInfo.cs, ConfigInfo.cs, SectionGroupInfo.cs: Minor api fixes.
1462 * ConfigurationPropertyCollection.cs: Added Clear method.
1463 * ContextInformation.cs: Implemented.
1464 * ConfigurationManager.cs: Implemented some missing methods.
1465 Configuration objects are now created through the ConfigurationFactory.
1466 * InternalConfigurationHost.cs: Implementation of IInternalConfigHost
1467 to be used for exe files and machine.config.
1468 * ConfigurationFileMap.cs: Implemented.
1469 * Configuration.cs: Read and write config files using the methods that
1470 IInternalConfigHost provides.
1471 * InternalConfigurationRoot.cs: IInternalConfigRoot stub.
1472 * ExeContext.cs: Implemented.
1473 * AppSettingsSection.cs: Use the KeyValueConfigurationCollection
1474 collection to store values.
1475 * KeyValueConfigurationElement.cs: Implemented.
1476 * KeyValueConfigurationCollection.cs: Implemented.
1477 * InternalConfigurationFactory.cs: An implementation of
1478 IInternalConfigConfigurationFactory.
1479 * ConfigurationPropertyAttribute.cs: Added missing attributes.
1480 * ExeConfigurationFileMap.cs: Implemented.
1482 2005-06-15 Lluis Sanchez Gual <lluis@novell.com>
1484 * ConfigurationElement.cs, ConfigurationErrorsException.cs
1485 SectionInfo.cs, ConnectionStringSettingsCollection.cs,
1486 ConfigurationPropertyCollection.cs, ProtectedConfigurationProvider.cs,
1487 ConfigurationSection.cs, NonEmptyStringConfigurationProperty.cs,
1488 ConfigurationElementCollectionType.cs, Configuration.cs,
1489 ConnectionStringSettings.cs, ConfigurationProperty.cs,
1490 ConfigurationLocationCollection.cs, TimeSpanConfigurationProperty.cs,
1491 ConfigurationAllowDefinition.cs, ConfigInfo.cs,
1492 ConfigurationSectionGroupCollection.cs, AppSettingsSection.cs,
1493 ProviderSettingsCollection.cs, IntegerConfigurationProperty.cs,
1494 SectionGroupInfo.cs, ConfigurationUserLevel.cs,
1495 ConnectionStringsSection.cs, ConfigurationPropertyAttribute.cs,
1496 ConfigurationLocation.cs, ConfigurationSectionCollection.cs,
1497 ConfigurationSectionGroup.cs, RuntimeOnlySection.cs,
1498 ProviderSettings.cs:
1501 * ConfigurationElementCollection.cs: Implemented support for Basic
1502 collection type. Other fixes.
1504 * ConfigurationPropertyFlags.cs: Renamed to ConfigurationPropertyOptions.
1505 * ConfigurationUpdateMode.cs: Renamed to ConfigurationSaveMode.
1507 * SectionInformation.cs, ConfigurationAllowExeDefinition.cs
1508 ConfigurationManager.cs, ConfigurationSaveMode.cs,
1509 ConfigurationValidatorAttribute.cs, ProtectedConfigurationSection.cs,
1510 ConfigurationValidatorBase.cs, ConfigurationPropertyOptions.cs:
1513 * ConfigurationValidationAttribute.cs: Removed.
1515 * ProviderBase.cs: Moved to System.dll.
1517 2005-06-14 Lluis Sanchez Gual <lluis@novell.com>
1519 * AppSettingsSection.cs, ConfigInfo.cs, Configuration.cs
1520 ConfigurationAllowDefinition.cs, ConfigurationElement.cs
1521 ConfigurationElementCollection.cs, ConfigurationElementCollectionType.cs
1522 ConfigurationLocation.cs, ConfigurationLocationCollection.cs
1523 ConfigurationProperty.cs, ConfigurationPropertyAttribute.cs
1524 ConfigurationPropertyCollection.cs, ConfigurationPropertyFlags.cs
1525 ConfigurationSection.cs, ConfigurationSectionCollection.cs
1526 ConfigurationSectionGroup.cs, ConfigurationSectionGroupCollection.cs
1527 ConfigurationUpdateMode.cs, ConfigurationUserLevel.cs
1528 ConfigurationValidationAttribute.cs, ConnectionStringsSection.cs
1529 ConnectionStringSettingsCollection.cs, ConnectionStringSettings.cs
1530 IntegerConfigurationProperty.cs, NonEmptyStringConfigurationProperty.cs
1531 NonEmptyStringFlags.cs, PathLevel.cs, ProtectedConfigurationProvider.cs
1532 ProviderBase.cs, ProviderSettings.cs, ProviderSettingsCollection.cs
1533 RuntimeOnlySection.cs, SectionInfo.cs, SectionGroupInfo.cs
1534 TimeSpanConfigurationProperty.cs, TimeSpanPropertyFlags.cs
1535 TimeSpanSerializedFormat.cs:
1537 Moved from the System assembly.