Commit Graph
25 Commits
Author SHA1 Message Date
Igor Zelmanovich 696773bd62 2007-03-15 Igor Zelmanovich <[email protected]>
* HttpRequest.cs: fixed MapPath () method.


svn path=/trunk/mcs/; revision=74403
2007-03-15 17:48:42 +00:00
Marek Habersack 232fb9caac Fix for bug #80544
svn path=/trunk/mcs/; revision=71371
2007-01-19 22:18:37 +00:00
Igor Zelmanovich 8ae1ec6671 2006-12-19 Igor Zelmanovich <[email protected]>
* ServletWorkerRequest.cs: fixed:
	Path.Combine is used in GetFilePathTranslated to consider 
	platform-depended PathSeparator char.


svn path=/trunk/mcs/; revision=69732
2006-12-19 12:22:19 +00:00
Gonzalo Paniagua Javier 213a3e34f8 2006-03-23 Gonzalo Paniagua Javier <[email protected]>
* SimpleWorkerRequest.cs: use UrlUtils instead of Path. Several fixes
	to make PathInfo + SimpleWorkerRequest work as in MS.


svn path=/trunk/mcs/; revision=58395
2006-03-23 22:17:26 +00:00
Gonzalo Paniagua Javier 2da2593498 2006-02-01 Gonzalo Paniagua Javier <[email protected]>
* SimpleWorkerRequest.cs: implemented RootWebConfigPath.
	* HostingEnvironment.cs: implemented RegisterVirtualPathProvider and
	a few other defaults.


svn path=/trunk/mcs/; revision=56412
2006-02-01 19:50:10 +00:00
Gonzalo Paniagua Javier 470d9252a8 2006-01-30 Gonzalo Paniagua Javier <[email protected]>
* VirtualPathProvider.cs: implemented OpenFile.
	* VirtualFile.cs: removed stuff cut&pasted from VirtualDirectory.

	* SimpleWorkerRequest.cs: 
	* HostingEnvironment.cs: class status fixes.


svn path=/trunk/mcs/; revision=56295
2006-01-30 22:32:30 +00:00
Gonzalo Paniagua Javier 0421b55347 2005-11-28 Robert Jordan <[email protected]>
* SimpleWorkerRequest.cs: fixed MapPath () for the case
	app_virtual_dir.Length == 1 && path.Length == 1.
	* SimpleWorkerRequest.cs: implemented SendResponseFromMemory ().


svn path=/trunk/mcs/; revision=53597
2005-11-28 22:44:57 +00:00
Gonzalo Paniagua Javier d09802508b 2005-09-27 Gonzalo Paniagua Javier <[email protected]>
* SimpleWorkerRequest.cs: all tests pass now.


svn path=/trunk/mcs/; revision=50826
2005-09-27 07:31:39 +00:00
Gonzalo Paniagua Javier 5a181e61d3 2005-09-21 Gonzalo Paniagua Javier <[email protected]>
* SimpleWorkerRequest.cs: fix GetUriPath() for paths ending in '/'.


svn path=/trunk/mcs/; revision=50421
2005-09-21 22:02:23 +00:00
Sebastien Pouliot fce04f20db 2005-09-10 Sebastien Pouliot <[email protected]>
* AppDomainFactory.cs: Added LinkDemand for Minimal. Added Demand for
	UnmanagedCode on ctor. Added TODO on unimplemented method.
	* ApplicationHost.cs: Added LinkDemand for Minimal. Added Demand for 
	UnmanagedCode on ctor. Removed duplicate null checks.
	* ISAPIRuntime.cs: Fixed inheritance (added MarshalByRefObject and 
	IRegisteredObject) for 2.0. Added LinkDemand for Minimal. Added Demand 
	for UnmanagedCode on ctor.
	* SimpleWorkerRequest.cs: Added LinkDemand and InheritanceDemand (not
	sealed) for Minimal. Added Demands for UnmanagedCode on ctors. Added
	FileIOPermission for PathDiscovery before returning processed paths.


svn path=/trunk/mcs/; revision=49864
2005-09-10 14:12:33 +00:00
Miguel de Icaza d0f759d963 2005-07-27 Miguel de Icaza <[email protected]>
* SimpleWorkerRequestTest.cs: Do not use the "/tmp" directory as
	that makes the tests fail if we create a hosted
	SimpleWorkerRequest.

	Instead use the current directory, and before starting up, create
	a bin directory and copy the assembly there to allow us to create
	a host.

	Also, replicate the tests for when we are hosted in a new
	appdomain, as "MapPath" does work in this case.  When running
	SimpleWorkerRequest on the main domain MapPath always returns
	null. 

2005-07-12  Miguel de Icaza  <[email protected]>

	* UnitTest.cs: Update test suite.

2005-07-07  Miguel de Icaza  <[email protected]>

	* XmlTest.cs: Added test.  

2005-07-07  Miguel de Icaza  <[email protected]>

	* LabelTest.cs: Add test.

2005-07-06  Miguel de Icaza  <[email protected]>

	* FontUnitTest.cs: New unit tests.

	* UnitTest.cs: Add support for different cultures and the Decimal
	separator,
	
	* UnitTest.cs: Add tests for null and "" arguments to Parse and
	Unit(string) which produce IsEmpty units. 

	* UnitTest.cs: Fresh file with tests.

2005-07-30  Miguel de Icaza  <[email protected]>

	* OutputCacheModule.cs: Make synchronous.

2005-08-15  Miguel de Icaza  <[email protected]>

	* HttpApplication.cs: Update comments

	* HttpPostedFile.cs: Use a substream to read from the uploaded
	multiparts. 

	* HttpRequest.cs: use new code to read the uploaded files.

2005-08-12  Miguel de Icaza  <[email protected]>

	2.x API fixage and small additions:
	
	* HttpResponse.cs: Make constructor internal.

	* HttpRequest.cs (IsLocal): Expose if NET_2.x

	* HttpContext.cs: Remove internal routine.

	* HttpApplication.cs: Add 2.x events. 

	* HttpRequest.cs: Another iFolder issue: I was not setting up the
	uri_builder here.

	Fixes to get iFolder to work:
	
	* HttpApplicationFactory.cs: Set the context when we are initting
	the application.

	* HttpApplication.cs (SetContext): helper routine. 

	* HttpResponse.cs: Implement the various cache operations:n
	Expires, ExpiresAbsolute, CacheControl.

	Actually produce the Cache-Control header, the "Cache" property
	takes precedence over the compatibility settings (Expires,
	ExpiresAbsolutely and CacheControl). 

	* HttpCachePolicy.cs: Fix style.

	Fix the generation of the headers, use lower-case values, do not
	add the max-value if the value is zero.  

	Allow for all possible values in SetCacheability. 

	* HttpRuntime.cs (ClrInstallDirectory): Implement.

	* HttpResponseStream.cs: Remove debugging stuff. 

2005-08-11  Miguel de Icaza  <[email protected]>

	Big chunked handling rewrite, and integration of Ben's unmanaged
	output stream.

	* HttpWriter.cs: Delegate chunked encoding writing to the
	HttpResponse. 

	* HttpResponse.cs: Rework the chunked encoding system, centralize
	it all. 

	* HttpResponseStream.cs: Deploy Ben's bucket-base unmanaged
	buffers code. 

	Changed the way that we handle chunked encoding, centralize it
	all;  

	Remove a lot of manual handling of buffering turned off, and
	instead delegate it all to Flush, fixes several issues with the
	new framework.

	* HttpWorkerRequest.cs (SendResponseFromMemory (IntPtr, int)):
	Provide a default implementation since currently XSP does not have
	this method implemented. 

2005-08-10  Miguel de Icaza  <[email protected]>

	* ServerVariablesCollection.cs: For Ben.  Implement the header
	fetching here, do not implement it in HttpRequest.cs.

2005-08-09  Miguel de Icaza  <[email protected]>

	* HttpRuntime.cs (AspInstallDirectory): Implement.

2005-08-04  Miguel de Icaza  <[email protected]>

	* HttpApplicationFactory.cs: Change "Start" event like the "End"
	event, and only do this once, when we init the type.

	Fire the "Application_Start" event after we create the type.

2005-08-02  Miguel de Icaza  <[email protected]>

	* HttpResponse.cs: Stub for TransmitFile.

	* HttpRequest.cs (IsAuthenticated): Implement.

2005-08-01  Miguel de Icaza  <[email protected]>

	* HttpRequest.cs: Cope with implementations of HttpWorkerRequest
	(unpatched xsp) that do not send back the PreloadedEntityBody. 

	* HttpApplication.cs: keep track of the factory. 
	(Dispose): Only dispose once, clean up other variables, release
	the ManualResetEvent.
	Release the handler to the factory.

	* HttpApplicationFactory.cs: Implement a stack to reuse the
	applications. 

	* HttpRequest.cs: On uploads, if the ContentLenght is zero, throw
	a 411.

	* HttpRuntime.cs: Recycle the application after using it.

	* HttpPostedFile.cs: Implement SaveAs.

	* HttpContext.cs: Return the "Server" property.

2005-08-01  Miguel de Icaza  <[email protected]>

	* HttpRequest.cs (Cookies, Forms): Add validation.
	(Forms): Add application/x-www-form-urlencoded parsing and
	multipart/form-data parsing.
	
	(HttpMultiPart): Implement new class to load multi-part data from
	a stream since there is no longer a byte [] that holds the data
	(currently we have an unmanaged IntPtr buffer wrapped as a
	stream).  Also the 2.x framework will add support for large
	uploads which are sent directly to disk, which will require the
	FileStream interface. 
	
	(Path, PathInfo): Fill a couple more methods to avoid crashes.

	* HttpContext.cs: Fill another one to get web services summary
	page painting.  The page does not work though.
	
	* HttpApplication.cs: Rework the pipeline to not depend on
	`finally', as `finally' would not be invoked if we choose not to
	call the pipeline again (which happens if the `stop' variable is
	set). 

	Instead force the pipeline to go to the shutdown, and yield from
	there after all the release-state callbacks have been invoked. 

2005-07-31  Miguel de Icaza  <[email protected]>

	* HttpApplication.cs: Remove debugging messages since the compiler
	bug has been fixed.

	You must use at least mcs from revision 47879 for the application
	pipeline to work. 

2005-07-30  Miguel de Icaza  <[email protected]>

	* HttpContext.cs: Error handling methods.

	* HttpResponse.cs: Trigger the last event.

	* HttpRuntime.cs: Add queueing of the next request. 

	* HttpApplication.cs: Deploy the new yield-based application
	pipeline, add error handling to the pipeline.
	
	* HttpApplication.cs (AsyncRequestState): Just use the done event
	from the parent.

2005-07-29  Miguel de Icaza  <[email protected]>

	* HttpResponseStream.cs, HttpRequest.cs: Fix bugs found by nunit.

	* HttpApplication.cs: Fix a race condition. 

	* HttpResponseStream.cs: Fix bug, send the size of the buffer that
	we have so far instead of the internal size of the buffer.   This
	will need work later to ensure we enforce the Content-Length
	maximum output size if set.

	* ServerVariablesCollection.cs: This class now inherits from
	NameValueCollection, we should probably review what the middle
	class did, there are no dependencies on it.

	I need to write tests to investigate if something is missing or
	has changed in this implementation. 

2005-07-27  Miguel de Icaza  <[email protected]>

	* HttpRequest.cs: No happy replies here, send a 411.

2005-07-26  Miguel de Icaza  <[email protected]>

	* HttpResponse.cs: use_chunked is now a byte-array, if not null,
	we use it to hold the size of the chunked so we do not have to
	allocate many of these. 
	(SendSize): Helper routine to send the chunked headers.
	(BinaryWrite): First user of the chunked writer.

	* HttpApplication.cs: Do not crash if they request a Server
	instance, but throw a NotImplementedException.

	* HttpRequest.cs: fix a few problems exposed by the regression
	test suite.

	* HttpRequest.cs (Cookies): use Chris' new constructor to get the
	cookies parsed.

	: The big Uri rework: instead of using QueryString
	as the population mechanism, populate an UriBuilder from the
	various HttpWorkerRequest methods.

	* HttpWorkerRequest.cs (GetProtocol): Implement in terms of
	IsSecure().

	* HttpResponse.cs: Pointed by Ben, Write (null) is a nop instead
	of a crash.

	* HttpContext.cs: Add a couple of properties to help the 2.x
	build.
	
	* HttpResponse.cs: Make ContentLength a long, add back support for
	session's app_path_mod.
	(ApplyAppPathmodifier): put back.
	(End): Pass a flag to abort so we can tell the exceptions appart
	in HttpApplication.
	(WriteHeaders): Send the HTTP status.
	(Redirect): Implement.
	(Write): Use the Output property to load writer when needed.
	
	* HttpRequest.cs (ctor): Temporary use of InitFromWR, will fix
	later. 
	(MakeInputStream): check content-length size, use routines to load
	the preloaded data, handle incomplete transfers.
	(Query): Do not insert null keys into the collection.
	(Url): implement.
	(UrlReferer): implement.

	* HttpApplication.cs (RunHooks): Catch Thread.Abort, and call
	Thread.ResetAbort after each step.

	Ensure that ReleaseState is called if we ever succeed in acquiring
	the state even if we have stopped the request pipeline.

	Report file not found, directory not found.

2005-07-25  Miguel de Icaza  <[email protected]>

	* HttpCookieCollection.cs: Add expiration of the cookie. 

	* HttpRequest.cs: Add check for ContentLength, use
	GetPreloadedEntityBody, correct number of bytes uploaded.

2005-07-21  Miguel de Icaza  <[email protected]>

	* HttpResponseHeader.cs: Our implementation of HttpResponse only
	uses the text headers, does not use any constants as XSP would go
	through a slower code path anyways.

2005-07-20  Miguel de Icaza  <[email protected]>

	* HttpApplication.cs: Ongoing work on pipeline, I will need to
	redo this later.

2005-07-19  Miguel de Icaza  <[email protected]>

	* HttpContext.cs (GetService): Implement.  Return all of the
	properties that we have access to.  Make HttpWorkerRequest the
	first match as this is the only likely reason people need to use
	this. 

	* IntPtrStream.cs: Bring from corlib.

	* MultiPartContentParser.cs: use a MemoryStream as HttpInputStream
	will now be using IntPtrStream. 

	* HttpRequest.cs (MakeInputStream): move code that loads the
	request here
	(CloseInputStream): Helper method that we will call later to
	ensure that we dispose properly the malloced() block. 
	(BinaryRead): Implemented.

	* HttpInputStream.cs: Rewrite to be a descendant of
	IntPtrStream.cs 

2005-07-18  Miguel de Icaza  <[email protected]>

	* HttpApplication.cs (Modules): Add modules support and
	AsyncResult.

2005-07-17  Miguel de Icaza  <[email protected]>

	* HttpRequest.cs (Headers, InputStream): implemented two more
	properties.

	* HttpInputStream.cs: All we need is a MemoryStream with writable
	set to false.

	* HttpPostedFile.cs: Use a Stream.

2005-07-15  Miguel de Icaza  <[email protected]>

	* HttpRequest.cs: 

2005-07-14  Miguel de Icaza  <[email protected]>

	* HttpRuntime.cs: Return a few of the values from the AppDomain
	data. 

	Put the application shutdown process.

	* HttpApplicationFactory.cs (AddEvent): Fixed bug when more than
	one method existed.
	
	(FireEvent): Do not ignore errors.

	* HttpContext.cs (GetAppConfig, GetConfig): First success, use
	ConfigurationSettings.GetConfig to get the value that QueueManager
	needed.

2005-07-13  Miguel de Icaza  <[email protected]>

	* HttpRequest.cs: More work on this file

	* HttpRequest.cs, HttpApplication.cs, HttpContext.cs,
	HttpRuntime.cs: New from scratch implementation.

2005-08-25  Miguel de Icaza  <[email protected]>

	* HtmlHead.cs: Implement constructor, pass the tag.

2005-07-26  Miguel de Icaza  <[email protected]>

	* HtmlForm.cs: It is possible to have keys with no values in the
	query string, do not try to process those on the foreach loop.
	
	The question is: what should happen if I only get the key?

	Example: file_with_a_form.aspx?a

2005-07-09  Miguel de Icaza  <[email protected]>

	* DataBindingHandlerAttribute.cs: Create the "Default" property.

2005-07-07  Miguel de Icaza  <[email protected]>

	* HtmlTextWriter.cs: Return the stuff in lowercase to pass the
	tests. 

	* StateBag.cs: Add NET_2_0 SetDirty method to get the build
	going. 

2005-08-15  Miguel de Icaza  <[email protected]>

	* SessionStateModule.cs: Make this use the synch api as the module
	was synchronous anyways

2005-07-25  Miguel de Icaza  <[email protected]>

	* FormsAuthentication.cs (SignOut): Force the cookie to have it
	expire in the past.

2005-07-26  Miguel de Icaza  <[email protected]>

	* Style.cs: Temporary methods to help buliding .NET 2.x

2005-07-12  Miguel de Icaza  <[email protected]>

	* Unit.cs: If the units are pixels, then truncate the value. 

2005-07-07  Miguel de Icaza  <[email protected]>

	* Xml.cs: New implementation.  R00lz.

2005-07-07  Miguel de Icaza  <[email protected]>

	* Unit.cs: Add TypeConverter, so that web_panel.aspx works again.

	* UnitConverter.cs: Add new file, learned from the
	System.Drawing.ColorConverter.

2005-07-06  Miguel de Icaza  <[email protected]>

	* FontUnit.cs: New file.

	* Unit.cs: New file. 

	Added support for null and empty string constructors.

2005-07-05  Miguel de Icaza  <[email protected]>

	* Label.cs: First control.

2005-08-09  Miguel de Icaza  <[email protected]>

	* WebServiceCompiler.cs: Use the new DynamicDir method.

	* BaseCompiler.cs: Use the DynamicBase property as a hint, but
	since this value is null most of the time, compute the real value.

	Added Bonus: if the directory has some kind of permission problem,
	try a different directory name.

2005-07-13  Miguel de Icaza  <[email protected]>

	* AspGenerator.cs (AspGenerator.CheckLanguage): Use
	BaseParser.Context for the context. 

svn path=/trunk/mcs/; revision=48918
2005-08-26 22:25:10 +00:00
Miguel de Icaza 4c004f75ed Remove
svn path=/trunk/mcs/; revision=48909
2005-08-26 20:38:24 +00:00
Duncan Mak d1c09fcc67 Add licensing info
svn path=/trunk/mcs/; revision=30345
2004-06-24 20:59:43 +00:00
Gonzalo Paniagua Javier f706238420 2004-03-18 Gonzalo Paniagua Javier <[email protected]>
* SimpleWorkerRequest.cs: patch from Aleksey Demakov that fixes
	MapPath when the virtual directory is the root virtual directory.

svn path=/trunk/mcs/; revision=24298
2004-03-18 22:06:21 +00:00
Andreas N e5c18812d6 2004-01-11 Andreas Nahr <[email protected]>
* SimpleWorkerRequest.cs: Added missing attribute
	* IISAPIRuntime.cs: Added attributes, fixed signature
	* IAppDomainFactory.cs: Added attributes, fixed signature

svn path=/trunk/mcs/; revision=21937
2004-01-11 13:47:20 +00:00
Gonzalo Paniagua Javier e3abb2442d 2003-08-29 Gonzalo Paniagua Javier <[email protected]>
* System.Web.dll.sources: added ICalls.cs.
	* System.Web.Hosting/ApplicationHost.cs: set hostingInstallDir.
	* System.Web.Hosting/SimpleWorkerRequest.cs: implemented a couple of
	properties.

svn path=/trunk/mcs/; revision=17719
2003-08-29 04:48:42 +00:00
Gonzalo Paniagua Javier 26fe2a737e 2003-08-29 Gonzalo Paniagua Javier <[email protected]>
* SimpleWorkerRequest.cs: fixed GetFilePathTranslated and added a
	paranoid condition to ExtractPathInfo.

svn path=/trunk/mcs/; revision=17712
2003-08-29 00:09:08 +00:00
Gonzalo Paniagua Javier e569aea4ab Ugh. Applied the wrong patch. Thanks again, Eric
svn path=/trunk/mcs/; revision=16034
2003-07-08 08:56:30 +00:00
Gonzalo Paniagua Javier 99a4fbfc0d 2003-06-25 Eric Lindvall <[email protected]>
* SimpleWorkerRequest.cs:
		-adds PATH_INFO support
		- updates GetFilePathTranslated() to make use of Path.Combine()
		- gets rid of the null check in GetPathInfo() (we're setting
		_PathInfo to String.Empty now)
		- fixed CreatePath() so that it doesn't return String.Empty if
		  the _AppVirtualPath is not "/" (to match MS runtime -- does
		  anyone know why it was returning String.Empty?)

svn path=/trunk/mcs/; revision=15758
2003-06-30 15:17:27 +00:00
Gonzalo Paniagua Javier a95e5d1b25 2003-02-04 Tim Haynes <[email protected]>
* System.Web/HttpApplicationFactory.cs: fixed HttpRuntime.Close() to
	decrement instance counter.

	* System.Web.Hosting/SimpleWorkerRequest.cs: changed the initialised
	values of _App{Install,Virtual}Path variables

svn path=/trunk/mcs/; revision=11212
2003-02-04 17:05:45 +00:00
Gonzalo Paniagua Javier f2e90236bb 2002-09-28 Gonzalo Paniagua Javier <[email protected]>
* list: added PageHandlerFactory.

	* System.Web/HttpApplication.cs:
	* System.Web/HttpApplicationFactory.cs:
	* System.Web/HttpRequest.cs:
	* System.Web/HttpRuntime.cs:
	* System.Web.Compilation/AspElements.cs:
	* System.Web.Compilation/AspGenerator.cs:
	* System.Web.Compilation/AspParser.cs:
	* System.Web.Compilation/PageCompiler.cs:
	* System.Web.Compilation/TemplateFactory.cs: Modified file.
	* System.Web.Configuration/HttpCapabilitiesBase.cs:
	* System.Web.Hosting/SimpleWorkerRequest.cs:
	* System.Web.UI/PageHandlerFactory.cs:
	* System.Web.UI/PageParser.cs:
	* System.Web.UI/TemplateControlParser.cs: we are now able to compile
	pages and use HttpApplication, HttpRuntime and SimpleWorkerRequest.

svn path=/trunk/mcs/; revision=7880
2002-09-28 07:44:14 +00:00
Gonzalo Paniagua Javier ee5cee70b6 2002-09-26 Gonzalo Paniagua Javier <[email protected]>
* ApplicationHost.cs:
	* SimpleWorkerRequest.cs: workaround for bug #31245.

svn path=/trunk/mcs/; revision=7838
2002-09-26 18:01:06 +00:00
Gonzalo Paniagua Javier 8f0e2b6836 2002-08-05 Gonzalo Paniagua Javier <[email protected]>
* AppDomainFactory.cs: implemented.
	* ApplicationHost.cs: implemented.
	* SimpleWorkerRequest.cs: a few little fixes and reformatted. It's now
	fully implemented.

svn path=/trunk/mcs/; revision=6429
2002-08-05 15:33:59 +00:00
Patrik Torstensson 44f6e8a331 2002-04-10 Patrik Torstensson <[email protected]>
* ApplicationHost.cs: Test implementation to support testing.
        * SimpleWorkerRequest.cs: Rewrite and a almost full implementation.

svn path=/trunk/mcs/; revision=3733
2002-04-10 08:42:30 +00:00
Bob Smith c6154f2470 More implementation/stubbing.
svn path=/trunk/mcs/; revision=686
2001-08-30 20:41:15 +00:00