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