Commit Graph
192 Commits
Author SHA1 Message Date
Marek Habersack 6163d748f1 2009-08-20 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: GetSection does not use
	FindWebConfig to get the virtual path to open configuration for -
	doing so would make the configuration system ignore <location>
	sections. Fixes bug #482181

svn path=/trunk/mcs/; revision=140375
2009-08-20 21:07:20 +00:00
Gonzalo Paniagua Javier f7a0e3a47d 2009-07-23 Gonzalo Paniagua Javier <[email protected]>
* WebConfigurationManager.cs: avoid possible infinite loop when the
	path starts with ~ and 1 file check.


svn path=/trunk/mcs/; revision=138495
2009-07-23 05:01:23 +00:00
Marek Habersack 4a2ae0bb4f 2009-07-15 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: another approach to suppressing
	application reloads after the app writes to its root web.config
	file. Leaving the previous code in place to get more
	protection. It's a kludge, but it's the best option to avoid
	all the races caused by System.Configuration+FileSystemWatcher
	without rewriting large parts of System.Configuration (and
	System.Web.Configuration). Fixes bug #522017

2009-07-15  Marek Habersack  <[email protected]>

	* Configuration.cs: explicitly flush the stream when writing XML
	data. Part of fix for bug #522017

2009-07-15  Marek Habersack  <[email protected]>

	* HttpApplicationFactory.cs: added internal methods to
	enable/disable specific watchers. Part of fix for bug #522017

svn path=/trunk/mcs/; revision=137951
2009-07-15 13:22:33 +00:00
Marek Habersack 01916d259e 2009-07-14 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: added support for suppressing
	application reload when the main config file is written to from
	application.

	* WebConfigurationHost.cs: added minimal implementation of
	WriteCompleted, which checks if there's need to suppress
	application reload.

2009-07-14  Marek Habersack  <[email protected]>

	* ConfigurationSaveEventArgs.cs, ConfigurationSaveEventHandler.cs:
	added

	* Configuration.cs: added two internal events - SaveStart and
	SaveEnd. They are used by System.Web's configuration system to
	suppress application reloads when configuration is modified and
	saved from within a web application. It is necessary to use events
	since there is no guarantee the web application will use
	WebConfigurationManager (and thus WebConfigurationHost) for
	writing.

2009-07-14  Marek Habersack  <[email protected]>

	* System.Configuration.dll.sources: added
	System.Configuration/ConfigurationSaveEventArgs.cs
	System.Configuration/ConfigurationSaveEventHandler.cs

2009-07-14  Marek Habersack  <[email protected]>

	* AssemblyInfo.cs: added InternalsVisibleTo for System.Web

2009-07-14  Marek Habersack  <[email protected]>

	* HttpApplicationFactory.cs: OnFileChanged doesn't reload
	application if reload suppression is active.

svn path=/trunk/mcs/; revision=137847
2009-07-14 11:24:36 +00:00
Marek Habersack 972ba36bac 2009-07-13 Marek Habersack <[email protected]>
* ProvidersHelper.cs: InstantiateProvider doesn't have to
	explicitly look for types in App_Code assemblies - this is done in
	HttpApplication.LoadType.

2009-07-13  Marek Habersack  <[email protected]>

	* AppCodeCompiler.cs: wrap HttpApplication.LoadTypeFromBin call in
	try/catch, so that we can wrap the possible exception in
	HttpException.

2009-07-13  Marek Habersack  <[email protected]>

	* HttpApplication.cs: LoadType - wrap call to LoadTypeFromBin in
	try/catch so that we can decide whether or not to throw
	exceptions. LoadTypeFromBin - ignore the FileLoadException and
	BadImageException exceptions as they don't matter in this
	context.

svn path=/trunk/mcs/; revision=137811
2009-07-13 19:52:03 +00:00
Gonzalo Paniagua Javier 3d7ff5cc84 2009-07-09 Gonzalo Paniagua Javier <[email protected]>
* WebConfigurationHost.cs: null means MachineToApplication.
	* WebConfigurationManager.cs: when caching configuration and sections,
	use the configuration file directory instead of the incoming request
	path.


svn path=/trunk/mcs/; revision=137632
2009-07-09 17:10:07 +00:00
Gonzalo Paniagua Javier aa9460908c 2009-06-08 Gonzalo Paniagua Javier <[email protected]>
* HttpHandlerAction.cs: fix path matching when the pattern has more
	than one slash.


svn path=/trunk/mcs/; revision=135685
2009-06-08 19:48:22 +00:00
Marek Habersack 6a261e04ad 2009-06-05 Marek Habersack <[email protected]>
* VirtualPathUtility.cs: IsValidVirtualPath no longer uses
	WebConfigurationManager.GetSection to retrieve the verification
	setting. Instead, the setting is retrieved in the static
	constructor.

	* HttpRequest.cs: ApplyUrlMapping must not use
	WebConfigurationManager.GetSection as it would cause a recursive
	call loop. Code to detect whether url mappings are in effect has
	been moved to a static constructor.

2009-06-05  Marek Habersack  <[email protected]>

	* Page.cs: InitializeTheme uses WebConfigurationManager.GetSection
	to retrieve page theme name. GetWebApplicationSection cannot be
	used because the system.web/pages section is valid also in
	subdirectories. Fixes bug #510302

2009-06-05  Marek Habersack  <[email protected]>

	* WebConfigurationManager.cs: OpenWebConfiguration caches
	configurations with a key generated from all the parameters passed
	to it, not just from path.
	Added internal GetSection method which takes HttpContext as its
	third parameter - used in calling OpenWebConfiguration.
	FindWebConfig is no longer used in GetSection - it breaks handling
	of <location> elements in config files. Fixes bug #510302

svn path=/trunk/mcs/; revision=135558
2009-06-05 20:53:26 +00:00
Marek Habersack 3346c35db8 2009-06-03 Marek Habersack <[email protected]>
* MonoSettingsSection.cs: added new property,
	verificationCompatibility, which serves the same purpose as the
	registry key described in http://support.microsoft.com/kb/932552
	(when set to 1 it turns off virtual path validity
	verification). Fixes bug #509163

2009-06-03  Marek Habersack  <[email protected]>

	* VirtualPathUtility.cs: IsValidVirtualPath now checks the value
	of the
	HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET\VerificationCompatibility
	registry key when running on Windows and also consults the
	mono-specific system.web/monoSettings configuration section to see
	what is the verificationCompatibility property set to. If either
	of the two is set to 1, Mono will not verify the validity of
	the current request's path. Fixes bug #509163

svn path=/trunk/mcs/; revision=135328
2009-06-03 17:55:10 +00:00
Marek Habersack 03a497665b 2009-05-14 Marek Habersack <[email protected]>
* HandlerFactoryConfiguration.cs: if we're matching a default
	handler, disallow caching.

2009-05-14  Marek Habersack  <[email protected]>

	* HttpHandlersSection.cs: if we're matching a default handler,
	disallow caching.

2009-05-14  Marek Habersack  <[email protected]>

	* HttpApplication.cs: LocateHandler won't cache if a default
	handler was returned.

svn path=/trunk/mcs/; revision=134097
2009-05-14 01:18:12 +00:00
Marek Habersack 7766743366 2009-04-03 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: added code in the static constructor
	to enable retrieving application settings via
	ApplicationSettingsBase from within asp.net applications. Fixes
	bug #491531

	* ApplicationSettingsConfigurationFileMap.cs: added.

2009-04-03  Marek Habersack  <[email protected]>

	* CustomizableFileSettingsProvider.cs: added a way for System.Web
	to specify path to the current Web.config. Fixes bug #491531

svn path=/trunk/mcs/; revision=130909
2009-04-02 22:35:28 +00:00
Dean Brettle c179d76e68 2009-03-12 Dean Brettle <[email protected]>
* nBrowser/Build.cs: made Browser() method thread-safe and moved the
	actual tree creation to a private InitializeTree() method for clarity.


svn path=/trunk/mcs/; revision=129176
2009-03-12 18:36:25 +00:00
Marek Habersack da7b280757 2009-03-01 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: optimized GetWebApplicationSection a
	bit

svn path=/trunk/mcs/; revision=128278
2009-02-28 23:17:42 +00:00
Marek Habersack cab3168b4d 2009-02-28 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: make sure no nrex happens in
	GetSectionCacheKey ()

svn path=/trunk/mcs/; revision=128251
2009-02-28 02:15:28 +00:00
Gonzalo Paniagua Javier db46edacce 2009-02-26 Gonzalo Paniagua Javier <[email protected]>
* WebConfigurationManager.cs: generate a hash from the string hsah
	codes instead of concatenating them.


svn path=/trunk/mcs/; revision=128121
2009-02-26 17:24:22 +00:00
Marek Habersack 7dea4232fe 2009-01-27 Marek Habersack <[email protected]>
* HttpHandlerAction.cs: removed the matches cache, it doesn't
	improve matters here in 99% of the cases.
	Regexps are no longer used to match handler paths, SearchPattern
	is used instead.

2009-01-27  Marek Habersack  <[email protected]>

	* SearchPattern.cs: added

2009-01-27  Marek Habersack  <[email protected]>

	* System.Web.dll.sources: added System.Web.Util/SearchPattern.cs

svn path=/trunk/mcs/; revision=124659
2009-01-27 14:25:00 +00:00
Marek Habersack eb01ce450f 2009-01-26 Marek Habersack <[email protected]>
* WebConfigurationHost.cs: when an attempt to map a fake virtual
	path is made, MapPath returns the aplication physical root
	directory. Fixes bug #463950

svn path=/trunk/mcs/; revision=124479
2009-01-26 11:38:08 +00:00
Dean Brettle 6196e3dad3 ++ System.Web/ChangeLog (working copy)
* HttpApplicationFactory.cs: if there are any *.browser files in
	App_Data/Mono_Machine_Browsers/, use those instead of the default
	machine browser files.  This allows app developers to workaround
	limitations with Mono's default browser files without causing
	incompatibilities with MS's implementation.

++ System.Web.Configuration_2.0/ChangeLog	(working copy)

	* nBrowser/Node.cs: Fixed compatibility bug where <identification> sections were required
	in browser defs.  


svn path=/trunk/mcs/; revision=123263
2009-01-13 21:45:31 +00:00
Marek Habersack 2e5b6c6fee 2009-01-09 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: do not normalize the path in
	FindWebConfig when getting the virtual directory.

svn path=/trunk/mcs/; revision=122844
2009-01-09 00:15:17 +00:00
Marek Habersack 10e114be23 2009-01-08 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: improve performance of
	FindWebConfig.

svn path=/trunk/mcs/; revision=122730
2009-01-08 00:32:37 +00:00
Marek Habersack e3ec7324e7 2009-01-07 Marek Habersack <[email protected]>
* HttpModulesSection.cs: allow for modules with non-public
	constructors. Fises bug #463971

	* HttpHandlerAction.cs: allow for handlers with non-public
	constructors. Fixes bug #463971

svn path=/trunk/mcs/; revision=122658
2009-01-07 13:47:03 +00:00
Marek Habersack a3e3e7976c 2008-12-24 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: A better version of the previous
        GetSection fix. Right now the method searches for directories
        containing web.config and uses them, if found, to open the web
        configuration. If no web.config is found, web configuration is
        opened for the root application directory.

        * WebConfigurationHost.cs: made GetWebConfigFileName internal
        static, so that code can be reused from WebConfigurationManager.

svn path=/trunk/mcs/; revision=122124
2008-12-25 13:02:15 +00:00
Marek Habersack ce8461d813 2008-12-23 Marek Habersack <[email protected]>
* NunitWeb/Makefile (NunitWeb.dll): added NunitWeb/CustomSection.cs

	* NunitWebResources/CustomSectionEmptyCollection.aspx: added

2008-12-23  Marek Habersack  <[email protected]>

	* WebConfigurationManagerTest.cs: added new test.

2008-12-23  Marek Habersack  <[email protected]>

	* CustomSection.cs: added. Implementation of custom configuration
	elements for WebConfigurationManager tests.

2008-12-23  Marek Habersack  <[email protected]>

	* Web.mono.config: added CustomTags section definition, used in
	WebConfiguratioManager tests.

2008-12-23  Marek Habersack  <[email protected]>

	* WebConfigurationManager.cs: GetSection should call
	OpenWebConfiguration using the actual directory path, not a file
	path. If it fails to do so, System.Configuration may treat the
	top-level Web.config file as a child one which, in turn, in
	certain circumstances will lead to duplicate keys inserted in
	collections.

2008-12-23  Marek Habersack  <[email protected]>

	* Makefile (TEST_RESOURCE_FILES): added Test/mainsoft/NunitWebResources/CustomSectionEmptyCollection.aspx

	* System.Web_test.dll.sources: added mainsoft/NunitWeb/NunitWeb/CustomSection.cs

svn path=/trunk/mcs/; revision=122024
2008-12-23 02:42:50 +00:00
Marek Habersack 55a73972c1 2008-12-16 Marek Habersack <[email protected]>
* WebConfigurationHost.cs: IsDefinitionAllowed should treat
	configPath == "~" as the root application path.

svn path=/trunk/mcs/; revision=121636
2008-12-16 22:00:56 +00:00
Gonzalo Paniagua Javier f6cebfc567 revert
svn path=/trunk/mcs/; revision=121599
2008-12-16 14:56:21 +00:00
Dean Brettle af9585a7b3 Changes approved via private email from Marek Habersack <[email protected]> on 2008-10-05.
In System.Web.Configuration_2.0:
2008-12-12  Owen Brady <[email protected]>
	* nBrowser/File.cs, nBrowser/Identification.cs, nBrowser/Node.cs, nBrowser/NodeTypes.cs,
	nBrowser/Result.cs, nBrowser/Build.cs, nBrowser/Exception.cs, CapabilitiesBuild.cs, 
	CapabilitiesResult.cs: Updated Copyright information to include updated contact information.
	
	* nBrowser/Build.cs: Removed LoadDefaultEmbeddedResource function, the embeded resource
	it is referring too was never included in Mono. And was designed for a free standing 
	browser identification libary.

	* nBrowser/Exception.cs: Removed Compile Attributes and related comments which were left
	in from the original free standing browser libary.
	
	* CapabilitiesBuild.cs: Removed Header Checksum related coding since it is not required
	for the Mono implementation.

	* CapabilitiesResult.cs: Updated Copyright information to include updated contact information. 
	Removed functions which were designed to make use of features of a embeded browser file which
	is not present in Mono.
	
	* CapabilitiesChecksum.cs, RandomRoboBotKeywords.txt: Deleted

In .:
2008-12-12  Dean Brettle  <[email protected]>

	* System.Web.dll.sources: deleted
	System.Web.Configuration_2.0/CapabilitiesChecksum.cs
	
	* Makefile (RESOURCE_FILES_2): deleted
	System.Web.Configuration_2.0/RandomRoboBotKeywords.txt


svn path=/trunk/mcs/; revision=121408
2008-12-12 09:43:04 +00:00
Gonzalo Paniagua Javier 56484a4ff6 2008-11-22 Gonzalo Paniagua Javier <[email protected]>
* WebConfigurationManager.cs: fix nullref.


svn path=/trunk/mcs/; revision=119699
2008-11-22 05:34:02 +00:00
Gonzalo Paniagua Javier 464ff6edc4 2008-11-19 Gonzalo Paniagua Javier <[email protected]>
* WebConfigurationManager.cs: don't keep configuration sections for
	files that don't exist on disk.
	Bug #443569 fixed.


svn path=/trunk/mcs/; revision=119378
2008-11-19 21:31:17 +00:00
Marek Habersack f345ffeea2 2008-10-21 Marek Habersack <[email protected]>
* CapabilitiesChecksum.cs: implement Hex and MapToHex more efficiently.

2008-10-21  Marek Habersack  <[email protected]>

	* OutputCacheModule.cs: seal the class.
	Made OnRawResponseRemoved a static method.

	* CachedVaryBy.cs: seal the class.
	Use portable line terminators instead of literal '\n'.

	* Cache.cs: seal the CacheItem and CacheItemEnumerator classes.

	* CacheDependency.cs: dispose the associated dependency in the
	DependencyDispose method.

	* CachedRawResponse.cs: seal the class

2008-10-21  Marek Habersack  <[email protected]>

	* CapabilitiesLoader.cs: seal BrowserData.
	Seal CapabilitiesLoader.
	Do not lock on typeof (CapabilitiesLoader) in GetCapabilities ().

svn path=/trunk/mcs/; revision=116583
2008-10-21 01:08:23 +00:00
Marek Habersack 1923115250 2008-10-09 Marek Habersack <[email protected]>
* MonoSettingsSection.cs: added - a section for mono-specific
	settings.

2008-10-09  Marek Habersack  <[email protected]>

	* BuildManager.cs: if monoSettings section is found in the
	system.web section in web.config, use its contents to augment
	compiler configuration. Used to work around the issue reported in
	bug #433806

2008-10-09  Marek Habersack  <[email protected]>

	* System.Web.dll.sources: added System.Web.Configuration_2.0/MonoSettingsSection.cs

svn path=/trunk/mcs/; revision=115337
2008-10-09 14:45:06 +00:00
Marek Habersack 224325b8ba 2008-10-01 Marek Habersack <[email protected]>
* CapabilitiesResult.cs: added support for the "browsers"
	capability - a collection of matching browser ids.

	* nBrowser/Node.cs: store matching browser ids in the capabilities
	collection (to support IsBrowser correctly)

2008-10-01  Marek Habersack  <[email protected]>

	* BrowserCapabilities.cs: IsBrowser needs to compare browser names
	case insensitively.

svn path=/trunk/mcs/; revision=114551
2008-10-01 09:01:53 +00:00
Dean Brettle 0a2f219410 ++ Test/mainsoft/ChangeLog (working copy)
* NunitWebResources/adapters.browser: added capabilities with 
	multiple substitutions and $ and % characters not associated
	with substitutions. 

++ Test/System.Web/ChangeLog	(working copy)

	* AppBrowsersTest.cs: Added tests for bug where capabilities 
	containing literal $ or % were dropped.  Added test for bug 
	where capabilities with multiple $ substitutions only
	had one applied.

++ System.Web.Configuration_2.0/ChangeLog	(working copy)

	* nBrowser/Node.cs nBrowser/Build.cs nBrowser/Identification.cs:
	Fixed race condition in Node.Process() by removing mutating 
	functions from Identification and changing Node.Process() and
	Node.BrowserIdentification() to maintain state in a List<Match>
	instead of a List<Identification>.
	
	* nBrowser/Node.cs: Fixed race condition associated with lookup of
	adapter types.
	
	* nBrowser/Node.cs: Removed duplicate call to 
	Node.BrowserIdentification() from Node.Process().

	* nBrowser/Node.cs: Removed duplicate call to Result.AddAdaper()
	from Node.Process().
	
	* nBrowser/Node.cs: Fixed bug where capabilities containing literal
	$ or % were dropped.

	* nBrowser/Node.cs: Fixed bug where capabilities with multiple $ 
	substitutions only had one applied.


svn path=/trunk/mcs/; revision=108861
2008-07-26 16:50:00 +00:00
Zoltan Varga eced772f23 2008-06-30 Zoltan Varga <[email protected]>
* CapabilitiesResult.cs: Make the RandomRoboBotKeywords array static and compute it
	only once.

svn path=/trunk/mcs/; revision=106942
2008-06-30 22:59:55 +00:00
Marek Habersack 4944213e17 2008-06-30 Marek Habersack <[email protected]>
* AspGenerator.cs: hush the warnings and fix invalid type
	comparison.

	* AssemblyBuilder.cs: hush the warnings and add some debugging
	CWLs.

	* AspParser.cs, AppResourcesCompiler.cs, TemplateBuildProvider.cs,
	CachingCompiler.cs, BaseCompiler.cs, TemplateControlCompiler.cs,
	SimpleBuildProvider.cs, BuildManager.cs: hush the warnings

2008-06-30  Marek Habersack  <[email protected]>

	* HtmlForm.cs: hush the warnings

2008-06-30  Marek Habersack  <[email protected]>

	* ObjectDataSourceView.cs, Menu.cs, DataList.cs,
	CustomValidator.cs: hush the warnings

2008-06-30  Marek Habersack  <[email protected]>

	* MachineKeyRegistryStorage.cs: hush the warnings

2008-06-30  Marek Habersack  <[email protected]>

	* SqliteMembershipProvider.cs, SqliteRoleProvider.cs: remove
	unused method

	* SqlRoleProvider.cs, AspNetDBSchemaChecker.cs: hush the warnings

2008-06-30  Marek Habersack  <[email protected]>

	* UserControlParser.cs: hush the warnings and remove unnecessary
	code.

	* ControlCachePolicy.cs, PageParser.cs, ControlBuilder.cs,
	TemplateParser.cs, SimpleWebHandlerParser.cs, TemplateControl.cs,
	ApplicationFileParser.cs: hush the warnings

	* Page.cs: Context is protected internal in .NET 3.5
	Initialize encryption IVs before returning the transform.

	* Control.cs: Hush the warnings.

2008-06-30  Marek Habersack  <[email protected]>

	* HttpRuntime.cs, HttpApplication.cs: hush the warnings

	* HttpContext.cs: Hush the warnings.

2008-06-30  Marek Habersack  <[email protected]>

	* SqliteProfileProvider.cs: remove unused method

2008-06-30  Marek Habersack  <[email protected]>

	* CompilationSection.cs: hush the warnings



svn path=/trunk/mcs/; revision=106886
2008-06-30 13:20:58 +00:00
Zoltan Varga 95ec4b1ce5 2008-06-26 Zoltan Varga <[email protected]>
* nBrowser/Node.cs nBrowser/Result.cs: Avoid looking up adapter types names for
	every request in every assembly.

svn path=/trunk/mcs/; revision=106713
2008-06-27 00:44:55 +00:00
Marek Habersack 99cdf04336 2008-05-22 Marek Habersack <[email protected]>
* WebConfigurationHost.cs: changed CreateDeprecatedConfigContext
        to return a new HttpContext object. This is part of a fix for bug 
        #325128. Patch contributed by James Fitzsimons <[email protected]>,
        thanks!

svn path=/trunk/mcs/; revision=104332
2008-05-28 21:23:54 +00:00
Marek Habersack 45c7ce9c7b 2008-05-07 Marek Habersack <[email protected]>
* RoleManagerSection.cs: use type converter when creating the
	cookieTimeout property in the static constructor. Fixes bug
	#387526. Patch fromIvan Hamilton <[email protected]>, thanks!

svn path=/trunk/mcs/; revision=102724
2008-05-07 13:46:13 +00:00
Marek Habersack 4b7f0e3b79 2008-04-19 Marek Habersack <[email protected]>
* SimpleWebHandlerParser.cs: refactoring - move code between
	constructors, reader should be set before initializing the rest of
	the object. Fixes bug #381364

	* TemplateParser.cs: RegisterCustomControl must use absolute
	virtual path when querying the virtual path provider for
	file. Fixes bug #381364
2008-04-19  Marek Habersack  <[email protected]>

	* BuildManager.cs: use absolute virtual path to query the
	VirtualPathProvider for path existence.
	When ASP.NET is self-hosted, force
        non-batch compilation. Fixes bug #380985

	* ILocation.cs: added a new property, FileText.
	
	* Location.cs: added implementation of the ILocation.FileText
	property.

	* ParseException.cs: use the new ILocation.FileText, if defined,
	to get the file source.
	
	* AspGenerator.cs: when TextReader is present, use it to read with
	the VirtualPathProvider to read the file source. Fixes bug #381364

	* AspParser.cs: added a new property FileText to provide the file
	contents which was read in the constructor.


svn path=/trunk/mcs/; revision=101177
2008-04-18 22:35:47 +00:00
Marek Habersack 31ac91b44e 2008-04-18 Marek Habersack <[email protected]>
* CompilationSection.cs: when ASP.NET is self-hosted, force
	non-batch compilation. Fixes bug #380985

svn path=/trunk/mcs/; revision=101158
2008-04-18 20:00:19 +00:00
Dean Brettle b14ff24d34 ++ class/System.Web/Test/mainsoft/ChangeLog (working copy)
* NunitWebResources/adapters.browser, 
	NunitWebResources/TestCapability.browser: modified to work and
	support tests of browser defs in 
	etc/mono/2.0/Browsers/Compat.browser.

++ class/System.Web/Test/System.Web/ChangeLog	(working copy)

	* AppBrowsersTest.cs: added tests to ensure browscap.ini
	etc/mono/2.0/Browsers/Compat.browser are being used when there
	are App_Browser/*.browser files.

++ class/System.Web/Test/System.Web.UI/ChangeLog	(working copy)

	* PageTest.cs: added tests to ensure that using a 
	ControlAdapter that is not of the type corresponding to the 
	control doesn't	cause a cast error.

++ class/System.Web/Test/System.Web.UI.WebControls/ChangeLog	(working copy)

	* DataBoundControlTest.cs, HierarchicalDataBoundControlTest.cs,
	WebControlTest.cs: added tests to ensure that using a 
	ControlAdapter that is not of the type corresponding to the 
	control doesn't	cause a cast error.

++ class/System.Web/System.Web/ChangeLog	(working copy)

	* HttpApplicationFactory.cs (CapabilitiesProcessor): changed to
	use etc/mono/2.0/Browser/*.browser files in addition to 
	~/App_Browsers/*.browser files.

++ class/System.Web/System.Web.UI/ChangeLog	(working copy)

	* Page.cs (PageAdapter): fixed cast error when a ControlAdapter that
	wasn't a PageAdapter was used.

++ class/System.Web/System.Web.Configuration_2.0/ChangeLog	(working copy)

	* CapabilitiesBuild.cs (Process), ICapabilitiesProcess.cs (Process),
	nBrowser/Build.cs (Process): Added initialCapabilities argument to 
	facilitate using browscap.ini capabilities.
	
	* CapabilitiesResult.cs (ctor), nBrowserResult.cs (ctor): Change 
	items arg to IDictionary to	facilitate using browscap.ini capabilities.
	
	* nBrowser/Node.cs (Reset): Removed code which checked prohibited 
	non-alphanumerics in id attributes because .NET is not that strict.
	
	* nBrowser/Node.cs (MergeFrom): Fixed NullReferenceExceptions that
	occurred when the source or destination node did not have any
	capabilities or adapters.
	
	* nBrowser/Result.cs (AddAdapter): Fixed to allow types in other
	assemblies.

++ class/System.Web/System.Web.UI.WebControls/ChangeLog	(working copy)

	* DataBoundControl.cs (InternalPerformDataBinding), 
	HierarchicalDataBoundControl.cs (InternalPerformDataBinding),
	WebControl.cs (Render): fixed cast errors when a ControlAdapter
	that wasn't of the type corresponding to the control was used.

++ class/System.Web/System.Web.Configuration/ChangeLog	(working copy)

	* HttpCapabilitiesBase.cs (GetConfigCapabilities): changed to use
	browscap.ini for default capabilities when *.browser files are
	present, so we don't need to maintain browser capabilities in two
	places.


svn path=/trunk/mcs/; revision=100150
2008-04-08 21:16:00 +00:00
Dean Brettle 23000b3144 ++ Test/mainsoft/ChangeLog (working copy)
* add new resources: 
		PageWithAdapter.aspx for PageTest and PageAdapterTest.
		TestCapability.browser for AppBrowsersTest.

	* NunitWebResources/adapters.browser, 
	NunitWebResources/AppBrowsersTest.browser: modified to support
	testing reference nodes with captures, and adapters.

	* NunitWeb/NunitWeb/WebTest.cs: ensure that, during AppDomain
	unload, no new requests are sent to the app host and any
	pending requests are completed before the the unload occurs.
	Also added WebTest.AppUnloaded event that tests can use to wait
	for the app to unload (e.g. after touching Global.asax), and 
	WebTest.CleanApp() which can be called to restart the app with
	the a skeleton directory structure.  Tests which add files that
	could effect other tests (e.g. App_Browsers/*.browser files) should
	call WebTest.CleanApp() during TearDown to return the app to a 
	pristine environment.
	
++ Test/mainsoft/MainsoftWebTest/ChangeLog	(working copy)

	* HtmlAgilityPack/AssemblyInfo.cs: made assembly delay signed so that 
	tests can access System.Web internals now that System.Web is
	InternalsVisibleTo this assembly.

++ Test/System.Web/ChangeLog	(working copy)

	* AppBrowsersTest.cs: added.  Includes tests for Control.Adapter,
	Control.ResolveAdapter,	Control.TagWriter, and
	Control.CreateHtmlTextWriter, when using App_Browsers/*.browser files.
	AppBrowsersTest is currently tagged [Ignore], pending a fix for 
	bug #351878.
	
	* HttpRuntimeTest.cs: added. Includes test for 
	HttpRuntime.UnloadAppDomain().  Marked [Ignore], pending a fix for
	bug #351878.
	
++ Test/System.Web.UI.Adapters/ChangeLog	(revision 0)

	* PageAdapterTest.cs: added tests for PageAdapter.


	* ControlAdapterTest.cs (ConfigCapabilitiesNotCalled): added test to
	ensure that HttpCapabilitiesBase.ConfigCapabilities() is not called
	during normal page processing if no files are in App_Browsers.
	


	* ControlAdapterTest.cs: added tests for ControlAdapter.
++ Test/System.Web.UI/ChangeLog	(working copy)

	* PageTest.cs: add tests for using a PageAdapter.
	
	* ControlTest.cs: moved commented out ResolveAdapter_1 test to 
	../System.Web/AppBrowsersTest.cs.  Fixed typo in test name.  
	Added Customcontroladapter.Adapter property for use by AppBrowsersTest.

++ Test/System.Web.UI.WebControls.Adapters/ChangeLog	(revision 0)

	* MenuAdapterTest.cs: added


	* WebControlAdapterTest.cs, HierarchicalDataBoundControlAdapterTest.cs,
	DataBoundControlAdapterTest.cs, HideDisabledControlAdapterTest.cs: added
++ Test/System.Web.UI.WebControls/ChangeLog	(working copy)

	* MenuTest.cs (Menu_RenderStaticItems): added tests to check that
	result was the same when using the base MenuAdapter as when using
	no adapter.
	
	* MenuTest.cs (Menu_RenderStaticItemsWithAdapter): added test
	to ensure that MenuAdapter.RenderItem() is called.

	* HierarchicalDataBoundControlTest.cs, WebControlTest.cs, 
	DataBoundControlTest.cs: added test for use of ControlAdapters
	when present.
	
	* WebControl.cs: added test for IsEnabled.

++ System.Web/ChangeLog	(working copy)

	* HttpApplicationFactory.cs: Added support for detecting 
	App_Browsers/*.browser files and using them to determine capabilities.
	Also restart the app if the App_Browsers, App_Code, or App_GlobalResources
	directories are created.

	* BrowserCapabilities.cs (TagWriter): get value via internal virtual
	GetTagWriter() method, which is overridden in nBrowser.Result.

	* HttpRequest.cs (BrowserMightHaveSpecialWriter, BrowserMightHaveAdapters):
	internal properties added to allow Page and Control methods to avoid
	accessing Request.Browser to get browser-specific HtmlTextWriters or 
	ControlAdapters.  Those things only exist when there are App_Browsers
	files.

++ System.Web.UI.Adapters/ChangeLog	(working copy)

	* ControlAdapter.cs: made control field internal so
	derived internal classes can access it without using base.Control
	which can involved several typecasts.


	* PageAdapter.cs: implemented all members.
	

	* ControlAdapter.cs: implemented all members.
	
	* PageAdapter.cs, ControlAdapter.cs: add MonoTODO's.
++ System.Web.UI/ChangeLog	(working copy)

	* Page.cs (SavePageControlState, LoadPageControlState): save/load 
	adapter state in 2.0 profile.
	
	* Page.cs (CreateHtmlTextWriter): call Browser.CreateHtmlTextWriter()
	in 2.0 profile.
	
	* Page.cs (RenderPage): call CreateHtmlTextWriter() to get the writer
	in 2.0 profile.
	
	* Page.cs (DeterminePostBackMode, InitOutputCache, 
	RenderClientScriptFormDeclaration,	InternalProcessRequest,
	PageStatePersister): added support for PageAdapters.

	* Control.cs (Adapter, ResolveAdapter): implemented.  Adapter calls
	ResolveAdapter and remembers result.  ResolveAdapter checks for adapters
	of the Type hierarchy until it finds one.
	
	* Control.cs (SaveViewStateRecursive, LoadViewStateRecursive): save/load
	adapter state in 2.0 profile.
	
	* HtmlTextWriter.cs (BeginRender, EndRender): added empty virtual methods
	required by 2.0 profile.  These are called by corresponding methods of
	System.Web.UI.Adapters.ControlAdapter.
	
	* Page.cs, Control.cs: don't access Request.Browser if it couldn't have
	any adapters/writers because there are no files in App_Browsers/.

++ Assembly/ChangeLog	(working copy)

	* AssemblyInfo.cs: made InternalsVisibleTo System.Web.test_net_2_0.dll
	to support ControlAdapterTest.ConfigCapabilitiesNotCalled().

++ ChangeLog	(working copy)

	* System.Web_test.dll.sources: added
		System.Web.UI.WebControls.Adapters/MenuAdapterTest.cs
		System.Web.UI.WebControls.Adapters/WebControlAdapterTest.cs
		System.Web.UI.WebControls.Adapters/HierarchicalDataBoundControlAdapterTest.cs
		System.Web.UI.WebControls.Adapters/DataBoundControlAdapterTest.cs
		System.Web.UI.WebControls.Adapters/HideDisabledControlAdapterTest.cs
		System.Web.UI.Adapters/PageAdapterTest.cs
		System.Web.UI.Adapters/ControlAdapterTest.cs
		
	* Makefile (RESOURCE_FILES_2): added
		System.Web.Configuration_2.0/RandomRoboBotKeywords.txt

	* Makefile (TEST_RESOURCE_FILES): added 
		Test/mainsoft/NunitWebResources/PageWithAdapter.aspx

	* System.Web.dll.sources: added
		System.Web.Configuration_2.0/CapabilitiesBuild.cs
		System.Web.Configuration_2.0/CapabilitiesChecksum.cs
		System.Web.Configuration_2.0/CapabilitiesResult.cs
		System.Web.Configuration_2.0/ICapabilitiesProcess.cs
		System.Web.Configuration_2.0/nBrowser/Result.cs
		System.Web.Configuration_2.0/nBrowser/NodeTypes.cs
		System.Web.Configuration_2.0/nBrowser/Identification.cs
		System.Web.Configuration_2.0/nBrowser/File.cs
		System.Web.Configuration_2.0/nBrowser/Build.cs
		System.Web.Configuration_2.0/nBrowser/Node.cs
		System.Web.Configuration_2.0/nBrowser/Exception.cs
		
++ System.Web.UI.WebControls.Adapters/ChangeLog	(working copy)

	* WebControlAdapter.cs, HierarchicalDataBoundControlAdapter.cs,
	DataBoundControlAdapter.cs: changed to use ControlAdapter.control
	instead of using base.Control or using a new control field.
	
	* MenuAdapter.cs: added	internal constructor that takes a Menu
	parameter.  The constructor is used when writing unit tests.
	
	* MenuAdapter.cs (OnInit, OnPreRender, RenderBeginTag, 
	RenderContents, RenderEndTag): delegate to base instead of
	Control.
	
	* MenuAdapter.cs (LoadAdapterControlState, SaveAdapterControlState,
	RaisePostBackEvent, RenderItem): implemented.
	

	* WebControlAdapter.cs (RenderContents): changed to call 
	control.RenderContents() instead of control.Render().
	
	* WebControlAdapter.cs, HierarchicalDataBoundControlAdapter.cs,
	DataBoundControlAdapter.cs, HideDisabledControlAdapter.cs: added
	internal constructor that takes a parameter of the corresponding
	Control type.  The construct is used when writing unit tests.

++ System.Web.Configuration_2.0/ChangeLog	(working copy)

	* nBrowser/Result.cs, nBrowser/NodeTypes.cs, nBrowser/Identification.cs,
	nBrowser/File.cs, nBrowser/Build.cs, nBrowser/Node.cs, 
	nBrowser/Exception.cs: added.  The code under nBrowser handles *.browser
	files.  It is based on Owen "Ocean" Brady's code, with the following 
	changes and improvements.  Replaced Result.Adapter 
	property with AdapterTypeMap property which maps control Type to adapter
	Type.  Added Result.MarkupTextWriter property.  Added overrides for
	Result.GetAdapters and Result.GetTagWriter to return MarkupTextWriter
	and AdapterTypeMap, resp.  Changed tree building algorithm to not
	depend on nodes with id="Default" and to inject defaultBrowser nodes
	as parents of regular nodes with the same ids.  Changed Node.cs to use
	Item instead of Add when adding a capability or sample header, so that
	values get replaced instead of appended.  Added support for reference 
	nodes (ie. nodes with refID="someID").
		
	* CapabilitiesResult.cs: load RandomRoboBotKeywords.txt resource
	using the correct name.
	
	* RandomRoboBotKeywords.txt: added 

	* HttpCapabilitiesBase.cs (CreateHtmlWriter, Adapters): Added
	support for *.browsers.  Adapters property calls internal virtual
	GetAdapters() method which is overrided in nBrowser.Result 
	returned by nBrowser code.  CreateHtmlWriter uses type specified
	by TagWriter property.
	
++ System.Web.UI.WebControls/ChangeLog	(working copy)

	* DetailsView.cs, ListControl.cs, DataBoundControl.cs, 
	FormView.cs, HierarchicalDataBoundControl.cs, WebControl.cs: 
	added support for using ControlAdapters when present.
	
	* WebControl.cs: fixed implementation of IsEnabled to match 
	documentation.

	* Menu.cs (RenderMenuBody): call Adapter.RenderItem() instead of 
	RenderMenuItem() if an adapter is present.  MenuAdapter.RenderItem() 
	calls back to new Menu.RenderItem() internal method which calls
	RenderMenuItem() with the appropriate parameters.

++ System.Web.Configuration/ChangeLog	(working copy)

	* HttpCapabilitiesBase.cs: changed to use nBrowser for *.browser 
	support.  Also added internal GetConfigCapabilities_called
	flag used by ControlAdapterTest.ConfigCapabilitiesNotCalled() to 
	test that GetConfigCapabilities() is not called during normal page
	processing when there are no files in App_Browsers/.


svn path=/trunk/mcs/; revision=97824
2008-03-09 22:55:22 +00:00
Vladimir Krasnov fce5f2f9b4 * ProvidersHelper.cs: fixed thread safety issue in InstantiateProvider
svn path=/trunk/mcs/; revision=97126
2008-03-02 13:05:43 +00:00
Marek Habersack 09c2c620cb 2008-03-01 Marek Habersack <[email protected]>
* HttpRuntime.cs: SettingsMappingManager has been moved to
	Mono.Web.
2008-03-01  Marek Habersack  <[email protected]>

	* WebConfigurationManager.cs: SettingsMappingManager has been
	moved to Mono.Web.dll
2008-03-01  Marek Habersack  <[email protected]>

	* Makefile: added a dependency on Mono.Web.dll

	* System.Web.dll.sources: removed SystemSettingsMapper public APIs
	and moved them to the Mono.Web assembly.
2008-03-01  Marek Habersack  <[email protected]>

	* AssemblyInfo.cs: added
2008-03-01  Marek Habersack  <[email protected]>

	* ISectionSettingsMapper.cs, MembershipSectionMapper.cs,
	RoleManagerSectionMapper.cs, SettingsMapping.cs,
	SettingsMappingManager.cs, SettingsMappingWhat.cs: moved to here
	from System.Web
2008-03-01  Marek Habersack  <[email protected]>

	* Mono.Web.dll.sources: added

	* Makefile: added


svn path=/trunk/mcs/; revision=97035
2008-02-29 23:49:18 +00:00
Marek Habersack a50b2872dd 2008-02-28 Marek Habersack <[email protected]>
* HandlerFactoryConfiguration.cs: ignore case when matching
        handler paths.
2008-02-28  Marek Habersack  <[email protected]>

        * HttpHandlerAction.cs: ignore case when matching handler
        paths. Fixes bug #364995
2008-02-28  Marek Habersack  <[email protected]>

        * TemplateControlParser.cs: when registering a control, check for
        the .ascx extension case-insensitively. Fixes bug #364995


svn path=/trunk/mcs/; revision=96870
2008-02-28 13:14:20 +00:00
Marek Habersack a2a7d08ceb 2008-02-26 Marek Habersack <[email protected]>
* TemplateParser.cs: a better error message.

	* ControlBuilder.cs: if one of the parent builders is a
	TemplateBuilder, use it as the naming container and use its
	ContainerType property as the value of the BindingContainerType
	property.
2008-02-26  Marek Habersack  <[email protected]>

	* BuildProviderCollection.cs: be case-insensitive when looking for
	the extension match.
2008-02-26  Marek Habersack  <[email protected]>

	* BuildManager.cs: known file types extensions are now matched
	case-insensitively.

svn path=/trunk/mcs/; revision=96644
2008-02-26 13:56:15 +00:00
Marek Habersack 953d97739a 2008-02-25 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: hashtable can contain a key with a
	null value, avoid adding duplicate keys in such cases.

svn path=/trunk/mcs/; revision=96532
2008-02-25 09:51:23 +00:00
Vladimir Krasnov bfbe00f669 * WebConfigurationManager.cs: performance improvement, cached GetSection method
svn path=/trunk/mcs/; revision=96069
2008-02-18 16:25:21 +00:00
Vladimir Krasnov 539f17bf9c * GlobalizationSection.cs: fixed GetSanitizedCulture, performance optimization
svn path=/trunk/mcs/; revision=95145
2008-02-07 15:22:14 +00:00
Marek Habersack 8d86e37f1c forgotten the bug number
svn path=/trunk/mcs/; revision=94919
2008-02-05 18:30:23 +00:00
Marek Habersack f773cf8a9c 2008-02-05 Marek Habersack <[email protected]>
* CompilerCollection.cs: Get (string language) should not use
	BaseGet as our collection is keyed on a list of language names
	(e.g. "cs;csharp") and passing a single language won't match in
	BaseGet correctly. Use the overriden indexer instead.
	Initialize the base class with the case-insensitive comparer. 
        Fixes bug #357824.

svn path=/trunk/mcs/; revision=94898
2008-02-05 15:52:25 +00:00