1 2010-01-09 Marek Habersack <mhabersack@novell.com>
3 * ConfigurationLocation.cs: trailing / characters are removed from
6 * Configuration.cs: instances created for locations inherit
7 ConfigPath from their containing document.
8 Host.GetConfigPathFromLocationSubPath must be called with current
9 instance's configPath, not LocationConfigPath.
10 Locations are sought for using paths relative to the current
11 instance's configPath, not to the root path.
12 All of the above is part of fix for bug #568441
14 2009-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16 * SectionInformation.cs: ConfigSource should never be null, but empty.
17 Also, the Type property should throw an argument exception if the
18 new value is null or empty.
21 2009-10-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
23 * Configuration.cs: make this work again with bundled configuration
24 files. Fixes bug #495957. Patch from Tor Lillqvist.
26 2009-07-17 Gonzalo Paniagua Javier <gonzalo@novell.com>
28 * ConfigurationElement.cs: don't skip xml nodes when reading 2
29 ConfigurationElement in a row. Patch by Greg Smolyn that fixes bug
32 2009-07-15 Marek Habersack <mhabersack@novell.com>
34 * Configuration.cs: explicitly flush the stream when writing XML
35 data. Part of fix for bug #522017
37 2009-07-14 Marek Habersack <mhabersack@novell.com>
39 * ConfigurationSaveEventArgs.cs, ConfigurationSaveEventHandler.cs:
42 * Configuration.cs: added two internal events - SaveStart and
43 SaveEnd. They are used by System.Web's configuration system to
44 suppress application reloads when configuration is modified and
45 saved from within a web application. It is necessary to use events
46 since there is no guarantee the web application will use
47 WebConfigurationManager (and thus WebConfigurationHost) for
50 2009-06-08 Marek Habersack <mhabersack@novell.com>
52 * ConfigurationLocation.cs: if the path passed to constructor
53 starts with any of ' ' '.' '/' or '\', throw an exception. Fixes
56 2008-12-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
58 * Configuration.cs: don't try to open the file if we know it does not
59 exist. Also, don't hide the actual exception in case there's a problem
60 opening the configuration file.
62 2008-11-15 Gonzalo Paniagua Javier <gonzalo@novell.com>
64 * ConfigurationManager.cs: the config file name is arbitrary.
67 2008-11-10 Gonzalo Paniagua Javier <gonzalo@novell.com>
69 * ConfigurationManager.cs: when we're dealing with an EXE hosted
70 application, the configuration file is the one for the AppDomain,
71 otherwise we might try to get a config file for a dll. Fixes the
72 regression in 2.0 sys.config.
74 2008-07-09 Marek Habersack <mhabersack@novell.com>
76 * ConfigurationManager.cs: implemented a work-around for
77 OpenExeConfiguration ("") not working with ASP.NET apps properly.
79 2008-07-07 Rodrigo Kumpera <rkumpera@novell.com>
81 * ConfigurationManager.cs: Return the right path if the calling assembly is
82 not null. This happens when ConfigurationSession::GetRuntimeObject() is
83 called, SectionHandler != null and the handler itself calls
84 OpenExeConfigurationInternal ("").
86 2008-07-07 Rodrigo Kumpera <rkumpera@novell.com>
88 * ClientConfigurationSystem.cs:
89 * ConfigurationManager.cs: Reaply the patch from Gert.
90 This change doesn't contain any fix to to not clutter
93 2008-07-07 Rodrigo Kumpera <rkumpera@novell.com>
95 * ClientConfigurationSystem.cs:
96 * ConfigurationManager.cs: The previous patch since it
97 causes a regression. It will remain reverted until we figure
98 out what's wrong and how to fix it.
100 2008-07-02 Gert Driesen <drieseng@users.sourceforge.net>
102 * ClientConfigurationSystem.cs: Moved logic for defaulting to
103 configuration file of AppDomain to OpenExeConfigurationInternal.
104 * ConfigurationManager.cs (OpenExeConfigurationInternal):
105 Allow calling_assembly and exePath to be null. When userLevel is None,
106 default to configuration file of AppDomain if exePath is null or empty.
107 When exePath is specified, resolve it to absolute path and throw
108 ConfigurationErrorsException if exePath does not exist and add
109 .config extension to get config file name if exePath does exist.
111 2008-06-27 Atsushi Enomoto <atsushi@ximian.com>
113 * SectionInfo.cs, Configuration.cs, ConfigInfo.cs,
114 SectionGroupInfo.cs :
115 eliminate XmlTextReader, first stage.
117 2008-06-27 Atsushi Enomoto <atsushi@ximian.com>
119 * ConfigurationErrorsException.cs : recover from
120 silly change that tries to prevent debuggin by
121 decreasing error location information.
123 2008-06-26 Gert Driesen <drieseng@users.sourceforge.net>
125 * ConfigurationElement.cs: Use ConfigurationErrorsException instead of
126 ConfigurationException, and pass reader to ConfigurationErrorsException
127 ctor to allow for file/linenumber info in exception message.
128 * ConfigurationErrorsException.cs: Removed local bareMessage field, and
129 use base.BareMessage field instead. Fixed Message property to only add
130 filename if not null or zero-length string, and only add line if not
131 zero. In GetFilename/GetLineNumber overloads, only try to get info if
132 node/reader implements IConfigErrorInfo.
133 * ConfigurationSection.cs: Use ConfigXmlTextReader instead of
134 XmlTextReader to allow for file/linenumber info in exception messages.
135 * ConfigXmlTextReader.cs: Added XmlTextReader that implements
137 * ConfigurationLocation.cs: Use ConfigXmlTextReader instead of
138 XmlTextReader to allow for file/linenumber info in exception messages.
139 * ClientConfigurationSystem.cs: Perform lazy initialization and
140 wrap exceptions in ConfigurationErrorsException. Fixes standalone test
142 * Configuration.cs: Use ConfigXmlTextReader instead of XmlTextReader
143 to allow for file/linenumber info in exception messages.
144 * ConfigInfo.cs: Fixed ThrowException to use file/number info available
145 in XmlTextReader for exception message.
146 * AppSettingsSection.cs: Use ConfigXmlTextReader instead of
147 XmlTextReader to allow for file/linenumber info in exception messages.
149 2008-06-19 Jb Evain <jbevain@novell.com>
151 * ConfigurationPermissionAttribute.cs (CreatePermission): implement.
153 2008-05-28 Marek Habersack <mhabersack@novell.com>
155 * Configuration.cs: set the ConfigContext when getting
156 and instance of a section. Fix for bug #325128.
158 * ConfigurationSection.cs: added an internal property -
159 ConfigContext used to supply the HttpContext to the Create
160 method of SectionHandler when called from GetRuntimeObject.
163 * InternalConfiguationHost.cs: changed CreateDeprecatedConfigContext
164 to return null rather than throwing a NotImplementedException.
167 * All patches above contributed by James Fitzsimons <james.fitzsimons@gmail.com>,
170 2008-05-18 Sebastien Pouliot <sebastien@ximian.com>
172 * SectionGroupInfo.cs: Use String.IsNullOrEmpty inside 2.0 code.
173 [Found using Gendarme]
175 2008-05-11 Roei Erez <roeie@mainsoft.com>
177 * SectionGroupInfo.cs: fix loading a SectionGroup without sections as childern.
179 2008-05-05 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
181 * ConfigurationElement.cs: don't fail when a mandatory property is a
182 configuration element itself.
184 2008-04-30 Marek Habersack <mhabersack@novell.com>
186 * ConfigurationElement.cs: HasLocalModifications considers a
187 property modifed locally if its origin is SetHere and it's been
190 2008-03-20 Igor Zelmanovich <igorz@mainsoft.com>
193 * ConfigurationElement.cs:
194 implement EvaluationContext property.
196 2008-03-01 Marek Habersack <mhabersack@novell.com>
198 * SectionInformation.cs: added an internal property -
199 ConfigFilePath, used when deserializing a section in
200 ConfigurationSection.GetRuntimeObject.
202 * Configuration.cs: set SectionInformation.ConfigFilePath when
203 getting an instance of a section.
205 * ConfigurationSection.cs: support the 'configSource' attribute
206 when section is read through GetRuntimeObject.
208 2008-02-21 Marek Habersack <mhabersack@novell.com>
210 * Configuration.cs: if the section being deserialized uses the
211 configSource attribute, call the section's DeserializeConfigSource
214 * SectionInfo.cs: WriteData takes care of writing the section data
215 to the configSource file, if any.
217 * ConfigurationSection.cs: moved reading of the configSource
218 external data file to a separate internal method,
219 DeserializeConfigSource. Section's source config file path is now
220 used to find the configSource.
221 SerializeSection now doesn't write the section content to the
222 passed writer if configSource was used. Writing of the section
223 data is now done in SectionInfo.
225 * ConfigurationElement.cs: added a new method -
226 HasLocalModifications which returns true of any of the element
227 properties have been set locally on that element.
229 2008-02-20 Marek Habersack <mhabersack@novell.com>
231 * ConfigurationSection.cs: support the "configSource" attribute
232 when deserializing a section. Contents of the file (if it exists)
233 replaces the previous section contents.
235 * ConfigurationElement.cs: ignore the "configSource" attribute if we're a
236 ConfigurationSection instance.
237 HasValues () returns true only if any of the properties has the
238 origin set to SetHere.
240 2008-02-07 Konstantin Triger <kostat@mainsoft.com>
242 * ClientConfigurationSystem.cs: performance: refactor out the Configuration
243 object construction from GetSection() to the ctor.
245 2008-01-16 Zoltan Varga <vargaz@gmail.com>
247 * ConfigurationElement.cs: Allow non-public constructors. Fixes #353554.
249 * PropertyInformation.cs: Allow non-public constructors. Fixes #353557.
251 * ConfigurationElement.cs: Consider non-public properties as well. Fixes
254 2008-01-12 Sebastien Pouliot <sebastien@ximian.com>
256 * ConfigurationLocationCollection.cs: Avoid infinite recursion.
257 Found using Gendarme.
259 2007-12-25 Konstantin Triger <kostat@mainsoft.com>
261 * KeyValueInternalCollection.cs: properly override NameValueCollection
262 to support interop with it.
264 2007-12-25 Konstantin Triger <kostat@mainsoft.com>
266 * ConfigurationElement.cs:
267 1. typo - pass the correct property to Attribute.GetCustomAttribute.
268 2. Pass oroginal exception as inner.
270 2007-12-05 Marek Habersack <mhabersack@novell.com>
272 * ConfigurationElement.cs: some property values may be null
273 objects in GetHashCode.
275 2007-11-23 Marek Habersack <mhabersack@novell.com>
277 * ConfigurationElementCollection.cs: ThrowOnDuplicate returns true
278 if the collection is one of the AddRemoveClearMap or
279 AddRemoveClearMapAlternate types.
281 2007-11-15 Atsushi Enomoto <atsushi@ximian.com>
283 Part of fix for bug #323708.
284 * ConfigurationSection.cs : in GetRuntimeObject(), take parent
285 section instance into consideration.
286 * SectionInformation.cs : to make it possible, GetParentSection()
287 should be implemented.
288 * Configuration.cs : to make it possible, GetSectionInstance()
289 should set parent section on its SectionInformation. It used to
290 just steal parent's xml when its own xml does not exist, but
291 it now blocks correct configuration retrieval.
293 2007-11-15 Atsushi Enomoto <atsushi@ximian.com>
295 * SectionGroupInfo.cs : remove extra StringBuilder creation.
297 2007-11-14 Atsushi Enomoto <atsushi@ximian.com>
299 * Configuration.cs : (Save) when the given file path is relative
300 it failed to create directory. Fixed standalone test t25/t26.
301 * InternalConfigurationHost.cs : pass userLevel to create a host
304 2007-10-04 Atsushi Enomoto <atsushi@ximian.com>
306 * InternalConfigurationHost.cs : when the streamName is for
307 machine.config, try get_bundled_machine_config() icall first.
308 This hopefully implements the requested feature in bug #325022.
309 * Configuration.cs : added comment.
311 2007-08-31 Gert Driesen <drieseng@users.sourceforge.net>
313 * ConfigurationManager.cs: Fixed line endings. Avoid warning by
314 changing accessibility of ChangeConfigurationSystem to internal.
315 * Configuration.cs: Fixed compiler warnings.
316 * DpapiProtectedConfigurationProvider.cs: Fixed line endings.
318 2007-08-21 Atsushi Enomoto <atsushi@ximian.com>
320 * ConfigurationManager.cs : To open exe configuration, use
321 GetEntryAssembly() first, and GetCallingAssembly() only when
322 it was not found. Should fix bug #82071.
324 2007-06-21 Atsushi Enomoto <atsushi@ximian.com>
326 * Configuration.cs, InternalConfigurationHost.cs :
327 configuration file to write might be given as an absolute path,
328 where the ancestor directories may not exist.
330 2007-06-20 Atsushi Enomoto <atsushi@ximian.com>
332 * ConfigurationManager.cs : in OpenExeConfiguration() and
333 OpenMappedExeConfiguration(), take userLevel into consideration.
334 * InternalConfigurationHost.cs : consider ConfigurationUserLevel and
335 use correct config map file in InitForConfiguration().
337 2007-06-18 Atsushi Enomoto <atsushi@ximian.com>
339 * ClientConfigurationSystem.cs : do not asume GetEntryAssembly()
340 returns non-null. Patch by Patrick Perry.
342 2007-06-13 Atsushi Enomoto <atsushi@ximian.com>
344 * ConfigurationElement.cs : SerializeToXmlElement() should be
345 called regardless of HasValues() return value, especially since
346 it could be overriden (e.g. in SettingsValueElement).
348 2007-06-13 Atsushi Enomoto <atsushi@ximian.com>
350 * ConfigurationSectionGroup.cs
351 Configuration.cs : ConfigurationSectionGroup must be initialized
352 at least when being added to a collection.
354 2007-06-12 Vladimir Krasnov <vladimirk@mainsoft.com>
356 * ConfigurationElement.cs: refactored GetKeyProperties and
357 GetDefaultCollection methods, map should not be used here, Properties
358 will do instead. Refactored ElementMap class
359 * ConfigurationElementCollection.cs: fixed InitFromProperty, GetMap()
360 should not be called here
361 * ElementInformation.cs: fixed Properties, moved to ctor to be thread
363 * PropertyInformation.cs: members assigned readonly modifier
365 2007-05-30 Marek Habersack <mhabersack@novell.com>
367 * SectionGroupInfo.cs: <location> elements are case-insensitive
368 and the same 'path' attribute may be used only once.
370 * ConfigurationLocationCollection.cs: Find should be
371 case-insensitive for all targets, not just TARGET_JVM.
373 2007-05-17 Igor Zelmanovich <igorz@mainsoft.com>
375 * Configuration.cs: FilePath implemented according to MSDN:
376 If the value for this FilePath property represents a merged view and
377 no actual file exists for the application, the path to the parent
378 configuration file is returned.
380 2007-05-15 Igor Zelmanovich <igorz@mainsoft.com>
383 * ConfigurationLocation.cs:
384 implemented EvaluationContext property.
386 2007-05-15 Igor Zelmanovich <igorz@mainsoft.com>
388 * ConfigurationLocationCollection.cs: for TARGET_JVM only:
389 location path is case-insensitive.
391 2007-05-15 Marek Habersack <mhabersack@novell.com>
393 * ConfigurationElement.cs: added value validation on
394 deserialization from the config file.
396 2007-05-14 Igor Zelmanovich <igorz@mainsoft.com>
398 * ConfigurationElement.cs: when attribute value cannot be parsed,
399 ConfigurationErrorException is thrown.
401 2007-05-09 Igor Zelmanovich <igorz@mainsoft.com>
403 * ConfigurationManager.cs:
404 added MonoLimitation attribute for TARGATE_JVM.
406 2007-05-08 Igor Zelmanovich <igorz@mainsoft.com>
408 * ConnectionStringSettingsCollection.cs: removed 'new' keyword, cause
409 property doesn't hide any inherit property.
411 2007-04-24 Atsushi Enomoto <atsushi@ximian.com>
413 * InternalConfigurationHost.cs : machine configuration covers all
414 ConfigurationAllowDefinition values.
416 2007-04-17 Atsushi Enomoto <atsushi@ximian.com>
418 * ConfigurationSectionCollection.cs : GetEnumerator() should return
419 IEnumerator for the items, not keys.
420 * ConfigurationProperty.cs : more helpful type mismatch message.
422 2007-04-16 Marek Habersack <mhabersack@novell.com>
424 * SectionGroupInfo.cs: another (and final, hopefully) fix for bug
425 #81321 and several other related issues that were discovered by
426 the way. Thanks to Atsushi for help with XmlReader!
428 2007-04-15 Marek Habersack <mhabersack@novell.com>
430 * SectionGroupInfo.cs: another incarnation of the fix for bug
433 2007-04-12 Marek Habersack <mhabersack@novell.com>
435 * SectionGroupInfo.cs: a better fix for #81321
437 2007-04-10 Marek Habersack <mhabersack@novell.com>
439 * SectionGroupInfo.cs: make sure empty sections with the
440 short-circuit tag ends (<section/>) don't make the process loop
441 endlessly. Fixes bug #81321.
443 2007-03-22 Konstantin Triger <kostat@mainsoft.com>
445 * ConfigInfo.cs: should be able instantiate types with private ctors.
447 2007-03-19 Vladimir Krasnov <vladimirk@mainsoft.com>
449 * ConfigurationSectionCollection.cs,
450 * ConfigurationSectionGroupCollection.cs,
451 * PropertyInformationCollection.cs,
452 * SectionGroupInfo.cs: used StringComparer.Ordinal instead of
455 2007-03-15 Vladimir Krasnov <vladimirk@mainsoft.com>
457 * ConfigurationSectionCollection.cs,
458 * ConfigurationSectionGroupCollection.cs,
459 * PropertyInformationCollection.cs,
460 * SectionGroupInfo.cs: these collections should be based on case
461 insensitive NameObjectCollectionBase
462 * added OrdinalComparer.cs for use in NameObjectCollectionBase
464 2007-02-07 Atsushi Enomoto <atsushi@ximian.com>
466 * SectionInfo.cs : don't stop at restartOnExternalChanges attribute.
468 2007-01-16 Konstantin Triger <kostat@mainsoft.com>
470 * ConfigurationElement.cs: ignore properties with null or empty name.
472 2007-01-16 Konstantin Triger <kostat@mainsoft.com>
474 * ConfigurationElement.cs: Try to deserilalize an unrecognized element by
475 current element, and only if failed delegate to default collection.
477 2006-12-27 Vladimir Krasnov <vladimirk@mainsoft.com>
479 * ConfigurationElementCollection.cs: fixed BaseAdd, looking for
480 identical element when collection type is not alternate
482 2006-12-27 Vladimir Krasnov <vladimirk@mainsoft.com>
484 * ConnectionStringSettingsCollection.cs: made connection string key
487 2006-12-27 Atsushi Enomoto <atsushi@ximian.com>
489 * ConfigurationElementCollection.cs : fixed BaseAdd() with
490 throwIfExists to not raise an error for identical element
491 but for different element which shares the same key. Fix by
494 2006-12-21 Vladimir Krasnov <vladimirk@mainsoft.com>
496 * ConfigurationProperty.cs: fixed DefaultValue of type Enum
498 2006-12-10 Konstantin Triger <kostat@mainsoft.com>
500 * ConfigurationElement.cs: Delegate parameter checking and default
501 assigning to Configuratin property.
502 * ConfigurationProperty.cs:
503 Ensure the TypeConvert and Validator always exist.
504 Ensure the primitive types are properly initialized.
506 2006-12-09 Vladimir Krasnov <vladimirk@mainsoft.com>
508 * ConfigurationElementCollection.cs
509 * ConfigurationRemoveElement.cs: fixed key for <remove> element in
510 ConfigurationRemoveElement class
512 2006-11-28 Marek Habersack <grendello@gmail.com>
514 * SectionGroupInfo.cs: Implement merging of section groups with
515 the same names and parents.
517 * ConfigInfo.cs: Add an abstract method for merging sections.
519 * SectionInfo.cs: Add implementation of an abstract base method
521 2006-08-23 Konstantin Triger <kostat@mainsoft.com>
523 * SectionInfo.cs: refactoring - remove unneeded bool? usage.
525 2006-11-05 Vladimir Krasnov <vladimirk@mainsoft.com>
527 * added: ConfigurationRemoveElement.cs, common element for <remove>
528 * ConnectionStringSettingsCollection.cs: reverted last fix for
530 * ConfigurationElementCollection.cs: fixed the way that
531 OnDeserializeUnrecognizedElement method handles <remove> element
533 2006-11-02 Vladimir Krasnov <vladimirk@mainsoft.com>
535 * ConfigurationElement.cs: typo in DefaultCollectionProperty
538 2006-10-30 Joel Reed <joel.reed@ddiworld.com>
540 * NameValueConfigurationCollection.cs: Implement the Properties
543 2006-08-23 Konstantin Triger <kostat@mainsoft.com>
545 * ConfigurationLocation.cs: do not read root element, correctly close stream.
546 * Configuration.cs: use ReadData for nested content to throw if location
547 elements are encounterd.
548 In constructor taking parent Configurqation: do not call Init and so avoid
549 rereading config file.
551 2006-09-05 Vladimir Krasnov <vladimirk@mainsoft.com>
553 * NameValueConfigurationElement.cs: fixed functionality
554 * ConfigurationElementCollection.cs,
555 ConnectionStringSettingsCollection.cs: fixed <remove> element in
556 connectionStrings section
558 2006-08-23 Konstantin Triger <kostat@mainsoft.com>
560 * ConfigurationSection.cs: for net 1.1 SectionHandlers: return null in case
561 RawXml is null, as net 1.1 does.
563 2006-08-17 Vladimir Krasnov <vladimirk@mainsoft.com>
565 * ConfigurationFileMap.cs: added TARGET_JVM on not supported members
568 2006-07-07 Atsushi Enomoto <atsushi@ximian.com>
570 * ConfigurationManager.cs : OpenExeConfiguration(null) should still
571 work. This is required for embedded scenario.
573 2006-06-10 Atsushi Enomoto <atsushi@ximian.com>
575 * SectionGroupInfo.cs : skip <dllmap> in configuration.
577 2006-05-14 Atsushi Enomoto <atsushi@ximian.com>
579 * ConfigurationManager.cs: since ConfigurationSystem is different
580 for web.config, cast from ConfigurationSection to runtime object
581 should be done at GetSection().
582 This really fixed bug #78372.
584 2006-05-12 Atsushi Enomoto <atsushi@ximian.com>
586 * Configuration.cs : configPath is null for machine.config, so don't
587 use it. Use streamName instead. To my understanding, this should
590 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
592 * ConnectionStringSettings.cs : it seems that "name" property
593 could be null i.e. there is no StringValidator.
594 * StringValidator.cs : allow null.
596 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
598 * ConfigurationManager.cs : use GetCallingAssembly() instead of
599 GetEntryAssembly() which possibly returns null (e.g. nunit) in
600 OpenExeConfiguration(). Several nunit test failures are gone.
602 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
604 * ConnectionStringSettings.cs : oops, this API fix broke standalone
607 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
609 * ConfigurationElement.cs,
610 ConfigurationErrorsException.cs,
611 ConfigurationUserLevel.cs,
612 ConfigurationPropertyOptions.cs,
613 ConnectionStringSettings.cs : assorted minor corcompare fixes.
615 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
617 * Configuration.cs : some kind of refactoring is absolutely needed
618 here. Reuse RawXml from parentSection when data was not available
619 on current section. This should fix bug #78353.
621 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
623 * ConfigurationElement.cs,
625 in some cases RawXml was set null string, so skip such cases.
626 * Configuration.cs : support IConfigurationSectionHandler here.
627 * ConfigurationManager.cs : GetSection() now returns name value
628 collection, not a section.
629 * ConfigurationSection.cs : added SectionHandler for
630 IConfigurationSectionHandler support, and use its Create() in
632 * ClientConfigurationSystem.cs :
633 use GetRuntimeObject() in GetSection(). Thus now
634 ConfigurationManager.GetSection() returns a runtime object.
637 2006-04-28 Atsushi Enomoto <atsushi@ximian.com>
639 * SectionGroupInfo.cs :
640 sections which are defined in sectionGroups could be directly
641 referenced, so search corresponding section recursively.
642 * DefaultSection.cs : It does not reject unrecognized contents.
644 2006-04-26 Chris Toshok <toshok@ximian.com>
646 * SectionInformation.cs (.ctor): add MonoTODO about the default
647 value for require_permission.
648 (RequirePermission): implement the getter/setter for this so
649 Atsushi's previous commit doesn't break everything :)
651 2006-04-26 Atsushi Enomoto <atsushi@ximian.com>
654 SectionInfo.cs : added support for "requirePermission" attribute
655 in "section" element. This fixes bug #77957.
657 2006-04-25 Chris Toshok <toshok@ximian.com>
659 * ConfigurationElementCollection.cs (Reset): it makes no sense to
660 pass the typename to CreateNewElementInternal. the argument is
661 the elementname. pass null instead.
664 2006-02-01 Atsushi Enomoto <atsushi@ximian.com>
666 * ConfigurationElement.cs : ListErrors() and SetPropertyValue()
668 * ConfigurationSection.cs : the .ctor() is protected.
669 * ConfigurationElementCollection.cs : CollectionType is public.
670 Count and BaseAdd() are not virtual.
671 * ConfigurationPropertyCollection.cs : Count is not virtual.
673 2006-02-01 Chris Toshok <toshok@ximian.com>
675 * ConfigurationElement.cs: revert the patch that stores and writes
676 out xmlns attributes for all elements.
678 * ClientConfigurationSystem.cs: SupportsUserConfig == false.
680 * AppSettingsSection.cs (GetRuntimeObject): call col.SetReadOnly()
681 only if SupportsUserConfig != true.
683 * ConfigurationManager.cs (ConfigurationSystem): add a property
684 like ConfigurationFactory, and use it instead of the private field
687 2006-01-26 Chris Toshok <toshok@ximian.com>
689 * SectionGroupInfo.cs (ReadContent): handle "location" (seemingly)
692 * InternalConfigurationRoot.cs: misc logical additions. still
695 * ConfigurationManager.cs (OpenExeConfigurationInternal): throw an
696 exception if both calling_assembly and exePath are null. Allow
697 the exePath to be a path to a config file as well, checking to see
698 if it ends in .config before appending.
699 (OpenExeConfiguration): stop blindly passing
700 Assembly.GetCallingAssembly. I'm assuming this will likely break
701 .dll.config usage. need to investigate that (and write more unit
703 (GetSection): call configSystem.GetSection.
704 (RefreshSection): call configSystem.RefreshSection.
705 (ChangeConfigurationSystem): modeled after the
706 ConfigurationSettings System.Web hack - allow
707 WebConfigurationManager to replace the current
708 IInternalConfigSystem.
710 * InternalConfigurationHost.cs (InternalConfigurationHost): make
711 abstract, and remove all the NotImplenmentedException's.
713 * ConfigurationElement.cs (DeserializeElement): store off the xml
714 namespace if there is one.
715 (SerializeElement): write out the namespace if there was one.
717 * ClientConfigurationSystem.cs: new class, based on some stack
718 traces I've seen in tests. Kinda (well, not *kinda*..) hacky.
720 * Configuration.cs (NamespaceDeclared): implement.
721 (Load): don't swallow all exceptions, just the ones raised when we
722 open the stream for reading.
723 (ReadConfigFile): handle xmlns.
725 2006-01-25 Chris Toshok <toshok@ximian.com>
727 * ConfigInfo.cs (ThrowException): throw a
728 ConfigurationErrorsException, not a ConfigurationException.
730 * SectionGroupInfo.cs (ReadContent): throw an exception
731 unconditionally if we see a <location>. they aren't valid in
734 2006-01-25 Chris Toshok <toshok@ximian.com>
736 * KeyValueInternalCollection.cs: don't use a nested collection,
737 just defer to our base class. This fixes usage of
738 ConfigurationManager.AppSettings.Keys.
740 2006-01-13 Chris Toshok <toshok@ximian.com>
742 * AppSettingsSection.cs (GetRuntimeObject): only access
743 Settings[key] once per iteration.
745 2006-01-09 Chris Toshok <toshok@ximian.com>
747 * ConfigurationManager.cs (AppSettings): just return
748 AppSettingsSection.GetRuntimeObject() here.
750 * AppSettingsSection.cs: fix the "file" property to match dumper
752 (GetRuntimeObject): this returns a KeyValueInternalCollection in
755 2006-01-09 Chris Toshok <toshok@ximian.com>
757 * ElementInformation.cs (Validator): if propertyInfo == null,
758 return a DefaultValidator instance.
760 2006-01-09 Chris Toshok <toshok@ximian.com>
762 * AppSettingsSection.cs (.cctor): specify null for
765 * ProtectedProviderSettings.cs (.cctor): specify null for
768 2006-01-03 Chris Toshok <toshok@ximian.com>
770 * Configuration.cs (SaveAs): open with FileMode.OpenOrCreate so we
771 can save to a new file.
772 (CreateSection): don't bother to set the section information's
773 Name here. we'll do it in SectionInfo.CreateInstance.
775 * ProtectedConfiguration.cs (Section): new static property so we
776 can remove all the GetSection calls.
777 (GetProvider): load a named provider, optionally throwing an
778 exception if it's not found.
780 * InternalConfigurationHost.cs (EncryptSection, DecryptSection):
781 make these private interface implementations, and call
782 protectedSection.{EncryptSection,DecryptSection}.
784 * ProtectedConfigurationSection.cs (EncryptSection,
785 DecryptSection): add these two calls. They really shouldn't be
786 here, but I saw them in an MS stack trace and thought "why not?".
788 * ConfigurationSection.cs (SectionInformation): don't set
789 attributes here, that's done in SectionInfo.CreateInstance.
790 (DeserializeSection): shoehorn in the decryption stuff here. It
791 doesn't belong here, and I've added a MonoTODO about it. It
792 should live someplace like SectionInfo.ReadData (which would make
793 it similar to the encryption stuff in .WriteData).
795 * SectionInformation.cs (IsProtected): remove the special flag,
796 just return true if we have a non-null protection_provider.
797 (ProtectSection): do nothing but try to instantiate the named
799 (UnprotectSection): null out protection_provider.
801 * DpapiProtectedConfigurationProvider.cs: move the
802 NotSupportedExceptions to Decrypt/Encrypt so we don't bomb out
803 when parsing our machine.config file.
805 * RsaProtectedConfigurationProvider.cs: initial implementation.
806 much is missing (OAEP support, key importing, adding/deleting
807 keys), but it can be used.
809 2006-01-02 Chris Toshok <toshok@ximian.com>
811 * RsaProtectedConfigurationProvider.cs: implement the
812 CspProviderName and UseOAEP properties..
814 2006-01-02 Chris Toshok <toshok@ximian.com>
816 * ProtectedConfigurationSection.cs: flesh this out (and add logic
817 to instantiate providers, based on some of the standalone test
818 exception stack traces.)
820 * ProtectedConfiguration.cs: new implementation.
822 * ProtectedConfigurationProviderCollection.cs: new
825 * ProtectedProviderSettings.cs: new implementation.
827 * ProtectedConfigurationProvider.cs: trim the superclass's name.
829 * RsaProtectedConfigurationProvider.cs: stubbed, unimplemented.
831 * DpapiProtectedConfigurationProvider.cs: add stubbed
832 implementation that throws NotSupportedException telling people
833 they should be using RsaProtectedConfigurationProvider.
835 2006-01-02 Chris Toshok <toshok@ximian.com>
837 * DefaultSection.cs (Properties): implement.
839 * IgnoreSection.cs: move from lazily creating the properties
840 collection to sharing a single one across all instances.
842 * ConfigurationLockCollection.cs (IsReadOnly): fix compiler warning.
844 * ConfigurationElementCollection.cs (BaseAdd) remove logic to
845 remove an old matching element.
846 (BaseGetKey): throw an exception if @index is out of range.
848 * SectionInformation.cs (SectionName): just return name, like Name
849 does.. redundant, but it matches tests.
850 (GetRawXml): implement.
851 (SetRawXml): implement.
853 * ConfigurationSection.cs (SectionInformation): fill in
854 sectionInformation.Type before returning.
855 (DeserializeSection): save off the raw xml to our
858 * ConfigurationElement.cs (LockItem): implement.
859 (DeserializeElement): add support for the "lockItem" attribute.
861 2005-12-16 Chris Toshok <toshok@ximian.com>
863 * ConfigurationLockCollection.cs (Add): only add the name if it's
865 (IsReadOnly): always return false for the time being, in the
866 non-exceptional case.
868 2005-12-15 Chris Toshok <toshok@ximian.com>
870 * ConfigurationElement.cs (LockAllAttributesExcept): implement.
871 (LockAllElementsExcept): implement.
872 (DeserializeElement): handle the built-in attributes (lock* for
875 2005-12-15 Chris Toshok <toshok@ximian.com>
877 * ConfigurationLockCollection.cs (..ctor): don't call Populate.
879 (CheckName): make sure the passes in name is valid for this type
881 (Add): call CheckName, and set is_modified to true.
882 (Clear): set is_modified.
883 (IsReadOnly): add plausable implementation, including exception in
884 the case where the name isn't found.
885 (Remove): set is_modified.
886 (SetFromList): implement.
887 (get_AttributeList): implement.
888 (set_IsModified): add internal setter so we can clear the modified
891 2005-12-12 Chris Toshok <toshok@ximian.com>
893 * AppSettingsSection.cs (DeserializeElement): provide rather naive
894 version of the file="" handling. It's enough to make our tests
897 2005-12-11 Chris Toshok <toshok@ximian.com>
899 * ConnectionStringsSection.cs (..cctor): use "" instead of null
900 for the name of the default collection.
902 * AppSettingsSection.cs (..cctor): create a property for the
904 (DeserializeElement): call base.DeserializeElement.
905 (File): index off the property, not the name.
906 (Settings): don't use an private variable here, use
909 * ConfigurationManager.cs (GetSection): GetEntryAssembly returns
910 null for new app domains. so deal with this by calling
911 GetCallingAssembly if it's null. This is probably still wrong but
912 it doesn't NRE in xsp2.
913 (AppSettings): remove MonoTODO.
915 * KeyValueConfigurationElement.cs (..ctor): new method, create the
916 ConfigurationProperty's and the collection here.
917 (.ctor): add internal arg-less ctor.
918 (Key): use keyProp instead of "key".
919 (Value): use vlaueProp instead of "value".
920 (Properties): return our class's properties.
922 * KeyValueConfigurationCollection.cs (CreateNewElement): use the
924 (GetElementKey): re-enable the BaseIndexOf test.
926 2005-12-02 Chris Toshok <toshok@ximian.com>
928 * Configuration.cs (Save): call WriteStartDocument.
930 * ConnectionStringSettingsCollection.cs (CreateNewElement): use
931 parameter-less ctor to keep from generating exceptions when using
934 2005-12-02 Chris Toshok <toshok@ximian.com>
936 * ConnectionStringSettings.cs: tabify, fix default values, and add
937 a string validator for "name".
939 2005-12-02 Chris Toshok <toshok@ximian.com>
941 * CommaDelimitedStringCollectionConverter.cs (ConvertTo): change
942 the type check away from an exact check for
943 CommaDelimitedStringCollection to an assignable test from
944 StringCollection. This is due to the fact that AuthorizationRule
945 doesn't create CommaDelimitedStringCollections, for some odd
946 reason. It uses StringCollections.
948 * PropertyInformation.cs (Value): remove the case for
949 IsDefaultCollection - it's not necessary, as the property is an
952 * ConnectionStringSettings.cs: fix formatting and remove some
955 * ConnectionStringSettingsCollection.cs: same.
957 * ConnectionStringsSection.cs: same.
959 * ConfigurationElement.cs (SerializeToXmlElement): don't write the
960 enclosing start/end elements if the elementName is null or "".
961 this fixes the case for the DefaultCollections (at least in the
962 case of connectionStrings).
964 * IgnoreSection.cs (Properties): remove the MonoTODO.
966 * SectionInfo.cs (WriteData): remove the "<!-- dd -->" output.
968 2005-11-28 Chris Toshok <toshok@ximian.com>
970 * ProviderSettings.cs: use ConfigurationProperty's to implement
973 2005-11-24 Chris Toshok <toshok@ximian.com>
975 * ConfigurationProperty.cs (Validate): add internal method.
977 2005-11-24 Chris Toshok <toshok@ximian.com>
979 * ConfigurationElement.cs (ElementProperty): make this protected
980 internal virtual instead of public.
981 (SetPropertyValue): add a validator call and a blurb about the
982 code based on information gleaned from tests.
983 (set_Item (string)): call SetPropertyValue in the setter.
985 2005-11-14 Chris Toshok <toshok@ximian.com>
987 * CommaDelimitedStringCollection.cs: reformat things a bit, and
988 flag ToString() as override.
990 * DefaultSection.cs: new stubbed out implementation.
992 * CommaDelimitedStringCollectionConverter.cs: new implementation.
994 2005-11-10 Chris Toshok <toshok@ximian.com>
996 * AppSettingsSection.cs (DeserializeElement): stop explicitly
997 calling Settings.DeserializeElement, as the DefaultCollection
1000 * ConfigurationElement.cs (DeserializeElement): rework the loop
1001 here so that we actually loop over all the content elements.
1003 2005-11-09 Chris Toshok <toshok@ximian.com>
1005 * ConfigurationElement.cs: Add support for DefaultCollection
1008 * PropertyInformation.cs (PropertyInformation.Value): add case for
1009 IsDefaultCollection.
1011 * SectionGroupInfo.cs (SectionGroupInfo.ReadConfig): when we read
1012 a "type" attribute, make sure the cached System.Type is cleared.
1014 2005-10-25 Chris Toshok <toshok@ximian.com>
1016 * InfiniteTimeSpanConverter.cs: new implementation.
1018 * InfiniteIntConverter.cs: new implementation.
1020 * GenericEnumConverter.cs: new implementation.
1022 * Configuration.cs: we don't need to check with "is" after we use
1023 "as".. just check for null-ness.
1025 * KeyValueConfigurationCollection.cs: GetElementKey should throw
1026 NRE if element == null.
1028 * CommaDelimitedStringCollection.cs: raise the correct exceptions
1029 in the read only case, and return null from ToString if there are
1032 2005-10-25 Chris Toshok <toshok@ximian.com>
1034 * PositiveTimeSpanValidatorAttribute.cs: new implementation.
1036 * PositiveTimeSpanValidator.cs: new implementation.
1038 2005-10-24 Chris Toshok <toshok@ximian.com>
1040 * TimeSpanSecondsOrInfiniteConverter.cs: new implementation.
1042 * TypeNameConverter.cs: new implementation.
1044 * WhiteSpaceTrimStringConverter.cs: new implementation.
1046 2005-10-24 Chris Toshok <toshok@ximian.com>
1048 * AppSettingsSection.cs (DeserializeElement, SerializeSection):
1049 split the behavior based on if File == "". If it is, we do the
1050 default. otherwise we throw NIE.
1052 * ConnectionStringsSection.cs (DeserializeElement): we shouldn't
1053 need this, but we do until the IsDefaultCollection stuff is fixed.
1055 * ConfigurationElementCollection.cs
1056 (OnDeserializeUnrecognizedElement): for clearElementName, make
1057 sure we have no attributes.
1059 * ConnectionStringSettingsCollection.cs (get_Properties): for now
1060 just chain up to base.Properties.
1062 * ConfigurationElement.cs (ReflectProperties): do the default
1063 value/property type check in a more robust way, using
1066 2005-10-24 Chris Toshok <toshok@ximian.com>
1068 * ConfigurationElement.cs: treat
1069 ConfigurationProperty.NoDefaultValue the same as null when we're
1070 checking the default value's type. this fixes t13 and 14.
1072 * ConnectionStringsSection.cs (ConnectionStrings): fix the
1073 DefaultValue in the ConfigurationPropertyAttribute.
1075 2005-10-24 Chris Toshok <toshok@ximian.com>
1077 * KeyValueConfigurationCollection.cs (GetElementKey): sacrifice
1078 one test to get another working. Return a valid key even if the
1079 element is not in this collection.
1080 (get_ThrowOnDuplicate): return false.
1082 * ConfigurationElementCollection.cs (BaseAdd): if we're adding an
1083 element with the same key, overwrite the old one (remove the old
1084 one after inserting the new one). Also, re-enable the throwing of
1085 exceptions if ThrowOnDuplicate == true.
1087 2005-10-24 Chris Toshok <toshok@ximian.com>
1089 * AppSettingsSection.cs (Settings): fix ConfigurationProperty
1092 * ProtectedConfigurationSection.cs (Providers): same.
1094 2005-10-12 Chris Toshok <toshok@ximian.com>
1096 * ConfigurationPermission.cs: flesh out as per tests.
1098 2005-10-11 Chris Toshok <toshok@ximian.com>
1100 * ConfigurationProperty.cs: don't use null to mean no default
1101 value, use NoDefaultValue.
1103 2005-10-11 Chris Toshok <toshok@ximian.com>
1105 * KeyValueConfigurationCollection.cs (GetElementKey): duh.
1106 BaseGet calls GetElementKey, so we were hitting an infinite
1107 recursion here. Use BaseIndexOf instead.
1109 2005-10-07 Chris Toshok <toshok@ximian.com>
1111 * InternalConfigurationHost.cs: some interface work, adding in the
1114 * ConfigurationProperty.cs: remove debug spew.
1116 * Configuration.cs: add NIE'd NamespaceDeclared property.
1118 * ElementInformation.cs: add NIE'd Errors property.
1120 * PropertyInformationCollection.cs: add NIE'd GetObjectData().
1122 * ConfigurationManager.cs: quite a bit of new work here. Some
1123 definie TODO's still though.
1125 2005-10-07 Chris Toshok <toshok@ximian.com>
1127 * ConfigurationErrorsException.cs (.ctor): for the (string)
1128 overload, chain up to the base (string) ctor.
1130 2005-10-07 Chris Toshok <toshok@ximian.com>
1132 * ConfigurationElement.cs (ElementMap.ReflectProperties): make
1133 sure the type of the default value is compatible with that of the
1134 property itself, and throw ConfigurationErrorsException if they
1135 don't match. Fixes t12.
1137 2005-10-07 Chris Toshok <toshok@ximian.com>
1139 * ConfigHelper.cs: remove some unused code.
1141 * ConfigurationProperty.cs: disambiguate the ctor we chain to.
1143 * ConfigurationElement.cs (ElementProperty): implement.
1144 (ElementMap.ReflectProperties): make DefaultValidator the default
1145 validator, not null.
1147 2005-10-06 Chris Toshok <toshok@ximian.com>
1149 * KeyValueConfigurationElement.cs: uncomment out some stuff.
1150 (Properties): just return base.Properties. Not sure why they
1151 override this, as the base class's implementation passes our test.
1153 * KeyValueConfigurationCollection.cs (Add): for the keyValue
1154 overload, call keyValue.Init as the unit test stack traces
1155 indicates that'9s where it's called. For the string,string
1156 overload, just call the keyValue overload instead of calling
1158 (CreateNewElement): just use the name/value ctor, and specify ""
1160 (GetElementKey): this function always returns "" for elements that
1161 haven't been added to the collection. Once theyre added, it seems
1162 to always return keyValue.Key.
1163 (Properties): the unit tests show this returns a 0 length
1166 2005-10-05 Chris Toshok <toshok@ximian.com>
1168 * ConfigurationPermissionAttribute.cs: stub out.
1170 2005-10-05 Chris Toshok <toshok@ximian.com>
1172 * TimeSpanMinutesOrInfiniteConverter.cs: fill in the
1175 2005-10-05 Chris Toshok <toshok@ximian.com>
1177 * TimeSpanSecondsConverter.cs: new implementation.
1179 2005-10-05 Chris Toshok <toshok@ximian.com>
1181 * TimeSpanMinutesConverter.cs: flesh out implementation.
1183 * ConfigurationConverterBase.cs: make all subclasses work with
1184 strings only, since that's what seems to manifest itself in the
1187 2005-10-05 Chris Toshok <toshok@ximian.com>
1189 * ConfigurationLockCollection.cs: add NIE'd AttributeList
1192 * ConfigurationConverterBase.cs: add MonoTODO'd CanConvertFrom and
1193 CanConvertTo methods.
1195 * ConfigurationSectionGroup.cs: add NIE'd IsDeclared property.
1197 * ProtectedConfigurationSection.cs: add NIE'd properties.
1199 * ConfigurationElementCollection.cs: add MonoTODO'd IsReadOnly
1200 and SetReadOnly methods, and have then chain up to the base class.
1202 * KeyValueConfigurationCollection.cs: add the class level
1203 ConfigurationCollectionAttribute, and add a NIE'ed Properties
1206 * ProviderSettingsCollection.cs: add the class level
1207 ConfigurationCollectionAttribute, and add a "new" keyword to the
1208 this property. Also, nuke the Provider's property.
1210 * SectionInformation.cs: add some NEI'd properties.
1212 * ConfigurationSection.cs (ResetModified): leave the MonoTODO, but
1213 chain up to base class's method instead of throwing NIE.
1215 * ConnectionStringSettingsCollection.cs: add the class-level
1216 ConfigurationCollectionAttribute, and add the unimplemented
1217 Properties property.
1219 * ConfigurationErrorsException.cs: flesh this out, and add a
1220 pragma to disable the obsolete warnings from our base class.
1222 * ProviderSettings.cs: add unimplemented Properties property.
1224 * ConfigurationElement.cs: remove unnecessary
1225 EvaluationInformation.
1227 * InternalConfigurationRoot.cs: add unimplemented IsDesignTime
1230 * ConfigurationProperty.cs: add a missing ctor.
1232 * AppSettingsSection.cs: add missing "override" keyword.
1234 * ConnectionStringsSection.cs: remove override.
1236 * ConfigurationSectionCollection.cs: AllKeys -> Keys, and add
1237 unimplemented GetObjectData override.
1239 * ConfigurationSectionGroupCollection.cs: same.
1241 * ConfigurationCollectionAttribute.cs: add missing CollectionType
1244 2005-10-05 Chris Toshok <toshok@ximian.com>
1246 * ConfigurationPermission.cs: new implementation.
1248 * IgnoreSection.cs: new implementation.
1250 2005-10-05 Chris Toshok <toshok@ximian.com>
1252 * CommaDelimitedStringCollection.cs: new implementation.
1254 2005-10-05 Chris Toshok <toshok@ximian.com>
1256 * NameValueConfigurationCollection.cs: new implementation.
1258 * NameValueConfigurationElement.cs: new implementation.
1260 2005-10-05 Chris Toshok <toshok@ximian.com>
1262 * ValidatorCallback.cs: new implementation.
1264 * SubclassTypeValidator.cs, SubclassTypeValidatorAttribute.cs: new
1267 * CallbackValidator.cs, CallbackValidatorAttribute.cs: new
1270 * RegexStringValidator.cs, RegexStringValidatorAttribute.cs: new
1273 * LongValidator.cs, LongValidatorAttribute.cs: new implementation.
1275 * IntegerValidator.cs, IntegerValidatorAttribute.cs: new
1278 * DefaultValidator.cs: new implementation.
1280 2005-09-28 Chris Toshok <toshok@ximian.com>
1282 * ConfigurationElementCollection.cs: more work on the "<clear />"
1283 handling - just skip the element for now. this causes a failure
1284 in one test ('<clear hi="bye" />' doesn't throw an exception when
1285 it should), but it succeeds for collections that have required
1288 * ConnectionStringSettings.cs: providerName isn't a required
1291 * AppSettingsSection.cs (.cctor): initialize our "file" Property.
1294 (GetRuntimeObject): call the base class method instead of just
1297 * ConnectionStringsSection.cs: Add a hacky DeserializeElement
1298 method here (that isn't in MS's) for the time being so we actually
1299 deserialize our collection.
1301 2005-09-28 Chris Toshok <toshok@ximian.com>
1303 * KeyValueInternalCollection.cs: found this by way of a stack
1304 trace in one of the tests. A NameValueCollection that wraps a
1305 KeyValueConfigurationCollection.
1307 * Configuration.cs (Init): save off configPath.
1308 (EvaluationContext): new, mostly implemented.
1309 (GetSectionInstance): use IgnoreSection instead of
1311 (Load): don't fail when we can't load a file.
1313 * IgnoreSection.cs: replace RuntimeOnlySection with this new
1316 * RuntimeOnlySection.cs: nuke.
1318 2005-09-27 Chris Toshok <toshok@ximian.com>
1320 * TimeSpanMinutesOrInfiniteConverter.cs: this is sealed.
1322 2005-09-27 Chris Toshok <toshok@ximian.com>
1324 * ConfigurationProperty.cs: add IsDefaultCollection property.
1326 2005-09-27 Chris Toshok <toshok@ximian.com>
1328 * ConfigurationElementProperty.cs: new file.
1330 * ConfigurationLockCollection.cs: new file.
1332 * ConfigurationElementCollection.cs
1333 (OnDeserializeUnrecognizedElement): make sure we consume the
1334 <clear /> element so we don't into an endless loop.
1336 * ConfigurationElement.cs: add a bunch of NIE's properties.
1338 * ContextInformation.cs: Add NIE'ed IsMachineLevel property.
1340 2005-09-23 Chris Toshok <toshok@ximian.com>
1342 * AppSettingsSection.cs: fix build and add a couple of TODO'ed
1345 2005-09-23 Chris Toshok <toshok@ximian.com>
1347 * ProviderSettings.cs (Unmerge): track change to
1348 ConfigurationElement.Unmerge.
1350 * ConfigurationSection.cs: add functions nuked from
1351 ConfigurationElement here.
1353 * ConfigurationElementCollection.cs: add DebuggerDisplay attribute
1355 (BaseGetAllKeys): returns object[], not string[].
1356 (BaseGetKey): returns object, not string.
1357 (Unmerge): track change to ConfigurationElement.Unmerge signature.
1359 * ConfigurationElement.cs (ConfigurationElement.Unmerge): fix
1360 signature (drop the serializeCollectionKey parameter).
1363 2005-09-23 Chris Toshok <toshok@ximian.com>
1365 * StringValidator.cs: throw ArgumentException instead of
1366 ConfigurationErrorsException.
1368 2005-09-23 Chris Toshok <toshok@ximian.com>
1370 * ConnectionStringsSection.cs: track change to
1371 ConfigurationPropertyOptions.
1373 * ConfigurationPropertyAttribute.cs, ConfigurationProperty.cs,
1374 ProviderSettings.cs: track change to ConfigurationPropertyOptions.
1376 * ConnectionStringSettings.cs: track change to
1377 ConfigurationProprertyOptions, and add some ConfigurationProperty
1380 * ConfigurationPropertyOptions.cs: DefaultCollection ->
1381 IsDefaultCollection, Required -> IsRequired.
1383 2005-09-22 Chris Toshok <toshok@ximian.com>
1385 * PositiveTimeSpanValidator.cs: this lives in
1386 System.Web.Configuration, not System.Configuration.
1388 2005-09-22 Chris Toshok <toshok@ximian.com>
1390 * TimeSpanValidator.cs: change to ArgumentException and alter the
1393 2005-09-22 Chris Toshok <toshok@ximian.com>
1395 * ExeConfigurationFileMap.cs (ctor): init all the strings to "".
1397 2005-07-01 Lluis Sanchez Gual <lluis@novell.com>
1399 * ProviderSettings.cs: Implemented properties using property attributes.
1400 * ConfigurationElement.cs: Implemented ElementInformation property and
1401 moved there all value management.
1402 * ProtectedConfigurationProvider.cs: Set the correct base class.
1403 * SectionInformation.cs: Added missing AllowExeDefinition property.
1404 * TimeSpanValidatorAttribute.cs: Implemented.
1405 * StringValidator.cs: Implemented.
1406 * ProviderSettingsCollection.cs: Added missing class attribute.
1407 * ConfigurationSaveMode.cs: Fix enum values.
1408 * ConfigurationElementCollection.cs: Added Init method for initializing
1409 elements from properties.
1410 * StringValidatorAttribute.cs: Implemented.
1411 * ConfigurationLocation.cs: Added support for allowOverride flag.
1412 * TimeSpanMinutesOrInfiniteConverter.cs: Created skeleton class.
1413 * PositiveTimeSpanValidator.cs: Implemented.
1414 * TimeSpanMinutesConverter.cs: Created skeleton class.
1415 * SectionInfo.cs: Properly read, store and check the values of AllowLocation,
1416 AllowDefinition and AllowExeDefinition.
1417 * TimeSpanValidator.cs: Implemented.
1418 * ConfigurationConverterBase.cs: Created skeleton class.
1419 * InternalConfigurationHost.cs: Implemented IsDefinitionAllowed and
1420 VerifyDefinitionAllowed.
1421 * ConfigurationManager.cs: That class must be static.
1422 * PropertyInformationCollection.cs: Implemented.
1423 * Configuration.cs: Added some checks for AllowLocation, AllowDefinition and
1424 so on. In Save(), don't forget to save location elements.
1425 * ConfigurationProperty.cs: Keep track of collection attributes.
1426 * ConfigInfo.cs: Support overrideAllowed flag.
1427 * KeyValueConfigurationElement.cs: Define properties using attributes.
1428 * PropertyValueOrigin.cs: implemented.
1429 * PropertyInformation.cs: Mostly implemented.
1430 * SectionGroupInfo.cs: Properly propagate the overrideAllowed flag.
1431 * ElementInformation.cs: Mostly implemented.
1432 * ConfigurationPropertyAttribute.cs: Set the correct default value.
1433 * ConfigurationCollectionAttribute.cs: Implemented.
1435 2005-06-23 Lluis Sanchez Gual <lluis@novell.com>
1437 * SectionInfo.cs: Set the config host when loading the section.
1438 * InternalConfigurationHost.cs: Implemented some basic methods.
1439 * Configuration.cs: Find the correct parent for the configuration,
1440 taking into accound locations and such. Use Host functions to get
1442 * ConfigurationLocationCollection.cs: Added find method.
1443 * ConfigInfo.cs: Added Host property.
1444 * InternalConfigurationFactory.cs: The InitForConfiguration calls
1445 are now done in each correspoding configuration.
1446 * SectionGroupInfo.cs: When reading a location element, create
1447 a Configuration object for each path specified in the location.
1448 * ConfigurationElementCollection.cs: Added the CreateNewElementInternal
1449 method, which properly initializes the created element.
1450 * ConfigurationLocation.cs: OpenConfiguration now has to read the
1451 xml contents. It also has to find the correct parent configuration,
1452 if it has not been specified.
1454 2005-06-17 Lluis Sanchez Gual <lluis@novell.com>
1456 * SectionInfo.cs, ConfigInfo.cs, SectionGroupInfo.cs: Minor api fixes.
1457 * ConfigurationPropertyCollection.cs: Added Clear method.
1458 * ContextInformation.cs: Implemented.
1459 * ConfigurationManager.cs: Implemented some missing methods.
1460 Configuration objects are now created through the ConfigurationFactory.
1461 * InternalConfigurationHost.cs: Implementation of IInternalConfigHost
1462 to be used for exe files and machine.config.
1463 * ConfigurationFileMap.cs: Implemented.
1464 * Configuration.cs: Read and write config files using the methods that
1465 IInternalConfigHost provides.
1466 * InternalConfigurationRoot.cs: IInternalConfigRoot stub.
1467 * ExeContext.cs: Implemented.
1468 * AppSettingsSection.cs: Use the KeyValueConfigurationCollection
1469 collection to store values.
1470 * KeyValueConfigurationElement.cs: Implemented.
1471 * KeyValueConfigurationCollection.cs: Implemented.
1472 * InternalConfigurationFactory.cs: An implementation of
1473 IInternalConfigConfigurationFactory.
1474 * ConfigurationPropertyAttribute.cs: Added missing attributes.
1475 * ExeConfigurationFileMap.cs: Implemented.
1477 2005-06-15 Lluis Sanchez Gual <lluis@novell.com>
1479 * ConfigurationElement.cs, ConfigurationErrorsException.cs
1480 SectionInfo.cs, ConnectionStringSettingsCollection.cs,
1481 ConfigurationPropertyCollection.cs, ProtectedConfigurationProvider.cs,
1482 ConfigurationSection.cs, NonEmptyStringConfigurationProperty.cs,
1483 ConfigurationElementCollectionType.cs, Configuration.cs,
1484 ConnectionStringSettings.cs, ConfigurationProperty.cs,
1485 ConfigurationLocationCollection.cs, TimeSpanConfigurationProperty.cs,
1486 ConfigurationAllowDefinition.cs, ConfigInfo.cs,
1487 ConfigurationSectionGroupCollection.cs, AppSettingsSection.cs,
1488 ProviderSettingsCollection.cs, IntegerConfigurationProperty.cs,
1489 SectionGroupInfo.cs, ConfigurationUserLevel.cs,
1490 ConnectionStringsSection.cs, ConfigurationPropertyAttribute.cs,
1491 ConfigurationLocation.cs, ConfigurationSectionCollection.cs,
1492 ConfigurationSectionGroup.cs, RuntimeOnlySection.cs,
1493 ProviderSettings.cs:
1496 * ConfigurationElementCollection.cs: Implemented support for Basic
1497 collection type. Other fixes.
1499 * ConfigurationPropertyFlags.cs: Renamed to ConfigurationPropertyOptions.
1500 * ConfigurationUpdateMode.cs: Renamed to ConfigurationSaveMode.
1502 * SectionInformation.cs, ConfigurationAllowExeDefinition.cs
1503 ConfigurationManager.cs, ConfigurationSaveMode.cs,
1504 ConfigurationValidatorAttribute.cs, ProtectedConfigurationSection.cs,
1505 ConfigurationValidatorBase.cs, ConfigurationPropertyOptions.cs:
1508 * ConfigurationValidationAttribute.cs: Removed.
1510 * ProviderBase.cs: Moved to System.dll.
1512 2005-06-14 Lluis Sanchez Gual <lluis@novell.com>
1514 * AppSettingsSection.cs, ConfigInfo.cs, Configuration.cs
1515 ConfigurationAllowDefinition.cs, ConfigurationElement.cs
1516 ConfigurationElementCollection.cs, ConfigurationElementCollectionType.cs
1517 ConfigurationLocation.cs, ConfigurationLocationCollection.cs
1518 ConfigurationProperty.cs, ConfigurationPropertyAttribute.cs
1519 ConfigurationPropertyCollection.cs, ConfigurationPropertyFlags.cs
1520 ConfigurationSection.cs, ConfigurationSectionCollection.cs
1521 ConfigurationSectionGroup.cs, ConfigurationSectionGroupCollection.cs
1522 ConfigurationUpdateMode.cs, ConfigurationUserLevel.cs
1523 ConfigurationValidationAttribute.cs, ConnectionStringsSection.cs
1524 ConnectionStringSettingsCollection.cs, ConnectionStringSettings.cs
1525 IntegerConfigurationProperty.cs, NonEmptyStringConfigurationProperty.cs
1526 NonEmptyStringFlags.cs, PathLevel.cs, ProtectedConfigurationProvider.cs
1527 ProviderBase.cs, ProviderSettings.cs, ProviderSettingsCollection.cs
1528 RuntimeOnlySection.cs, SectionInfo.cs, SectionGroupInfo.cs
1529 TimeSpanConfigurationProperty.cs, TimeSpanPropertyFlags.cs
1530 TimeSpanSerializedFormat.cs:
1532 Moved from the System assembly.