**** Merged r40732-r40872 from MCS ****
[mono.git] / mcs / class / System / System.Configuration / ChangeLog
1 2005-03-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2
3         * Configuration.cs: a few MonoTODOs less.
4
5 2005-03-02  Sureshkumar T  <tsureshkumar@novell.com>
6
7         * ConfigurationSettings.cs: Implemented ConnectionStrings
8         property.
9
10 2005-02-22  Sureshkumar T  <tsureshkumar@novell.com>
11
12         * ConnectionStringsSection.cs: Implemented all methods.
13
14         New Files Added:
15         * ConnectionStringSettings.cs: Configuration object for a
16         connection string element.
17         * ConnectionStringSettingsCollection.cs: Collection of
18         ConnectionStringSettings objects.
19
20 2005-02-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21
22         * Configuration.cs: (.ctor) don't fail if the file to load does not
23         exist.
24         (GetExeConfiguration): use caller assembly location if the path is null
25         and check that the exe file exists.
26         Removed if XML_DEP, as there's one at the top of the file.
27
28 2004-11-18  Geoff Norton <gnorton@customerdna.com>
29
30         * ProviderSettingsCollection.cs: Add XML_DEP because this inherits 
31         ConfigurationElementCollection which has XML_DEP.  Fixes bootstrap
32         
33 2004-11-18  Lluis Sanchez Gual <lluis@novell.com>
34
35         * ProviderSettings.cs, ProviderSettingsCollection.cs: Mostly implemented.
36         * Configuration.cs: Implemented GetSection() and GetSectionGroup().
37         * AppSettingsSection.cs: Better null check in Reset().
38
39 2004-11-15  Lluis Sanchez Gual <lluis@novell.com>
40
41         * TimeSpanConfigurationProperty.cs, TimeSpanPropertyFlags.cs,
42         TimeSpanSerializedFormat.cs: Implemented.
43
44 2004-11-09  Duncan Mak  <duncan@ximian.com>
45
46         * NonEmptyStringConfigurationProperty.cs: Add XML_DEP, this should
47         fix the build.
48
49 2004-11-09  Lluis Sanchez Gual <lluis@novell.com>
50
51         * ConfigurationElement.cs: Implemented Equals and GetHashCode.
52         Only reflect properties from type's members if the type does not
53         override Properties.
54         * ConfigurationElementCollection.cs: Implemented Equals and GetHashCode.
55         Other minor fixes.
56         * ConfigurationProperty.cs: It is not a subclass of ConfigurationElement.
57         * NonEmptyStringConfigurationProperty.cs, NonEmptyStringFlags.cs:
58         Implemented.
59         
60 2004-11-09  Lluis Sanchez Gual <lluis@novell.com>
61
62         * AppSettingsSection.cs: Mostly implemented (missing support for
63         file attribute).
64         * ConfigHelper.cs: GetNameValueCollection now returns a 
65         ConfigNameValueCollection instance which is a NameValueCollection with a
66         modification flag.
67         * ConfigInfo.cs: Added XPath property.
68         * Configuration.cs: Implemented AppSettings property. Set the Path property
69         of sections and groups.
70         * ConfigurationElement.cs: Support key serialization. Properly reset
71         nested elements.
72         * ConfigurationElementCollection.cs: Initial implementation.
73         * ConfigurationSection.cs: Impemented Path and GetRuntimeObject.
74         * ConfigurationSectionGroup.cs: Implemented Path.
75         * SectionGroupInfo.cs: Little fix.
76
77 2004-11-05  Lluis Sanchez Gual <lluis@novell.com>
78
79         * Configuration.cs: Minor fixes.
80         * ConfigurationElement.cs: Added support for the different update modes.
81         * SectionGroupInfo.cs: Support loading the same configuration section
82           from different files.
83         * SectionInfo.cs: Properly write back configuration data for which a
84           section object has not been created.
85
86 2004-11-04  Lluis Sanchez Gual <lluis@novell.com>
87
88         * AppSettingsSection.cs, ConfigurationPropertyCollection.cs,
89           ConfigurationValidationAttribute.cs, ConnectionStringsSection.cs,
90           ProtectedConfigurationProvider.cs, ProviderBase.cs
91           RuntimeOnlySection.cs: Fixed formatting and added missing TODOs.
92
93 2004-11-04  Lluis Sanchez Gual <lluis@novell.com>
94
95         * Configuration.cs, ConfigurationElement.cs, ConfigurationLocation.cs,
96           ConfigurationLocationCollection.cs, ConfigurationProperty.cs,
97           ConfigurationPropertyAttribute.cs, ConfigurationSection.cs,
98           ConfigurationSectionCollection.cs, ConfigurationSectionGroup.cs,
99           ConfigurationSectionGroupCollection.cs,IntegerConfigurationProperty.cs,
100           RuntimeOnlySection.cs: Initial implementation.
101         * ConfigurationAllowDefinition.cs: Removed XML_DEP ifdef
102         * ConfigurationException.cs: format fix.
103         * ConfigInfo.cs, SectionInfo.cs, SectionGroupInfo.cs: New support
104           classes.
105
106 2004-09-10  Tim Coleman <tim@timcoleman.com>
107         * ConfigurationElementCollection.cs ConfigurationElementCollectionType.cs:
108                 New Fx 2.0 stubs
109         * ConfigurationElement.cs:
110                 Fix function declaration
111
112
113 2004-08-16  Duncan Mak  <duncan@ximian.com>     
114
115         * ConfigurationElement.cs (InitializeDefault): Made virtual.
116
117         * AppSettingsSection.cs:
118         * Configuration.cs:
119         * ConfigurationLocation.cs:
120         * ConfigurationLocationCollection.cs:
121         * ConfigurationSection.cs:
122         * ConfigurationSectionCollection.cs:
123         * ConfigurationSectionGroup.cs:
124         * ConfigurationSectionGroupCollection.cs:
125         * ConnectionStringsSection.cs: Added stubs and bits of implementation.
126
127         Other than ConfigurationElementCollection and
128         ConnectionStringsSectionCollection, we now have the basic skeleton
129         for implementing the configuration system in the
130         System.Configuration namespace.
131
132 2004-08-11  Duncan Mak  <duncan@ximian.com>
133
134         * ProtectedConfigurationProvider.cs: Use XML_DEP.
135
136 2004-08-11  Duncan Mak  <duncan@ximian.com>     
137
138         * ProtectedConfigurationProvider.cs:
139         * ProviderBase.cs: Implemented.
140
141         * ConfigurationPropertyAttribute.cs: Implemented attribute.
142
143         * ConfigurationAllowDefinition.cs:
144         * ConfigurationUserLevel.cs:
145         * PathLevel.cs: Added enumerations.
146
147 2004-08-07  Atsushi Enomoto  <atsushi@ximian.com>
148
149         * ConfigurationElement.cs,
150           ConfigurationProperty.cs,
151           ConfigurationPropertyCollection.cs,
152           ConfigurationValidationAttribute.cs : use XML_DEP.
153
154 2004-08-06  Duncan Mak  <duncan@ximian.com>
155
156         * ConfigurationElement.cs: Added stubs.
157
158         * ConfigurationProperty.cs:
159         * ConfigurationPropertyCollection.cs:
160         * ConfigurationValidationAttribute.cs: Added.
161
162         * ConfigurationPropertyFlags.cs: 
163         * ConfigurationUpdateMode.cs: Added 2.0 enumerations.   
164
165 2004-06-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
166
167         * ConfigurationSettings.cs: allow empty <configSections>.
168
169 2004-05-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
170
171         * ConfigurationSettings.cs: don't ask me why, but the .cctor
172         initialization of 'instance' field does no longer work.
173
174 2004-05-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
175
176         * ConfigXmlDocument.cs: removed method that was supposed to be internal.
177
178         * ConfigurationSettings.cs: instead of calling the overload that doesn't
179         exist in MS, use what we have when loading an external file.
180
181 2004-04-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
182
183         * ConfigXmlDocument.cs: fixed overloaded Load and added a new one that
184         sets the file name.
185
186         * ConfigurationSettings.cs: use the new Load in ConfigXmlDocument when
187         loading sections.
188
189         * NameValueFileSectionHandler.cs: don't fails if the path for the 'file'
190         attribute doesn't have a directory.
191
192         Closes bug #57244.
193
194 2004-03-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
195
196         * ConfigurationSettings.cs: removed FileWatcherCache. See bug #53445.
197
198 2003-12-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
199
200         * ConfigurationSettings.cs: initialize config in
201         ChangeConfigurationSettings if it has not been done yet. Patch by
202         George Kodinov gkodinov@openlinksw.co.uk). Fixes bug #51643.
203
204 2003-12-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
205
206         * ConfigurationSettings.cs: handle allowdefinition and allowlocation,
207         added locks, don't reopen the file for every new section to be read,
208         but keep them as strings and build the section handlers with that.
209         Also allow changing the configuration system (used from System.Web).
210
211 2003-11-17 Ben Maurer  <bmaurer@users.sourceforge.net>
212
213         * ConfigurationSettings.cs: make the *Mark objects static
214         because they need to be comparable across instances.
215         (ReadSectionGroup): You can add an element to a group declared
216         in the parent config files (MS.net's QuickStarts do this).
217
218 2003-11-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
219
220         * ConfigurationSettings.cs: don't handle null or non-existent file in
221         the catch blocks.
222
223 2003-10-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
224
225         * ConfigurationSettings.cs: really make the cache work.
226
227 2003-10-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
228
229         * ConfigurationSettings.cs: pass the file name we're reading as the
230         context.
231
232 2003-10-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
233
234         * ConfigurationSettings.cs: patch by Eric Lindvall (eric@5stops.com)
235         that improves performance by not reading the file more than once.
236
237 2003-07-15  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
238
239         * ConfigurationSettings.cs: Removed unused exception variable, fixes
240         compiler warning
241
242 2003-06-16  Lluis Sanchez Gual <lluis@ximian.com>
243
244         * ConfigurationSettings.cs: Avoid chicken-egg problem when reading
245         machine.config. Cannot use an uri to read mechine.config because web
246         request module handelrs are defined in machine.config.
247
248 2003-03-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
249
250         * AppSettingsReader.cs: fixed bug #38755.
251
252 2002-12-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
253
254         * ConfigXmlDocument.cs: don't jump over the first element.
255         * ConfigurationSettings.cs: pass doc.DocumentElement instead of doc.
256
257         This used to work until i tried to access one attribute of the first
258         element and realized that the element was not the expected!
259         This change does not affect the configuration handlers that only use
260         ChildNodes property on the XmlNode they get as argument.
261
262 2002-12-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
263
264         * ConfigurationSettings.cs: removed type loading hack no longer needed.
265
266 2002-12-14  Jonathan Pryor <jonpryor@vt.edu>
267
268         * ConfigurationSettings.cs: Allow configuration sections to be removed.
269
270 2002-11-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
271
272         * ConfigurationSettings.cs: use AppDomainSetup to get the configuration
273         file name for the AppDomain.
274
275 2002-10-31  Gonzalo Paniagua Javier <gonzalo@ximian.com>
276
277         * ConfigHelper.cs: NameValueCollection.Add is now fixed.
278
279 2002-10-14  Martin Baulig  <martin@gnome.org>
280
281         * ConfigurationSettings.cs (DefaultConfig.GetAppConfigPath):
282         Append ".config" to the filename, not ".exe.config" since the
283         filename already has a ".exe" suffix.
284
285 2002-10-14  Martin Baulig  <martin@gnome.org>
286
287         * ConfigurationSettings.cs (DefaultConfig.GetAppConfigPath): Use
288         Assembly.Location, not Assembly.FullName to get its filename.
289
290 2002-10-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
291
292         * ConfigHelper.cs: workaround for a bug in NameValueCollection.
293         * ConfigurationSettings.cs: load sections when the parent holds a
294         handler for it. Now overriding appSettings values in the app config
295         file works (first <remove..> and then <add...).
296
297 2002-10-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
298
299         * ConfigHelper.cs:
300         * NameValueFileSectionHandler.cs: check that Attributes is not null.
301
302 2002-10-09  Miguel de Icaza  <miguel@ximian.com>
303
304         * NameValueFileSectionHandler.cs: For now if a section is not
305         present, return null.  Do not know what the real fix is.  Gonzalo
306         will have to look at this, but the debugger was crashing as
307         appSettings in the machine.config does not exist, but GetConfig
308         returns a non-null value when looking it up when you do a
309         GetDocumentForSection ("appSettings").
310
311 2002-10-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
312
313         * ConfigurationSettings.cs: use get_machine_config_path internal call.
314
315 2002-10-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
316
317         * ConfigXmlDocument.cs: move the reader for the section to the first
318         element.
319         
320         * ConfigurationSettings.cs: fixed hierarchical search for a handler. 
321
322 2002-10-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
323
324         * ConfigurationSettings.cs: reimplemented. It is now able to deliver
325         sections to their handlers for processing.
326
327 2002-10-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
328
329         * ConfigHelper.cs: New file. Contains some
330         helper functions for getting key-value collections from the config file.
331         
332         * ConfigXmlDocument.cs: wrapper around xml elements to provide line
333         number and file name info.
334         * IConfigXmlNode.cs: used in ConfigXmlDocument and
335         ConfigurationException.
336
337         * ConfigurationException.cs: get file name and line
338         number from the wrapped XmlNode. Display this info in Message.
339
340         * NameValueFileSectionHandler.cs: new handler.
341         * DictionarySectionHandler.cs:
342         * NameValueSectionHandler.cs: modified to use the helper methods in
343         ConfigHelper.
344
345 2002-10-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
346
347         * AppSettingsReader.cs: New file.
348         * IConfigurationSystem.cs: New file.
349
350         * IgnoreSectionHandler.cs:
351         * NameValueSectionHandler.cs:
352         * SingleTagSectionHandler.cs: little fixes.
353
354 2002-09-03  Martin Baulig  <martin@gnome.org>
355
356         * ConfigurationSettings.cs (ConfigurationSettings.GetConfig): Use the
357         correct configuration filename, fixed the TODO.
358         (GetSectionHanderType): Renamed to GetSectionHandlerType.
359
360         * NameValueSectionHandler.cs (NameValueSectionHandler.Create): Allow
361         whitespaces in the configuration file.
362
363 2002-01-31  Duncan Mak  <duncan@ximian.com>
364
365         * ConfigurationException.cs: Rewrote most of the file and added
366         serialization bits.
367
368 2002-01-06  Ravi Pratap  <ravi@ximian.com>
369
370         * ConfigurationSettings.cs, IgnoreSectionHandler.cs : MonoTODO decoration
371
372         * SingleTagSectionHandler.cs, DictionarySectionHandler.cs, 
373         NameValueSectionHandler.cs : Ditto.
374
375 2001-08-28  Christopher Podurgiel <cpodurgiel@msn.com>
376         * IConfigurationSectionHandler.cs: Added reference to System.Xml.
377         
378         * SingleTagSectionHandler.cs: Added Implementation of Create() method.
379         
380         * NameValueSectionHandler.cs: Added Implementation of Create() method.
381         
382         * ConfigurationException.cs: Now returns proper message rather than "System Exception".
383
384 2001-08-26  Christopher Podurgiel <cpodurgiel@msn.com>
385
386         * ConfigurationSettings.cs: No longer references the
387         NameValueSectionHandler directly.  Instead it uses
388         System.Reflection to call the Create() method for the appropriate
389         SectionHandler as defined in the .config file.