Commit Graph
209 Commits
Author SHA1 Message Date
Marek Habersack d8838a6414 This commit introduces a few 4.0 rendering changes which break some tests. The broken tests
fail to work on .NET 4.0 as well, for the most part. I will fix them next week.

    2010-07-02  Marek Habersack  <[email protected]>

    	* TemplateControlParser.cs: added support for ClientIDMode
    	property

    	* Control.cs: implemented 4.0 features - ClientIDMode and
    	RenderingCompatibility.

    	* ClientIDMode.cs, IDataKeysControl.cs: added

    2010-07-02  Marek Habersack  <[email protected]>

    	* Menu.cs: 4.0 API updates.

    	* GridView.cs: implemented 4.0 properties -
    	SortedAscendingCellStyle, SortedAscendingHeaderStyle,
    	SortedDescendingCellStyle, SortedDescendingHeaderStyle,
    	ClientIDRowSuffix, ClientIDRowSuffixDataKeys, ShowHeaderWhenEmpty
    	along with associated rendering changes.

    	* DetailsView.cs, FormView.cs, GridView.cs: 4.0 API changes -
    	renamed ShowPage to SetPageIndex and made it public.
    	Added 4.0 interfaces to inheritance list and implemented them.

    	* DataKeyArray.cs: added internal constructor which accepts IList
    	instead of ArrayList. Changed the 'keys' field type to IList.

    	* ContainedTable.cs: the 'id' attribute must be rendered last.

    	* CheckBox.cs, CheckBoxList.cs, SiteMapPath.cs, Table.cs,
    	TableStyle.cs, TextBox.cs, WebControl.cs: 4.0 rendering changes.

    	* Calendar.cs, CompositeControl.cs, DropDownList.cs, HyperLink.cs,
    	Image.cs, ImageButton.cs, Label.cs, LinkButton.cs, LoginName.cs,
    	Panel.cs, Table.cs, TableCell.cs, TableRow.cs:
    	added new 4.0 property, SupportsDisabledAttribute.

    2010-07-02  Marek Habersack  <[email protected]>

    	* VersionConverter.cs: added support for checking whether the
    	passed version is equal or more than a specified minimal version.

    	* PagesSection.cs: added two 4.0 properties - ClientIDMode and
    	ControlRenderingCompatibilityVersion

    2010-07-02  Marek Habersack  <[email protected]>

    	* TemplateControlCompiler.cs: added support for ClientIDMode 4.0
    	property

    	* PageCompiler.cs, UserControlCompiler.cs: AddStatementsToInitTop
    	must call the base implementation.

svn path=/trunk/mcs/; revision=159826
2010-07-02 19:12:31 +00:00
Marek Habersack f8d637595c 2010-06-01 Marek Habersack <[email protected]>
* HttpUtility.cs: moved chunks of code to the new
	System.Web.Util.HttpEncoder class.

	* HttpResponseHeader.cs: encode header names and values using
	HttpEncoder.

	* HttpRequest.cs: added internal method Validate, to validate the
	request in 4.0 profile.

	* HttpHeaderCollection.cs: added. A helper class to encode header
	names/values on add.

	* HttpApplication.cs: Pipeline () validates request by calling
	HttpRequest.Validate in the 4.0 profile.

2010-06-01  Marek Habersack  <[email protected]>

	* HttpEncoder.cs: added. A 4.0 type but also used in 2.0 profile,
	internally.

2010-06-01  Marek Habersack  <[email protected]>

	* HttpRuntimeSection.cs: added 4.0 properties
	MaxQueryLengthString, MaxUrlLength, EncoderType and
	RelaxedUrlToFileSystemMapping.

svn path=/trunk/mcs/; revision=158300
2010-06-01 19:39:19 +00:00
Marek Habersack d410d4fe4a 2010-05-17 Marek Habersack <[email protected]>
* HttpApplicationFactory.cs: pre-application start methods must be
	called even before App_Code is compiled.

2010-05-17  Marek Habersack  <[email protected]>

	* BuildProvider.cs: made the Extension property case-insensitive

2010-05-17  Marek Habersack  <[email protected]>

	* BuildProvider.cs: implemented a 4.0 method RegisterBuildProvider

	* BuildManager.cs: separated dynamically registered assemblies
	store from the referenced assemblies cache.

svn path=/trunk/mcs/; revision=157435
2010-05-17 10:58:08 +00:00
Marek Habersack 61163ca5e2 2010-04-09 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: GetSection properly processes paths
	of form '~'. Fixes bug #595140. Patch from Adriaan van Kekem
	<[email protected]>, thanks!

svn path=/trunk/mcs/; revision=155140
2010-04-09 13:01:51 +00:00
Gonzalo Paniagua Javier c95949df0a 2010-04-08 Gonzalo Paniagua Javier <[email protected]>
* GlobalizationSection.cs: use WebName instead of EncodingName.


svn path=/trunk/mcs/; revision=155080
2010-04-08 19:11:23 +00:00
Marek Habersack c6c642eec3 commit 9405fa168b1255c51bb31ef17511c05593b08caa
Author: Marek Habersack <[email protected]>
Date:   Sat Mar 6 03:37:53 2010 +0100

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

    	* CompilerCollection.cs: in the 4.0 profile, the latest C#
    	standard is the compiler's default.

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

    	* CSharpCodeCompiler.cs: in the 4.0 profile, the latest C#
    	standard is the default one.

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

    	* RequestValidatorTestGenerated.cs: added

    	* RequestValidator.cs: added

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

    	* TestWorkerRequest.cs: added overloads of GetRawUrl and
    	GetUriPath which make sure that the returned paths do not contain
    	more than one leading / character.

    	* TestRunItem.cs: added new TestRunData property - to contain
    	per-appdomain test run data.

    	* TestCallback.cs: added a TestRunItem parameter.

    	* StandaloneTest.cs: runner object is created for each test item
    	now.
    	Added test progress feedback.

    	* ITestRunner.cs: added two properties, TestRunData - to return
    	collected test result data, if any, and Domain which returns the
    	current AppDomain.

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

    	* RequestValidatorTest.cs: added

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

    	* HttpRequest.cs: cache RawUrl value.
    	Added new internal property, PathNoValidation, which returns
    	request path without validating it.
    	Implemented 4.0 extensible validation.

    	* HttpApplication.cs: Pipeline () validates the request path, if
    	new validation mode is enabled, before doing anything else.
    	Added a generic LoadType overload which checks whether the loaded
    	type, if any, derives from the type specified in the method's
    	specialization.

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

    	* RequestValidator.cs: added

    	* RequestValidationSource.cs: added

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

    	* WebConfigurationManager.cs: do not use Request.Path - it may
    	fail because of invalid web.config file, use
    	Request.PathNoValidation instead.

    	* VersionConverter.cs: added

    	* PropertyHelper.cs: added a Version converter helper.

    	* HttpRuntimeSection.cs: added 4.0 properties -
    	RequestPathInvalidCharacters, RequestValidationType and
    	RequestValidationMode.

svn path=/trunk/mcs/; revision=153172
2010-03-06 02:48:31 +00:00
Marek Habersack f694564bc3 2010-02-24 Marek Habersack <[email protected]>
* SessionStateServerHandler.cs: added support for session state
    	compression (4.0)

2010-02-23  Marek Habersack  <[email protected]>

    	* SessionStateSection.cs: implemented 4.0 properties -
    	CompressionEnabled and SqlConnectionRetryInterval

svn path=/trunk/mcs/; revision=152378
2010-02-24 17:33:54 +00:00
Marek Habersack e87f70514a 2010-02-12 Marek Habersack <[email protected]>
* WebConfigurationHost.cs: implemented {Encrypt,Decrypt}Section

svn path=/trunk/mcs/; revision=151604
2010-02-12 12:01:58 +00:00
Marek Habersack 38f8d2d40c 2010-01-20 Marek Habersack <[email protected]>
* SessionStateBehavior.cs: added (4.0)

2010-01-20  Marek Habersack  <[email protected]>

	* OutputCacheSection.cs: implemented the Providers and
	DefaultProviderName 4.0 properties.

2010-01-20  Marek Habersack  <[email protected]>

	* HttpContextBase.cs: implemented RemapHandler and
	SetSessionStateBehavior 4.0 APIs.

2010-01-20  Marek Habersack  <[email protected]>

	* HttpContext.cs: implemented the 4.0 SetSessionStateBehavior
	method

	* HttpCacheVaryByContentEncodings.cs, HttpCacheVaryByHeaders.cs,
	HttpCacheVaryByParams.cs : parameterless constructors are public
	in 4.0

	* HttpApplication.cs: implemented the 4.0
	GetOutputCacheProviderName method

svn path=/trunk/mcs/; revision=149934
2010-01-20 22:39:05 +00:00
Marek Habersack 692b3e376b 2010-01-09 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: GetSection properly handles looking
	up and caching of <location> instances. Part of fix for bug
	#568441

	* WebConfigurationHost.cs: GetConfigPathFromLocationSubPath
	calculatesthe path relative to the current config file path. Part
	of fix for bug #568441

2010-01-09  Marek Habersack  <[email protected]>

	* VirtualPathUtility.cs: small optimizations for GetDirectory

2010-01-09  Marek Habersack  <[email protected]>

	* ConfigurationLocation.cs: trailing / characters are removed from
	the path.

	* Configuration.cs: instances created for locations inherit
	ConfigPath from their containing document.
	Host.GetConfigPathFromLocationSubPath must be called with current
	instance's configPath, not LocationConfigPath.
	Locations are sought for using paths relative to the current
	instance's configPath, not to the root path.
	All of the above is part of fix for bug #568441

svn path=/trunk/mcs/; revision=149262
2010-01-09 00:29:25 +00:00
Marek Habersack 15dff947b7 targetNetwork -> targetFramework
svn path=/trunk/mcs/; revision=147434
2009-12-02 14:18:36 +00:00
Marek Habersack c91b60ae6e 2009-12-02 Marek Habersack <[email protected]>
* CompilationSection.cs: added two properties -
	OptimizeCompilations (3.5+) and TargetNetwork (4.0+)

svn path=/trunk/mcs/; revision=147399
2009-12-02 09:01:14 +00:00
Marek Habersack 0dd5890dab 2009-11-19 Marek Habersack <[email protected]>
* LogicalTypeInfo.cs: removed the JsonResult class - it has no use
	and it can break applications (e.g. Umbraco)

2009-11-19  Marek Habersack  <[email protected]>

	* VirtualPathUtility.cs: made Normalize internal

2009-11-19  Marek Habersack  <[email protected]>

	* WebConfigurationHost.cs: IsDefinitionAllowed now normalizes the
	passed configuration path, so that MachineToApplication sections

	* WebConfigurationManager.cs: use an rw lock to protect access to
	sectionCache. This is now necessary as the save handler clears the
	cache.

svn path=/trunk/mcs/; revision=146546
2009-11-19 15:18:34 +00:00
Marek Habersack 03adaee01b 2009-11-19 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: use an rw lock to protect access to
	sectionCache. This is now necessary as the save handler clears the
	cache.

svn path=/trunk/mcs/; revision=146525
2009-11-19 12:19:53 +00:00
Marek Habersack 8b4e17d0d2 2009-11-10 Marek Habersack <[email protected]>
* TemplateParser.cs: AddImports is called from LoadConfigDefaults
	so that it reads configuration from the correct .config file (it
	needs to be called after this.VirtualPath has been
	initialized). Fixes an issue with MVC apps which put configuration
	in Views/web.config etc. Fixes bug #552457

	* ControlBuilder.cs, Page.cs: system.web/pages section is not
	confined to the top-level web.config

2009-11-10  Marek Habersack  <[email protected]>

	* WebConfigurationManager.cs: path passed to OpenWebConfiguration
	from GetSection does not come from FindWebConfig.

2009-11-10  Marek Habersack  <[email protected]>

	* BaseCompiler.cs: parser.Imports is a Dictionary <>/Hashtable
	now.

	* AspComponentFoundry.cs: system.web/pages section is not confined
	to the top-level web.config

svn path=/trunk/mcs/; revision=145831
2009-11-10 13:49:01 +00:00
Marek Habersack b01f70a32c 2009-11-09 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: there's no need to cache sections by
	_file_ path - using section name and web.config path is more than
	enough and it reduces the number of cache entries
	considerably. Fixes bug #550730

svn path=/trunk/mcs/; revision=145721
2009-11-09 11:46:39 +00:00
Marek Habersack 0ab0646601 2009-10-07 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: GetSection doesn't perform string +
	char + string concatenation to generate section cache key (by
	Gonzalo Paniagua Javier) which gives an enormous performance boost
	(processing time for mojoportal's default.aspx went down from
	2.65s to 107ms on average). The key generation is performed
	without any kind of string operation right now (except for
	GetHashCode on 3 strings).
	GetSectionCacheKey is called only once and sectionCache became a
	dictionary.

svn path=/trunk/mcs/; revision=143611
2009-10-07 10:48:59 +00:00
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