Commit Graph
25 Commits
Author SHA1 Message Date
Igor Zelmanovich 318f6b2099 2007-05-17 Igor Zelmanovich <[email protected]>
* WebConfigurationHost.cs: for TARGET_J2EE only:
	prevent NullRefference Exception.


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

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


svn path=/trunk/mcs/; revision=77415
2007-05-15 14:58:27 +00:00
Marek Habersack c7d897bbf4 2007-05-15 Marek Habersack <[email protected]>
* TemplateParser.cs: refactoring - use HttpApplication.LoadType to
	actually look up types.
	
	* ControlBuilder.cs: as above

2007-05-15  Marek Habersack  <[email protected]>

	* BuildProviderCollection.cs: refactoring - use
	HttpApplication.LoadType to actually look up the type.

	* HttpHandlerAction.cs: as above

	* WebConfigurationHost.cs: refactoring - moved the LoadType to
	HttpApplication to share the code between 1.1 and 2.0 profiles.

2007-05-15  Marek Habersack  <[email protected]>

	* ObjectDataSourceView.cs: refactoring - use
	HttpApplication.LoadType to look up types.

2007-05-15  Marek Habersack  <[email protected]>

	* HttpApplication.cs: refactoring - moved LoadType from
	WebConfigurationHost here and made it internal static, in order to
	make the code avaliable from all the places where extended type
	loading is required.


svn path=/trunk/mcs/; revision=77396
2007-05-15 09:35:00 +00:00
Konstantin Triger 697b12d28a Do not intercept the original exception
svn path=/trunk/mcs/; revision=76557
2007-05-02 09:42:51 +00:00
Marek Habersack ae40e973db 2007-04-24 Marek Habersack <[email protected]>
* WebConfigurationHost.cs: Look for types in the top-level assemblies (App_Code and
	friends).

svn path=/trunk/mcs/; revision=76165
2007-04-24 07:36:19 +00:00
Marek Habersack aef2ee73d1 2007-04-24 Marek Habersack <[email protected]>
* HttpRequest.cs: MS.NET throws HttpException for invalid paths,
	not ArgumentNullException.

	* HttpException.cs: wrap GetHtmlErrorMessage internals in
	try/catch to capture possible exceptions in HttpContext.

	* HttpContext.cs: IsCustomErrorEnabled is used from within
	HttpException, make sure it gets the section in a safe way and
	resorts to the default settings.
	
	* HttpResponse.cs: HeaderEncoding is used in the same context as
	above. Take the same precautions.

2007-04-24  Marek Habersack  <[email protected]>

	* WebConfigurationHost.cs: wrap MapPath calls in try/catch,
	because bad URLs can cause it to throw exceptions. If such
	exception is caught, throw a HttpException for Bad Request (400).

	* WebConfigurationManager.cs: added two internal methods for safe
	retrieval of config sections.


svn path=/trunk/mcs/; revision=76162
2007-04-24 06:54:27 +00:00
Konstantin Triger 916e6fa9fd logically move the *.config files under META-INF folder
svn path=/trunk/mcs/; revision=75768
2007-04-16 15:17:31 +00:00
Marek Habersack c7bbc99b2a 2007-03-24 Marek Habersack <[email protected]>
* WebConfigurationManagerTest.cs: the tests don't work because of
	the way the test suite is set up. In a normal application, the
	three test would work just fine.

2007-03-24  Marek Habersack  <[email protected]>

	* HttpRuntime.cs: use ICalls.GetMachineConfigPath instead of
	opening the machine.config file and getting its path.

	* CapabilitiesLoader.cs: use HttpRuntime.MachineConfigurationDirectory 
	instead of opening the machine config file and getting its path.

2007-03-24  Marek Habersack  <[email protected]>

	* WebConfigurationHost.cs: allow MachineToApplication definition
	for config paths that equal the domain virtual app directory.


svn path=/trunk/mcs/; revision=74927
2007-03-24 01:01:57 +00:00
Konstantin Triger 4de36b8ec4 TARGET_J2EE: enable embedding web.config into a jar
svn path=/trunk/mcs/; revision=74552
2007-03-18 10:24:47 +00:00
Konstantin Triger 97c7afddd6 return null for global web.config for TARGET_JVM
svn path=/trunk/mcs/; revision=70079
2006-12-26 12:35:20 +00:00
Miguel de Icaza 8616a7e405 2006-11-28 Miguel de Icaza <[email protected]>
* Rationalize the user of MonoTODOs.  

		- Removed all the TODOs that were only overwritten methods
		and had no further information.

		- Methods that threw exceptions now have the message "Not
		implemnted".

		- Methods that return some constant are declared like
		that.

		- Removed a bunch of stale MonoTODOs that had not been
		removed. 


svn path=/trunk/mcs/; revision=68620
2006-11-28 22:15:23 +00:00
Konstantin Triger f32b219d7a use Type.GetType for loading full qualified types since Assembly.GetType() fails to load them
svn path=/trunk/mcs/; revision=67749
2006-11-13 10:35:51 +00:00
Miguel de Icaza fefa8b8300 Add LoadType implementation, from #79396, this should be refactored
svn path=/trunk/mcs/; revision=67242
2006-11-01 20:48:06 +00:00
Konstantin Triger cbf7754273 do not recourse as this will be done by Configuration object
svn path=/trunk/mcs/; revision=65022
2006-09-06 17:56:41 +00:00
Konstantin Triger 2c232263cf revert TARGET_JVM ifdef
svn path=/trunk/mcs/; revision=64295
2006-08-24 10:51:12 +00:00
Vladimir Krasnov 9a0b452068 * WebConfigurationManager.cs: added configSystem property under TARGET_JVM part
* WebConfigurationHost.cs: fixed GetStreamName and OpenStreamForRead for TARGET_JVM
* CompilationSection.cs: BuildProviders property removed from TARGET_JVM
* SystemWebSectionGroup.cs: Compilation property removed from TARGET_JVM

svn path=/trunk/mcs/; revision=63495
2006-08-08 16:48:57 +00:00
Chris Toshok 9887d4c832 2006-06-08 Chris Toshok <[email protected]>
* WebConfigurationHost.cs (InitForConfiguration): i know this is
	going to bite me in the ass, but guard against configPath being ==
	to "/", since this will result in an infinite loop.
	(MapPath): fix a NRE.


svn path=/trunk/mcs/; revision=61574
2006-06-08 14:50:38 +00:00
Chris Toshok 58228fbaa3 2006-05-04 Chris Toshok <[email protected]>
[ Fixes bug #78256 ]
	
	* WebConfigurationHost.cs (GetConfigType): add a MonoTODO about
	how we should use the build provider machinery to get types.
	(MapPath): add rudimentary mapping in the case where we don't have
	a request, basically handle the case where the url begins with (or
	is) HttpRuntime.AppDomainAppVirtualPath.

	* WebConfigurationManager.cs (GetSection): if we don't have a
	valid request, open the web configuration corresponding to
	HttpRuntime.AppDomainAppVirtualPath.
	(GetBasePath): comment this a little, and make it work in the case
	where we don't have an HttpRequest.


svn path=/trunk/mcs/; revision=60275
2006-05-04 19:02:05 +00:00
Chris Toshok 1de2e66006 * WebConfigurationHost.cs (InitForConfiguration): actually, use
HttpRuntime.AppDomainAppVirtualPath on gonzalo's recommendation.
	It's never null, and its use cleans things up a bit.

2006-04-25  Chris Toshok  <[email protected]>


svn path=/trunk/mcs/; revision=59878
2006-04-25 21:50:08 +00:00
Chris Toshok a8c07f9b53 2006-04-25 Chris Toshok <[email protected]>
* WebConfigurationHost.cs (InitForConfiguration): stop going up
	the virtual hierarchy once we reach the application's base virtual
	path.


svn path=/trunk/mcs/; revision=59876
2006-04-25 21:39:33 +00:00
Chris Toshok 463b9cef4a 2006-03-24 Chris Toshok <[email protected]>
* WebConfigurationHost.cs: fix bug where OpenWebConfiguration
	("/") would result in 2 configurations for that toplevel path to
	be opened.


svn path=/trunk/mcs/; revision=58491
2006-03-24 21:05:41 +00:00
Chris Toshok 7033a6044e 2006-01-30 Chris Toshok <[email protected]>
* WebConfigurationManager.cs: lots of little changes.  hopefully
	this doesn't break anyone.  it fixes all the nunit problems
	gonzalo was having.

	* WebConfigurationHost.cs (GetStreamName): in the MachineWebPath
	case, handle the case where we have a WebConfigurationFileMap.
	(MapPath): this is likely wrong, but in the case where we don't
	have a file map or current HttpContext, just return the path.


svn path=/trunk/mcs/; revision=56311
2006-01-31 06:05:14 +00:00
Chris Toshok ea89719776 2006-01-26 Chris Toshok <[email protected]>
* HttpConfigurationSystem.cs: new class that gets sections from
	web.config files.

	* WebConfigurationManager.cs: change a lot of the
	NotImplementedExceptions to NotSupportedExceptions.
	(AppSettings): implement by just returning
	ConfigurationManager.AppSettings (note this is broken because
	ConfigurationManager.AppSettings are read-only, but it works for
	reading.)
	(ConnectionStrings): same (and probably broken in the same way..)
	(Init): replace the 2.0 IInternalConfigSystem with our
	HttpConfigurationSystem.

	* WebConfigurationHost.cs: add a comment about how things are
	likely to work in the face of IRemoteWebConfigurationHostServer.
	(CreateConfigurationContext): return a WebContext instance.


svn path=/trunk/mcs/; revision=56137
2006-01-27 02:17:41 +00:00
Chris Toshok 05d5389878 2006-01-16 Chris Toshok <[email protected]>
* WebConfigurationManager.cs: implement a IConfigurationSystem for
	use with WebConfigurationManager.
	(GetSection): try to load the section
	using GetWebApplicationSection before calling into
	ConfigurationManager.GetSection.
	(GetWebApplicationConfiguration): move common code to here.
	(GetWebApplicationSection): use GetWebApplicationConfiguration.
	(AppSettings): implement.

	* WebConfigurationHost.cs (GetWebConfigFileName): add
	"Web.Config", and move to an array/loop implementation.  maybe we
	should scan the directory and check ToLower() instead of
	explicitly enumerating?


svn path=/trunk/mcs/; revision=55650
2006-01-16 20:11:14 +00:00
Chris Toshok 28685b1020 move many 2.0-only classes into System.Web.Configuration_2.0
svn path=/trunk/mcs/; revision=52421
2005-10-31 21:03:10 +00:00