Commit Graph
5585 Commits
Author SHA1 Message Date
Marek Habersack d77458d1fa 2009-01-12 Marek Habersack <[email protected]>
* MembershipUserCollection.cs: CopyTo overloads use store.Values
	as the copy source. Fixes bug #464783. Patch from Christian
	Prochnow <[email protected]>

svn path=/trunk/mcs/; revision=123084
2009-01-12 16:08:21 +00:00
Marek Habersack 45cccd09d5 2009-01-09 Marek Habersack <[email protected]>
* BaseParser.cs, PageParser.cs, UserControlParser.cs: use
	VirtualPathUtility.GetDirectory instead of UrlUtils.GetDirectory.

svn path=/trunk/mcs/; revision=122893
2009-01-09 14:41:30 +00:00
Marek Habersack 148cc18395 2009-01-09 Marek Habersack <[email protected]>
* HttpContext.cs: RewritePath now treats relative and absolute
	file paths with more care. If a path is of the ~/file.aspx form,
	then the ~/ part is removed and the rest is combined with the base
	virtual path. If the file path is of the ~ or /file.aspx forms,
	then it is combined verbatim with the base virtual path. Fixes bug
	#463964
	Make sure the path returned from HttpRequest.BaseVirtualPath
	contains the trailing slash before combining. Fixes bug #463964

svn path=/trunk/mcs/; revision=122891
2009-01-09 14:38:07 +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 4a3dce4bcd 2009-01-09 Marek Habersack <[email protected]>
* Cache.cs: System.Threading.Timer.Change takes a long, not an
	int. The maximum value of sliding expiration is 365 days
	(31536000000ms) which fits within the value range of long. The
	previous cast to int might yield negative values in certain
	situations which was the reason for bug #464221. Fixes bug #464221

svn path=/trunk/mcs/; revision=122839
2009-01-08 23:50:52 +00:00
Gert Driesen d637e7a52b * HandlerFactoryConfiguration.cs: Allow handlers with non-public
.ctors. Fixes bug #463971 for 1.0 profile.

svn path=/trunk/mcs/; revision=122811
2009-01-08 19:06:55 +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
Geoff Norton 9f3c95a9d1 2009-01-07 Geoff Norton <[email protected]>
* ApplicationHostTest.cs: Fix a few case-sensitiviy issues.

svn path=/trunk/mcs/; revision=122624
2009-01-07 07:04:19 +00:00
Raja R Harinath 6da65c28f2 * CustomSection.cs: Only enable in the 2.0 profile.
svn path=/trunk/mcs/; revision=122243
2008-12-30 14:59:23 +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
Gonzalo Paniagua Javier c79405a7c0 Use IndexOf (char)
svn path=/trunk/mcs/; revision=122118
2008-12-25 07:38:51 +00:00
Gonzalo Paniagua Javier 1c4e0f0d57 Use IndexOf (char)
svn path=/trunk/mcs/; revision=122117
2008-12-25 07:38:03 +00:00
Gonzalo Paniagua Javier e2694df215 Use IndexOf (char)
svn path=/trunk/mcs/; revision=122116
2008-12-25 07:36:22 +00:00
Gonzalo Paniagua Javier 13c92404cb Use IndexOf (char)
svn path=/trunk/mcs/; revision=122115
2008-12-25 07:34:53 +00:00
Gonzalo Paniagua Javier 8f6c586c5d Use IndexOf (char)
svn path=/trunk/mcs/; revision=122114
2008-12-25 07:34:03 +00:00
Gonzalo Paniagua Javier 9d6b54ea13 Use IndexOf (char)
svn path=/trunk/mcs/; revision=122113
2008-12-25 07:33:10 +00:00
Gonzalo Paniagua Javier ea54f5bafc 2008-12-25 Gonzalo Paniagua Javier <[email protected]>
* SqlProfileProvider.cs: use IndexOf (char).


svn path=/trunk/mcs/; revision=122112
2008-12-25 07:31:44 +00:00
Gonzalo Paniagua Javier 9b30b21a09 2008-12-25 Gonzalo Paniagua Javier <[email protected]>
* ServerVariablesCollection.cs: use IndexOf (char).


svn path=/trunk/mcs/; revision=122111
2008-12-25 07:30:09 +00:00
Gonzalo Paniagua Javier 1aa7e69351 2008-12-25 Gonzalo Paniagua Javier <[email protected]>
* TemplateControl.cs: use IndexOf (char).


svn path=/trunk/mcs/; revision=122110
2008-12-25 07:28:29 +00:00
Gonzalo Paniagua Javier d35d703d77 2008-12-25 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: use Replace (char, char).


svn path=/trunk/mcs/; revision=122109
2008-12-25 07:27:33 +00:00
Gonzalo Paniagua Javier 4568b14260 2008-12-25 Gonzalo Paniagua Javier <[email protected]>
* SqlRoleProvider.cs:
	* SqlMembershipProvider.cs: use IndexOf (char) instead of
	IndexOf (string).


svn path=/trunk/mcs/; revision=122108
2008-12-25 07:26:26 +00:00
Marek Habersack 386eddf501 2008-12-24 Marek Habersack <[email protected]>
* HttpApplicationFactory.cs: watch for changes to web.config also
	in the subdirectories.

svn path=/trunk/mcs/; revision=122069
2008-12-24 02:15:59 +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 14f0503b18 2008-12-20 Marek Habersack <[email protected]>
* HttpResponse.cs: the code in TransmitFile (VirtualFile, bool)
	was an abomination - dear children, don't do this at home (never,
	ever, allocate a buffer to load entire file). I will wear a brown
	paper bag every 2nd Sunday in the next 6 months for writing the
	old version of this code.
	New code optimizes the write when DefaultVirtualFile is used (as
	it refers to a physical file on disk) and reads/writes other
	virtual files in chunks.

svn path=/trunk/mcs/; revision=121909
2008-12-20 03:13:33 +00:00
Marek Habersack b62e106bbd 2008-12-18 Marek Habersack <[email protected]>
* ControlBuilder.cs: BindingContainerType returns typeof (Page)
	only when the current object is a RootBuilder and it's been
	created for a page parser. Otherwise it returns typeof
	(Control). Fixes bug #45630

svn path=/trunk/mcs/; revision=121752
2008-12-18 01:18: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
Marek Habersack d077112f1c 2008-12-16 Marek Habersack <[email protected]>
* StaticFileHandler.cs: use HttpRuntime.RunningOnWindows instead
	of checking the platform directly.

svn path=/trunk/mcs/; revision=121621
2008-12-16 19:00:27 +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
Marek Habersack c3abcb4e51 2008-12-11 Marek Habersack <[email protected]>
* MasterPageParser.cs: check if masterType is null before using it
	in AddDirective.

svn path=/trunk/mcs/; revision=121287
2008-12-11 11:51:44 +00:00
Marek Habersack 8b9adb2940 2008-12-11 Marek Habersack <[email protected]>
* TemplateParser.cs: in the 2.0 profile when a custom control is
	registered, do not compile it right away but store the tag name in
	a registry to be compiled at a later stage.

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

	* BaseCompiler.cs: added a new method, InitializeType, to be
	overriden in child classes when any class initialization needs to
	be performed before methods, constructors and fields are created.

	* TemplateControlCompiler.cs: if the parser has any custom
	controls registered, compile them here - in the InitializeType
	method.

svn path=/trunk/mcs/; revision=121262
2008-12-10 23:45:04 +00:00
Gonzalo Paniagua Javier 8995c8cb80 2008-12-09 Gonzalo Paniagua Javier <[email protected]>
* XhtmlTextWriter.cs: don't recreate the Hashtables every time, but
	Clone the defaults.


svn path=/trunk/mcs/; revision=121197
2008-12-10 07:11:20 +00:00
Marek Habersack d0135f374d 2008-12-10 Marek Habersack <[email protected]>
* MasterPageParser.cs: do not compile anything while
	parsing. MasterType virtual path is not compiled, but stored for
	later. It is compiled when the MasterType property is requested
	from within MasterPageCompiler.

	* PageParser.cs: do not compile anything while
	parsing. MasterPageFile, MasterType and PreviousPageType virtual
	paths aren't compiled but checked for existence and stored for
	later. Actual compilation happens when the MasterType and
	PreviousPageType are requested from within PageCompiler.

	* BaseParser.cs: added a new helper method, ThrowParseFileNotFound.

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

	* ParseException.cs: made serializable.

	* PageCompiler.cs: CreateStronglyTypedProperty calls
	AddReferencedAssembly to add type's assembly to the unit's
	references after the typed property has been created.

	* BaseCompiler.cs: added a new helper method,
	AddReferencedAssembly to be used whenever an assembly location
	needs to be added to the compilation unit's list after the parsing
	is done (e.g. when processing PreviousPageType or MasterPageType
	properties in PageParser)

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

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

	* System.Web_test.dll.sources: added System.Web.UI/PageParserTest.cs

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

	* NunitWebResources/MissingMasterFile.aspx: added

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

	* PageParserTest.cs: added



svn path=/trunk/mcs/; revision=121181
2008-12-10 02:03:35 +00:00
Marek Habersack 3f8a41d803 2008-12-09 Marek Habersack <[email protected]>
* HttpServerUtility.cs: when Execute finishes, clear
	Request.QueryStringRaw. Backport of r121010 by Vladimir Krasnov.

svn path=/trunk/mcs/; revision=121064
2008-12-08 23:44:04 +00:00
Marek Habersack 2cc422baec 2008-12-08 Marek Habersack <[email protected]>
* NunitWebResources/ValidPropertyBind5.aspx: added

	* NunitWebResources/ReadWritePropertyControl.ascx: added a
	writable string property.

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

	* TemplateControlCompilerTest.cs: added another valid Bind
	expression test.

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

	* TemplateControlCompiler.cs: use the correct regex match group
	index in SanitizeBindCall (), fixes bug #457011



svn path=/trunk/mcs/; revision=120988
2008-12-08 12:03:43 +00:00
Marek Habersack 8f1762b9d4 2008-12-05 Marek Habersack <[email protected]>
* BuildManager.cs: attempt to enter the compilation critical
	section with a timeout up to 3 times before giving up. This avoids
	deadlocks in situations where there are two virtual directores
	each containing user controls referencing user controls from the
	other directory.

svn path=/trunk/mcs/; revision=120861
2008-12-05 18:12:51 +00:00
Gert Driesen 8537b6d658 * NoParamsInvoker.cs:
* HttpApplicationFactory.cs: Fixed support for static eventhandlers.

svn path=/trunk/mcs/; revision=120623
2008-12-03 18:29:27 +00:00
Marek Habersack 60f6913978 2008-12-03 Marek Habersack <[email protected]>
* System.Web_test.dll.sources: added System.Web.UI/DataBinderTest.cs

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

	* DataBinderTest.cs: added

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

	* DataBinder.cs: clean up Eval for good this time.
	GetIndexedPropertyValue should throw an exception when a string
	indexer expression is used and the container is an IList.

svn path=/trunk/mcs/; revision=120590
2008-12-03 13:33:05 +00:00
Gonzalo Paniagua Javier 20e96bae9a 2008-12-02 Gonzalo Paniagua Javier <[email protected]>
* Page.cs: make sure we don't return null in Title.


svn path=/trunk/mcs/; revision=120550
2008-12-03 00:06:23 +00:00
Gonzalo Paniagua Javier f31d48405a 2008-12-02 Gonzalo Paniagua Javier <[email protected]>
* AspParser.cs: reset to the next character in a partial match in case
	of failure. Fixes bug #314688.

svn path=/trunk/mcs/; revision=120549
2008-12-02 23:53:50 +00:00
Marek Habersack 42d4ec2ad5 2008-12-02 Marek Habersack <[email protected]>
* DataBinder.cs: when Eval attempts to find Items [] in the
	container, catch and ignore all exceptions - the null returned
	from GetPropertyValue may be a legitimate return value.

svn path=/trunk/mcs/; revision=120485
2008-12-02 14:28:05 +00:00
Marek Habersack a928b55352 2008-12-02 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWeb/NunitWeb/Resources/Web.mono.config.1.1

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

	* WebTest.cs: for 1.1, copy the Web.mono.config.1.1 resource

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

	* Web.config: added ASP.NET AJAX 1.0 configuration entries
	* Web.config.1.1: copied from the last revision before the above
	changes, so that 1.1 tests don't fail.
	* Web.mono.config.1.1: copied from revision before the AJAX
	changes below, so that 1.1 tests don't fail.



svn path=/trunk/mcs/; revision=120442
2008-12-02 01:31:10 +00:00
Marek Habersack c257964940 2008-12-02 Marek Habersack <[email protected]>
* StateManagedCollection.cs: adding an item to the collection does
	not call SetDirty as an item is added, thus not affecting the
	indexes of its predecessors. Fixes bug #443100
	Insert doesn't call SetDirtyObject as all objects are made dirty
	in SetDirty which is called from here. Same applies to this [int]
	indexer.

svn path=/trunk/mcs/; revision=120436
2008-12-02 01:07:39 +00:00
Marek Habersack 9fb8f0992b 2008-12-01 Marek Habersack <[email protected]>
* NunitWebResources/ContentPlaceHolderInTemplate.master: added

	* NunitWebResources/ContentPlaceHolderInTemplate.aspx: added

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

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/ContentPlaceHolderInTemplate.aspx
	Test/mainsoft/NunitWebResources/ContentPlaceHolderInTemplate.master 
	(TEST_MCS_FLAGS): added reference to System.Web.Extensions

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

	* Web.mono.config: added ASP.NET AJAX 1.0 configuration entries

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

	* TemplateControlCompilerTest.cs: Added test for bug #449970

svn path=/trunk/mcs/; revision=120376
2008-12-01 19:33:35 +00:00
Marek Habersack 5d39b8a41c 2008-12-01 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: instead of adding ContentPlaceHolder
	instances to the ContentPlaceHolders collection when the
	placeholder is instantiated in the control build method, collect
	the ids and store them in ContentPlaceHolders inside the
	constructor. Fixes bug #449970
	For each content placeholder generate a public virtual property
	named "Template_PLACEHOLDERID", this is compatible with what .NET
	does.

	* BaseCompiler.cs: added new virtual method,
	AddStatementsToConstructor, which is called just before
	CreateConstructor returns.

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

	* MasterPage.cs: use List <string> for ContentPlaceHolders instead
	of ArrayList.
	CreateMasterPage now directly accesses the ContentPlaceHolders as
	it is now a list of strings



svn path=/trunk/mcs/; revision=120353
2008-12-01 14:45:16 +00:00
Marek Habersack b830b7548b 2008-12-01 Marek Habersack <[email protected]>
* Style.cs: WriteStyleAttributes must not use the fontinfo field
	directly, it has to be done via the Font property. Fixes bug
	#449793

svn path=/trunk/mcs/; revision=120345
2008-12-01 12:34:45 +00:00
Marek Habersack f2494e1db0 2008-11-28 Marek Habersack <[email protected]>
* DataBinder.cs: do the proper thing in Eval when a non-indexed
	property is requested on an object and not found. In that case try
	to use the Items property.

svn path=/trunk/mcs/; revision=120199
2008-11-28 01:43:09 +00:00
Gonzalo Paniagua Javier e9adf966df 2008-11-25 Gonzalo Paniagua Javier <[email protected]>
* HttpContext.cs: MS does not throw. They just return null.


svn path=/trunk/mcs/; revision=120047
2008-11-26 02:56:03 +00:00
Marek Habersack fa32fdf482 2008-11-25 Marek Habersack <[email protected]>
* System.Web.dll.sources: added
	System.Web.Compilation/AspComponent.cs

2008-11-25  Marek Habersack  <[email protected]>

	* RootBuilder.cs: use new API in AspComponentFoundry to retrieve
	registered control type.

	* TemplateControlParser.cs: AddControlImports () removed. Its
	functionality is now implemented in ControlBuilder.AddChild in a
	more elegant, fine grained and correct way.

	* TemplateParser.cs: replaced some "" with String.Empty

	* ControlBuilder.cs: AddChild now adds an import for child's
	namespace if the control being added has been registered in the
	web.config file. Possible fix for #447896 and #447898

	* PageParser.cs, MasterPageParser.cs: do not call
	AddControlImports, it no longer exists.

2008-11-25  Marek Habersack  <[email protected]>

	* AspComponentFoundry.cs: GetComponentType methods replaced with
	GetComponent returning an instance of AspComponent which fully
	describes the registered item. Components are cached, indexed by
	full tag name.

	* AspComponent.cs: added

svn path=/trunk/mcs/; revision=119893
2008-11-25 00:51:21 +00:00