Commit Graph
201 Commits
Author SHA1 Message Date
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 57c0cb18b4 fix compile
svn path=/trunk/mcs/; revision=101162
2008-04-18 20:31:40 +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
Konstantin Triger 6b06beb287 TARGET_JVM: cache the merged AppSettings inside AppDomain
svn path=/trunk/mcs/; revision=95139
2008-02-07 13:41:27 +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
Daniel Nauck 32e183b6cc 2008-01-27 Daniel Nauck <[email protected]>
* HttpHandlerAction.cs: fixed the internal method PathMatches ()
	removed wrong caching of FileMatchingInfo classes with request specific
	informations. Now we check against the current request path and cache
	the result in a dictionary.
	Also check correctly against all possible paths from the HttpHandler.


svn path=/trunk/mcs/; revision=94082
2008-01-27 21:42:31 +00:00
Konstantin Triger 5ba2dc9b66 TARGET_JVM: use J2EEUtils.InputStreamWrapper for reading java's InputStream
svn path=/trunk/mcs/; revision=92588
2008-01-10 15:10:44 +00:00
Konstantin Triger d652e07430 use ClassLoader.getResourceAsStream instead of ClassLoader.getResource for checking resource presence to remove leaks
svn path=/trunk/mcs/; revision=92386
2008-01-07 13:36:15 +00:00
Konstantin Triger bbc7149726 the AppSettings collection's Add should behave as Set
svn path=/trunk/mcs/; revision=92342
2008-01-06 14:49:19 +00:00
Konstantin Triger bfb0849d2b Add support for java config files settings inside the .Net appSettings
svn path=/trunk/mcs/; revision=91938
2007-12-27 14:27:55 +00:00
Marek Habersack 021aece48b 2007-12-27 Marek Habersack <[email protected]>
* ProfileGroupSettingsCollection.cs: added an internal method to
	add/overwrite new group settings. Used from
	RootProfilePropertySettingsCollection.

	* ProfileGroupSettings.cs: added the missing "name" property to
	the properties collection.
	Marked the propertySettingsProp property as the default
	collection.
	Added internal deserialization method, used from
	RootProfilePropertySettingsCollection to support the 'group'
	element.

	* ProfileSection.cs: defaultProviderProp typo - the name of the
	provider should be "AspNetSqlProfileProvider"

	* RootProfilePropertySettingsCollection.cs: added
	OnDeseerializeUnrecognizedElement to support the profile 'group'
	element.
	Added a missing Unmerge method.

svn path=/trunk/mcs/; revision=91931
2007-12-27 12:47:04 +00:00
Vladimir Krasnov ff459d9a49 * SiteMapSection.cs: fixed ProvidersInternal property to be thread safe
* ProfileManager.cs: fixed Providers property to be thread safe
* Roles.cs: fixed Providers property to be thread safe

svn path=/trunk/mcs/; revision=91095
2007-12-11 13:59:13 +00:00
Konstantin Triger 328dda86dc TARGET_JVM: do not use the SettingsMappingManager
svn path=/trunk/mcs/; revision=90998
2007-12-09 08:58:57 +00:00
Marek Habersack 58eceab2ec 2007-12-08 Marek Habersack <[email protected]>
* TranslationResources.resx: added - string resources for the
	Sqlite providers.
2007-12-08  Marek Habersack  <[email protected]>

	* SQLiteProviders_DatabaseSchema.sql: added
	* Makefile: added support for compiling .resx resources.
	Added SQLiteProviders_DatabaseSchema.sql to EXTRA_DISTFILES.
	Added new resource files to EXTRA_DISTFILES
2007-12-08  Marek Habersack  <[email protected]>

	* HttpRuntime.cs: initialize the Settings Mapping Manager once per
	application, just after initalizing the WebConfigurationManager
2007-12-08  Marek Habersack  <[email protected]>

	* SqliteProfileProvider.cs: added - a Profile Provider for
        Sqlite, based on PostgreSQL Profile Provider code from Daniel
        Nauck <[email protected]>
2007-12-08  Marek Habersack  <[email protected]>

	* TranslationProperties.Designer.cs: added - contains strongly
	typed properties referring to string resources used by the Sqlite
	providers.
2007-12-08  Marek Habersack  <[email protected]>

	* WebConfigurationManager.cs: GetSection now runs each section
	through a mapper (if any is defined for the section) before
	returning it to the caller.
2007-12-08  Marek Habersack  <[email protected]>

	* SqliteRoleProvider.cs: added - a Role Provider for
	Sqlite, based on PostgreSQL Role Provider code from Daniel
	Nauck <[email protected]>

	* SqliteMembershipProvider.cs: added - a Membership Provider for
	Sqlite, based on PostgreSQL Membership Provider code from Daniel
	Nauck <[email protected]>
2007-12-08  Marek Habersack  <[email protected]>

	* SerializationHelper.cs: added - serialization helper for the
	Sqlite Profile Provider.

	* RoleManagerSectionMapper.cs: added - section settings mapper for
	the RoleManager section.

	* MembershipSectionMapper.cs: added - section settings mapper for
	the Membership section.

	* ISectionSettingsMapper.cs: added - interface definition for
	section settings mappers.

	* SettingsMappingWhat.cs: added - describes a single 'what' tag
	instance inside the mapper definition in the settings.map file.

	* SettingsMapping.cs: added - represents a single mapper entry in
	the settings.map file.

	* SettingsMappingManager.cs: added - manages settings mapping as
	defined in the settings.map file.


svn path=/trunk/mcs/; revision=90972
2007-12-07 23:26:18 +00:00
Marek Habersack 41e1573a15 2007-11-23 Marek Habersack <[email protected]>
* TagPrefixCollection.cs: changed the collection type to
	BasicMap.

svn path=/trunk/mcs/; revision=90232
2007-11-23 17:35:17 +00:00
Marek Habersack ddbd763a22 2007-11-23 Marek Habersack <[email protected]>
* ProfileSection.cs: added missing Properties property, added a
	static constructor to create property descriptors. Use property
	descriptors in property accessors.

svn path=/trunk/mcs/; revision=90231
2007-11-23 17:29:01 +00:00
Marek Habersack 4f004ed94c 2007-11-23 Marek Habersack <[email protected]>
* ProfileGroupSettingsCollection.cs: added missing attribute to
	the class, removed CollectionType method, added missing IsModified
	and ResetModified methods, added missing Properties property.

	* ProfileGroupSettings.cs: added missing Properties property,
	adjusted the set of custom attributes of the PropertySettings
	property.

	* ProcessModelSection.cs: change the default value of the CpuMask
	property.


svn path=/trunk/mcs/; revision=90229
2007-11-23 17:15:18 +00:00
Marek Habersack c0a832dd7d 2007-11-23 Marek Habersack <[email protected]>
* OutputCacheSection.cs: added the EnableKernelCacheForVaryByStar
	property.

	* OutputCacheProfile.cs: added the VaryByContentEncoding property.
2007-11-23  Marek Habersack  <[email protected]>

	* BrowserCapabilities.cs: the JavaScript property is obsolete in
	2.0sp1.


svn path=/trunk/mcs/; revision=90219
2007-11-23 11:09:25 +00:00
Marek Habersack 86ef3008e2 2007-11-23 Marek Habersack <[email protected]>
* FormsAuthenticationConfiguration.cs: corrected defaults for the
	Timeout property.

svn path=/trunk/mcs/; revision=90210
2007-11-23 01:15:27 +00:00
Marek Habersack 1607f2f8f6 2007-11-23 Marek Habersack <[email protected]>
* ExpressionBuilder.cs: corrected defaults for the
	ExpressionPrefix and Type properties.

svn path=/trunk/mcs/; revision=90209
2007-11-23 01:11:36 +00:00
Marek Habersack 7eb6037d96 2007-11-23 Marek Habersack <[email protected]>
* CacheSectionTest.cs: modified to match the new MS.NET defaults.
2007-11-23  Marek Habersack  <[email protected]>

	* CustomErrorsSection.cs: added two missing overrides -
	DeserializeSection and Reset.

svn path=/trunk/mcs/; revision=90208
2007-11-23 01:03:48 +00:00
Marek Habersack 0d6356d823 2007-11-23 Marek Habersack <[email protected]>
* ClientTargetSection.cs: added the missing Properties property.
	Added static constructor to create the property collection.

	* CustomErrorCollection.cs: removed the ThrowOnDuplicate
	property.

	* CacheSection.cs: corrected the defaults for the
	PercentagePhysicalMemoryUsedLimit property.

Put IConfigMap* in the correct namespace

svn path=/trunk/mcs/; revision=90206
2007-11-23 00:35:03 +00:00
Marek Habersack 9b7c4da8c2 2007-11-23 Marek Habersack <[email protected]>
* ClientTargetCollection.cs: added missing Properties property.

svn path=/trunk/mcs/; revision=90205
2007-11-23 00:16:12 +00:00
Marek Habersack 65f9ec2aad 2007-11-23 Marek Habersack <[email protected]>
* IConfigMapPathFactory.cs: added

	* IConfigMapPath.cs: added
2007-11-23  Marek Habersack  <[email protected]>

	* System.Web.dll.sources: added
	System.Web.Configuration_2.0/IConfigMapPath.cs and
	System.Web.Configuration_2.0/IConfigMapPathFactory.cs


svn path=/trunk/mcs/; revision=90202
2007-11-22 23:38:06 +00:00
Marek Habersack 84904ae9ac 2007-11-23 Marek Habersack <[email protected]>
* RoleManagerSection.cs: added a static constructor, a collection
	of properties, the missing Properties property.

svn path=/trunk/mcs/; revision=90201
2007-11-22 23:19:41 +00:00
Marek Habersack d8bb391102 2007-11-22 Marek Habersack <[email protected]>
* AuthorizationRuleCollection.cs: removed the ThrowOnDuplicate
	property - it's not found in the MS.NET version of the class.

svn path=/trunk/mcs/; revision=90197
2007-11-22 22:01:21 +00:00
Marek Habersack 32a81b74e1 2007-11-06 Marek Habersack <[email protected]>
* MachineKeySectionUtils.cs: make sure keys are autogenerated when
	necessary.

svn path=/trunk/mcs/; revision=88974
2007-11-06 13:51:13 +00:00
Marek Habersack 669d0ef97f 2007-11-02 Marek Habersack <[email protected]>
* HttpApplication.cs: introduced HTTP handler cache to save time
	on repetitive handler collection traversals. On busy sites the
	traversal of the default 26 handlers may account for thousands of
	unnecessary calls to configsystem.LocateHandler method, which may
	also involve executing a regex. The cache is cleared whenever the
	HTTP handler collection is modified.
2007-11-02  Marek Habersack  <[email protected]>

	* HttpHandlerActionCollection.cs: clear http handler cache in
	HttpApplication if the collection is modified.
2007-11-02  Marek Habersack  <[email protected]>

	* HandlerFactoryConfiguration.cs: clear the HttpApplication HTTP
	handler cache whenever the collection is modified.

svn path=/trunk/mcs/; revision=88716
2007-11-02 11:12:29 +00:00
Marek Habersack 6f82e580a4 2007-11-01 Marek Habersack <[email protected]>
* Page.cs, ObjectStateFormatter.cs: use the new
	MachineKeySectionUtils class wherever necessary.
2007-11-01  Marek Habersack  <[email protected]>

	* System.Web.dll.sources: added MachineKeySectionUtils.cs
2007-11-01  Marek Habersack  <[email protected]>

	* RolePrincipal.cs, MembershipProvider.cs: use the new
	MachineKeySectionUtils class wherever necessary.

	* FormsAuthentication.cs: use the new MachineKeySectionUtils class
	wherever necessary.
	GetHexString is a private method again.
2007-11-01  Marek Habersack  <[email protected]>

	* MachineKeySection.cs: moved all the internal static methods and
	properties to MachineKeySectionUtils.cs

	* MachineKeySectionUtils.cs: added. This file is included in the
	System.Web.Extensions compilation.
	The old properties from MachineKeySection.cs became methods.
2007-11-01  Marek Habersack  <[email protected]>

	* AssemblyResourceLoader.cs: added GetHexString, copied from
	FormsAuthentication.cs. Encryption/decryption routines use methods
	from the new MachineKeySectionUtils class. This is needed for the
	same code to work from both System.Web and System.Web.Extensions.


svn path=/trunk/mcs/; revision=88621
2007-11-01 02:14:52 +00:00
Marek Habersack 511d26cdcc 2007-10-24 Marek Habersack <[email protected]>
* HttpHandlerAction.cs: exact path matching must be done on the
	original string in PathMatches, not on the sliced one. Fixes bug
	#335669.
2007-10-24  Marek Habersack  <[email protected]>

	* HandlerFactoryConfiguration.cs: exact path matching must be done
	on the original string in PathMatches, not on the sliced one.

	* FileMatchingInfo.cs: refactoring - this code used to live in
	both 1.1 and 2.0 profiles. At the same time, fixe the way
	MatchExact is created - the slash is prepended only if the path
	doesn't begin with it.
2007-10-24  Marek Habersack  <[email protected]>

	* System.Web.dll.sources: added
	System.Web.Configuration/FileMatchingInfo.cs

svn path=/trunk/mcs/; revision=88121
2007-10-24 19:55:36 +00:00
Noam Lampert e77d4c28c0 Fix Java compilation
svn path=/trunk/mcs/; revision=87647
2007-10-17 10:51:37 +00:00
Marek Habersack f3a1e77fcc 2007-10-17 Marek Habersack <[email protected]>
* ApplicationHost.cs: introduce an application domain data item to
	allow checks for whether System.Web code runs inside a hosted
	application or in a stand-alone one.
	Made the array of web.config name variations an internal one, to
	be used from within configuration code.

2007-10-17  Marek Habersack  <[email protected]>

	* WebConfigurationHost.cs: if running outside hosted environment,
	read only the assemblyname.config configuration file instead of
	web.config. Fixes bug #332425

svn path=/trunk/mcs/; revision=87621
2007-10-16 22:34:48 +00:00
Marek Habersack c024be4598 2007-10-15 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs, WebServiceCompiler.cs,
	BuildProvider.cs, BaseCompiler.cs, CachingCompiler.cs: use
	HttpApplication.LoadType instead of Type.GetType.
2007-10-15  Marek Habersack  <[email protected]>

	* ProvidersHelper.cs: use HttpApplication.LoadType instead of
	Type.GetType.
2007-10-15  Marek Habersack  <[email protected]>

	* ObjectDataSourceView.cs: use HttpApplication.LoadType instead of
	Type.GetType.
2007-10-15  Marek Habersack  <[email protected]>

	* ProfileBase.cs: use HttpApplication.LoadType instead of
	Type.GetType.

svn path=/trunk/mcs/; revision=87506
2007-10-15 13:07:47 +00:00
Marek Habersack 9a63e69002 2007-10-15 Marek Habersack <[email protected]>
* HttpModulesSection.cs: use HttpApplication.LoadType when loading
	modules, to include both the bin/ directory and the top-level
	assemblies in search. Fixes bug #333686.
2007-10-15  Marek Habersack  <[email protected]>

	* ModulesConfiguration.cs: load modules using
	HttpApplication.LoadType to include the bin/ directory in search.

svn path=/trunk/mcs/; revision=87486
2007-10-15 08:57:38 +00:00
Igor Zelmanovich 3290f18a2e consider MachineKeyRegistryStorage is not supported in TARGET_J2EE
svn path=/trunk/mcs/; revision=85184
2007-09-02 09:41:54 +00:00
Marek Habersack b497743322 2007-08-30 Marek Habersack <[email protected]>
* System.Web.dll.sources: added MachineKeyRegistryStorage.cs

2007-08-30  Marek Habersack  <[email protected]>

            * MachineKeySection.cs: retrieve the keys from the registry before
            falling back to the old method. Fixes bug #76606

2007-08-30  Marek Habersack  <[email protected]>

            * MachineKeyRegistryStorage.cs: added


svn path=/trunk/mcs/; revision=85063
2007-08-30 17:32:52 +00:00
Marek Habersack dd5ce5833e 2007-08-23 Marek Habersack <[email protected]>
* ProvidersHelper.cs: HttpApplication.LoadTypeFromPrivateBin
            renamed to LoadTypeFromBin.

2007-08-23  Marek Habersack  <[email protected]>

            * AppCodeCompiler.cs: use HttpApplication.BinDirectoryAssemblies
            and HttpApplication.LoadTypeFromBin.

            * BuildProvider.cs: use HttpApplication.BinDirectoryAssemblies in
            AddAssembliesInBin.

2007-08-23  Marek Habersack  <[email protected]>

            * ApplicationHost.cs: set AppDomainSetup.PrivateBinPath to "bin"
            if running on Windows or with MONO_IOMAP in effect, and to
            "Bin:bin" otherwise.

2007-08-23  Marek Habersack  <[email protected]>

            * SimpleWebHandlerParser.cs: use
            HttpApplication.BinDirectoryAssemblies in AddAssembliesInBin and
            LoadAssemblyFromBin.
            Restore the old logic in GetTypeFromBin, also use
            HttpApplication.BinDirectoryAssemblies there.

            * TemplateParser.cs: use HttpApplication.BinDirectories to
            interate over the list of bin dirs.
            Use HttpApplication.BinDirectoryAssemblies in AddAssembliesInBin.

2007-08-23  Marek Habersack  <[email protected]>

            * HttpApplication.cs: added a static array BinDirs which contains
            the common bin directory names we can encounter.
            Added internal static property IsRunningOnWindows.
            Added internal enumerable property BinDirectories to iterate over
            the full paths of the available binary directories.
            Added internal enumerable property BinDirectoryAssemblies to
            iterate over .dll files in the bin directories.
            LoadTypeFromPrivateBin renamed to LoadTypeFromBin.
            LoadTypeFromBin uses BinDirectoryAssemblies.
            
            * HttpApplicationFactory.cs: use HttpApplication.BinDirectories to
            interate over the list of bin dirs.



svn path=/trunk/mcs/; revision=84684
2007-08-23 10:30:37 +00:00
Marek Habersack fcc675453f 2007-08-21 Marek Habersack <[email protected]>
* ApplicationHostTest.cs: adjust the test for the PrivateBinPath
        changes.

2007-08-21  Marek Habersack  <[email protected]>

        * ProvidersHelper.cs: use HttpApplication.LoadTypeFromPrivateBin
        to get the provider settings type.

2007-08-21  Marek Habersack  <[email protected]>

        * HttpApplicationFactory.cs: watch for changes in all the
        private binary directories for the current application domain.

        * HttpApplication.cs: turn the PrivateBinPath property into an
        internal enumerable, so that code throughout the assembly can
        iterate over the list of private bin directories configured for
        the application domain.
        Added a new internal method LoadTypeFromPrivateBin, for sharing
        with other parts of the assembly.

2007-08-21  Marek Habersack  <[email protected]>

        * SimpleWebHandlerParser.cs: use HttpApplication.PrivateBinPath
        enumerator when loading or adding assemblies from binary
        directories. Remove unused PrivateBinPath property.

        * ControlBuilder.cs: remove unused PrivateBinPath property.

        * TemplateParser.cs: use HttpApplication.PrivateBinPath when
        adding assemblis and loading types.

2007-08-21  Marek Habersack  <[email protected]>

        * ApplicationHost.cs: AppDomainSetup.PrivateBinPath should contain
        a list of paths relative to AppDomainSetup.ApplicationBase, not a
        full path.
        We no longer check if the bin directories exist, the user can
        create them while the application is running.

2007-08-21  Marek Habersack  <[email protected]>

        * ObjectDataSourceView.cs: get rid of PrivateBinPath property,
        it's unused.

2007-08-21  Marek Habersack  <[email protected]>

        * BuildProvider.cs: use HttpApplication.PrivateBinPath enumerator
        to look up assemblies in the binary path(s).

svn path=/trunk/mcs/; revision=84589
2007-08-21 21:13:54 +00:00