Commit Graph
301 Commits
Author SHA1 Message Date
Igor Zelmanovich 221bb45ab1 fix exception propagation
svn path=/trunk/mcs/; revision=94382
2008-01-30 14:57:10 +00:00
Zoltan Varga f9801d39ef 2008-01-16 Zoltan Varga <[email protected]>
* ConfigurationElement.cs: Allow non-public constructors. Fixes #353554.

svn path=/trunk/mcs/; revision=93007
2008-01-16 00:21:09 +00:00
Zoltan Varga 0888ca8ea8 2008-01-16 Zoltan Varga <[email protected]>
* PropertyInformation.cs: Allow non-public constructors. Fixes #353557.

svn path=/trunk/mcs/; revision=93006
2008-01-16 00:17:22 +00:00
Zoltan Varga 81b4594d60 2008-01-16 Zoltan Varga <[email protected]>
* ConfigurationElement.cs: Consider non-public properties as well. Fixes
	#353553.

svn path=/trunk/mcs/; revision=93000
2008-01-15 23:47:01 +00:00
Sebastien Pouliot 06b2a1426e 2008-01-12 Sebastien Pouliot <[email protected]>
* ConfigurationLocationCollection.cs: Avoid infinite recursion. 
	Found using Gendarme.


svn path=/trunk/mcs/; revision=92757
2008-01-12 17:36:22 +00:00
Konstantin Triger 463fe4b128 properly override NameValueCollection to support interop with it
svn path=/trunk/mcs/; revision=91960
2007-12-27 18:51:37 +00:00
Konstantin Triger 847bc730fa typo - pass the correct property to Attribute.GetCustomAttribute; Pass oroginal exception as inner
svn path=/trunk/mcs/; revision=91871
2007-12-25 07:12:08 +00:00
Noam Lampert 078bfb7274 Build java configuration using RT of JRE 1.4.2 for support of older java systems
svn path=/trunk/mcs/; revision=91221
2007-12-13 12:01:56 +00:00
Marek Habersack 1a3a14355b forgot to commit the changelog
svn path=/trunk/mcs/; revision=90759
2007-12-05 13:13:09 +00:00
Marek Habersack 15c1349853 2007-12-05 Marek Habersack <[email protected]>
* ConfigurationElement.cs: some property values may be null
	objects in GetHashCode.

svn path=/trunk/mcs/; revision=90758
2007-12-05 13:12:41 +00:00
Marek Habersack cf709f6147 2007-11-23 Marek Habersack <[email protected]>
* ConfigurationElementCollection.cs: ThrowOnDuplicate returns true
	if the collection is one of the AddRemoveClearMap or
	AddRemoveClearMapAlternate types.

svn path=/trunk/mcs/; revision=90207
2007-11-23 01:00:25 +00:00
Arina Itkes daa0a24c3e TARGET_JVM: replacing config file name to actual
svn path=/trunk/mcs/; revision=90154
2007-11-22 13:34:19 +00:00
Atsushi Eno 3124e8a335 2007-11-15 Atsushi Enomoto <[email protected]>
* Makefile : added -r:System.Data.
	* t45.cs, t45.exe.expected : test for bug #323708.


svn path=/trunk/mcs/; revision=89702
2007-11-15 20:22:22 +00:00
Atsushi Eno 121130f682 2007-11-15 Atsushi Enomoto <[email protected]>
Part of fix for bug #323708.
	* ConfigurationSection.cs : in GetRuntimeObject(), take parent
	  section instance into consideration.
	* SectionInformation.cs : to make it possible, GetParentSection()
	  should be implemented.
	* Configuration.cs : to make it possible, GetSectionInstance()
	  should set parent section on its SectionInformation. It used to
	  just steal parent's xml when its own xml does not exist, but
	  it now blocks correct configuration retrieval.


svn path=/trunk/mcs/; revision=89700
2007-11-15 20:11:52 +00:00
Atsushi Eno 2f36fecd77 2007-11-15 Atsushi Enomoto <[email protected]>
* SectionGroupInfo.cs : remove extra StringBuilder creation.


svn path=/trunk/mcs/; revision=89698
2007-11-15 19:56:28 +00:00
Atsushi Eno ec3a87f0fd 2007-11-14 Atsushi Enomoto <[email protected]>
* Configuration.cs : (Save) when the given file path is relative
	  it failed to create directory. Fixed standalone test t25/t26.
	* InternalConfigurationHost.cs : pass userLevel to create a host
	  instance.


svn path=/trunk/mcs/; revision=89597
2007-11-14 08:44:22 +00:00
Atsushi Eno 7282012070 2007-11-13 Atsushi Enomoto <[email protected]>
* DelegatingConfigHost.cs: 2.0 API fix.


svn path=/trunk/mcs/; revision=89550
2007-11-13 13:06:19 +00:00
Noam Lampert 56c85a8713 Remove redundant file from Java build
svn path=/trunk/mcs/; revision=87640
2007-10-17 09:04:54 +00:00
Konstantin Triger 5bdfdd3be1 add new file
svn path=/trunk/mcs/; revision=87630
2007-10-17 07:20:31 +00:00
Konstantin Triger 670db7bc7a TARGET_JVM: remove extern declaration from compilation
svn path=/trunk/mcs/; revision=87629
2007-10-17 07:19:04 +00:00
Atsushi Eno c6de3dc025 2007-10-04 Atsushi Enomoto <[email protected]>
* InternalConfigurationHost.cs : when the streamName is for
	  machine.config, try get_bundled_machine_config() icall first.
	  This hopefully implements the requested feature in bug #325022.
	* Configuration.cs : added comment.


svn path=/trunk/mcs/; revision=86847
2007-10-04 05:46:45 +00:00
Noam Lampert c1498b1027 Update Java build system
svn path=/trunk/mcs/; revision=85398
2007-09-06 10:20:49 +00:00
Gert Driesen b6cba20c88 * ConfigurationManager.cs: Fixed line endings. Avoid warning by
changing accessibility of ChangeConfigurationSystem to internal.
* Configuration.cs: Fixed compiler warnings.
* DpapiProtectedConfigurationProvider.cs: Fixed line endings.

svn path=/trunk/mcs/; revision=85130
2007-08-31 14:27:11 +00:00
Gert Driesen 1a52c9eadd * System.Configuration_test.dll.sources: added ProviderBaseTest.cs.
* ProviderBaseTest.cs: Added tests for Initialize.
* ProviderBase.cs: Remove "description" key from NameValueCollection.
Use provider name as description if description is null or a zero
length string. Modifies exception messages to match MS.
* GenericEnumConverterTest.cs: Remove unused variable.
* ConfigurationManagerTest.cs: Fixed line endings.
* ConnectionStringSettingsTest.cs: Fixed line endings and avoid
ToString override warning.
* KeyValueConfigurationElementTest.cs: Fixed line endings.
* KeyValueConfigurationCollectionTest.cs: Fixed line endings.

svn path=/trunk/mcs/; revision=85126
2007-08-31 14:15:07 +00:00
Atsushi Eno 1512182430 2007-08-21 Atsushi Enomoto <[email protected]>
* ConfigurationManager.cs : To open exe configuration, use 
	  GetEntryAssembly() first, and GetCallingAssembly() only when
	  it was not found. Should fix bug #82071.


svn path=/trunk/mcs/; revision=84547
2007-08-21 12:53:10 +00:00
Noam Lampert 82cbb9d402 Remove %BACK_TO_ROOT_DIR%
svn path=/trunk/mcs/; revision=82928
2007-07-29 11:21:58 +00:00
Atsushi Eno d4de8fdd7d 2007-06-21 Atsushi Enomoto <[email protected]>
* Configuration.cs, InternalConfigurationHost.cs :
	  configuration file to write might be given as an absolute path,
	  where the ancestor directories may not exist.


svn path=/trunk/mcs/; revision=80407
2007-06-21 08:15:41 +00:00
Atsushi Eno 94e85f4d14 2007-06-20 Atsushi Enomoto <[email protected]>
* ConfigurationManager.cs : in OpenExeConfiguration() and
	  OpenMappedExeConfiguration(), take userLevel into consideration.
	* InternalConfigurationHost.cs : consider ConfigurationUserLevel and
	  use correct config map file in InitForConfiguration().

	* ConfigurationManagerTest.cs : Enabled some tests with related to
	  roaming user config. Marked some tests for negative check as
	  [NotWorking] (they are rather uncovered bugs than enbug).


svn path=/trunk/mcs/; revision=80335
2007-06-20 16:26:15 +00:00
Atsushi Eno a55800e705 2007-06-18 Atsushi Enomoto <[email protected]>
* ClientConfigurationSystem.cs : do not asume GetEntryAssembly()
          returns non-null. Patch by Patrick Perry.


svn path=/trunk/mcs/; revision=79983
2007-06-18 09:06:13 +00:00
Atsushi Eno 7dbaffe478 2007-06-13 Atsushi Enomoto <[email protected]>
* ConfigurationElement.cs : SerializeToXmlElement() should be
	  called regardless of HasValues() return value, especially since
	  it could be overriden (e.g. in SettingsValueElement).


svn path=/trunk/mcs/; revision=79467
2007-06-13 17:52:43 +00:00
Atsushi Eno b0c24508c7 2007-06-13 Atsushi Enomoto <[email protected]>
* ConfigurationSectionGroup.cs
	  Configuration.cs : ConfigurationSectionGroup must be initialized
	  at least when being added to a collection.

	* ConfigurationSectionGroupTest.cs : new (my change is with tests.)

	* System.Configuration_test.dll.sources :
	  added ConfigurationSectionGroupTest.cs.


svn path=/trunk/mcs/; revision=79445
2007-06-13 16:14:09 +00:00
Vladimir Krasnov d39fab68d7 * ConfigurationElement.cs: refactored GetKeyProperties and GetDefaultCollection methods, map should not be used here, Properties will do instead.
Refactored ElementMap class
* ConfigurationElementCollection.cs: fixed InitFromProperty, GetMap() should not be called here
* ElementInformation.cs: fixed Properties, moved to ctor to be thread safe
* PropertyInformation.cs: members assigned readonly modifier

svn path=/trunk/mcs/; revision=79268
2007-06-12 14:21:54 +00:00
Noam Lampert c1c62c357e Fix rt reference
svn path=/trunk/mcs/; revision=78494
2007-06-03 10:52:15 +00:00
Marek Habersack fc8e90248f 2007-05-30 Marek Habersack <[email protected]>
* SectionGroupInfo.cs: <location> elements are case-insensitive
	and the same 'path' attribute may be used only once.

	* ConfigurationLocationCollection.cs: Find should be
	case-insensitive for all targets, not just TARGET_JVM.

svn path=/trunk/mcs/; revision=78269
2007-05-30 20:55:08 +00:00
Konstantin Triger fec6300269 refactoring: fix documentation attributes
svn path=/trunk/mcs/; revision=78124
2007-05-29 14:23:48 +00:00
Igor Zelmanovich 5e5b007563 2007-05-17 Igor Zelmanovich <[email protected]>
* Configuration.cs: FilePath implemented according to MSDN:
	If the value for this FilePath property represents a merged view and 
	no actual file exists for the application, the path to the parent 
	configuration file is returned.


svn path=/trunk/mcs/; revision=77564
2007-05-17 14:25:45 +00:00
Igor Zelmanovich 5fde14407f 2007-05-15 Igor Zelmanovich <[email protected]>
* Configuration.cs:
	* ConfigurationLocation.cs:
	implemented EvaluationContext property.		

svn path=/trunk/mcs/; revision=77419
2007-05-15 15:43:02 +00:00
Igor Zelmanovich ae1457b6dd 2007-05-15 Igor Zelmanovich <[email protected]>
* WebConfigurationManager.cs: 
	make configurations hashtable case-insensitive.
	* WebConfigurationHost.cs: for TARGET_J2EE only:
	GetStreamName returns file path in right case, that make it works 
	on case-sensitive file system.

	* ConfigurationLocationCollection.cs: for TARGET_JVM only:
	location path is case-insensitive.
		
	* PageMapper.cs: reverted r77353, 77321
	make it case-insensitive


svn path=/trunk/mcs/; revision=77415
2007-05-15 14:58:27 +00:00
Marek Habersack 73ec289e15 2007-05-15 Marek Habersack <[email protected]>
* ConfigurationElement.cs: added value validation on
	deserialization from the config file.


svn path=/trunk/mcs/; revision=77394
2007-05-15 08:07:45 +00:00
Igor Zelmanovich 8c14490811 2007-05-14 Igor Zelmanovich <[email protected]>
* ConfigurationElement.cs: when attribute value cannot be parsed,
	ConfigurationErrorException is thrown.
		

svn path=/trunk/mcs/; revision=77338
2007-05-14 10:05:15 +00:00
Igor Zelmanovich ed6bbc96b1 2007-05-09 Igor Zelmanovich <[email protected]>
* ConfigurationManager.cs:
	added MonoLimitation attribute for TARGATE_JVM.	
		

svn path=/trunk/mcs/; revision=76992
2007-05-09 09:21:07 +00:00
Igor Zelmanovich 9e94379beb 2007-05-08 Igor Zelmanovich <[email protected]>
* ConnectionStringSettingsCollection.cs: removed 'new' keyword, cause 
	property doesn't hide any inherit property.


svn path=/trunk/mcs/; revision=76929
2007-05-08 13:21:59 +00:00
Konstantin Triger 8c835337e5 use RuntimeEnvironment.SystemConfigurationFile
svn path=/trunk/mcs/; revision=76927
2007-05-08 13:00:19 +00:00
Konstantin Triger 93e7e92fed TARGET_JVM: Enable passing tests
svn path=/trunk/mcs/; revision=76780
2007-05-06 13:30:30 +00:00
Atsushi Eno bc6cc7bf92 2007-04-24 Atsushi Enomoto <[email protected]>
* InternalConfigurationHost.cs : machine configuration covers all
	  ConfigurationAllowDefinition values.


svn path=/trunk/mcs/; revision=76205
2007-04-24 17:26:39 +00:00
Atsushi Eno b0c6b96130 2007-04-17 Atsushi Enomoto <[email protected]>
* ConfigurationManagerTest.cs : added SectionCollectionEnumerator().
	  Fixed NotWorking test OpenMachineConfiguration().


svn path=/trunk/mcs/; revision=75808
2007-04-17 06:16:42 +00:00
Atsushi Eno 5d909baf7d 2007-04-17 Atsushi Enomoto <[email protected]>
* ConfigurationSectionCollection.cs : GetEnumerator() should return
	  IEnumerator for the items, not keys.
	* ConfigurationProperty.cs : more helpful type mismatch message.


svn path=/trunk/mcs/; revision=75801
2007-04-17 01:54:45 +00:00
Konstantin Triger 916e6fa9fd logically move the *.config files under META-INF folder
svn path=/trunk/mcs/; revision=75768
2007-04-16 15:17:31 +00:00
Marek Habersack dff556540d 2007-04-16 Marek Habersack <[email protected]>
* SectionGroupInfo.cs: another (and final, hopefully) fix for bug
	#81321 and several other related issues that were discovered by
	the way. Thanks to Atsushi for help with XmlReader!


svn path=/trunk/mcs/; revision=75753
2007-04-16 10:17:42 +00:00
Marek Habersack 4ba34ceb83 2007-04-15 Marek Habersack <[email protected]>
* SectionGroupInfo.cs: another incarnation of the fix for bug
	#81321.

svn path=/trunk/mcs/; revision=75728
2007-04-15 13:47:17 +00:00