[Mono] / trunk / mcs / class / System.Web / System.Web / StaticFileHandler.cs Repository:
ViewVC logotype

Log of /trunk/mcs/class/System.Web/System.Web/StaticFileHandler.cs

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 99479 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 31 22:03:33 2008 UTC (7 months, 3 weeks ago) by mhabersack
File length: 3955 byte(s)
Diff to previous 95135
2008-03-31  Marek Habersack  <mhabersack@novell.com>

	* StaticFileHandler.cs: added code to use custom
	VirtualPathProvider, if present, to serve files from virtual
	storage.

	* HttpResponse.cs: added two internal TransmitFile overloads which
	take a VirtualFile as a parameter.

2008-04-01  Marek Habersack  <mhabersack@novell.com>

	* HostingEnvironment.cs: initialize custom VPP on
	registration.
	Added an internal boolena property to signal if we're using a
	custom VPP or not (HaveCustomVPP)


Revision 95135 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 7 13:18:35 2008 UTC (9 months, 1 week ago) by mhabersack
File length: 3447 byte(s)
Diff to previous 88105
2008-02-07  Marek Habersack  <mhabersack@novell.com>

	* BuildManager.cs: check for virtualPath existence before
	attempting to compile the assemblies. Fixes bug #359465
2008-02-07  Marek Habersack  <mhabersack@novell.com>

	* HttpException.cs: moved several strings to constants, for easier
	maintenance. 
	Added 3 new constructors which let the caller to set the exception
	description.
	The Description property is now settable.
	The stack trace at the bottom of the file is written after the
	terminating </html>, inside a HTML comment. Format changed to
	match MS.NET.
	Error 404 is handled in a special way, to match the output with
	MS.NET.

	* HttpContext.cs, StaticFileHandler.cs, HttpApplication.cs: use
	the new HttpException constructor for 404.
2008-02-07  Marek Habersack  <mhabersack@novell.com>

	* PageHandlerFactory.cs: call PageParser.GetCompiledPageInstance
	only - that method calls the appropriate APIs for 1.1 and 2.0
	profiles.

Revision 88105 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 24 18:07:12 2007 UTC (12 months, 4 weeks ago) by gert
File length: 3429 byte(s)
Diff to previous 87715
* StaticFileHandler.cs: Modified 404 message to match MS.

Revision 87715 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 17 21:27:58 2007 UTC (13 months ago) by mhabersack
File length: 3425 byte(s)
Diff to previous 73828
2007-10-17  Marek Habersack  <mhabersack@novell.com>

	* StaticFileHandler.cs: fixed an bug with Mono running under
	Windows operating systems which caused XSP to return source of the
	requested page if the file name used in the request ended in any
	number of spaces or dots. The problem lies in the way the Win32
	subsystem treats such file names - it ignores the trailing
	characters and allows the calling application to open a file on
	disk even when its name does not contain the trailing characters
	used in the open request. Such file names may be supported by the
	underlying filesystem (e.g. NTFS) but they are not supported by
	the I/O Win32 subsystem. The security issue is reported in
	CVE security report CVE-2007-5473. Fixes bug #332401

Revision 73828 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 6 17:21:24 2007 UTC (20 months, 2 weeks ago) by krasnov
File length: 2938 byte(s)
Diff to previous 71399
* StaticFileHandler.cs: fixed ProcessRequest TARGET_JVM path, if_modified_since fixed in WAR mode

Revision 71399 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jan 20 22:42:04 2007 UTC (22 months ago) by miguel
File length: 2812 byte(s)
Diff to previous 55250
        * SiteMapNode.cs (GetExplicitResourceString): implement.

        * HttpContext.cs (GetGlobalResourceObject): remove unused variable.

        * StaticFileHandler.cs (ProcessRequest): remove unused variable.

        * HttpApplication.cs (ProcessError): Remove unused variable.

2007-01-20  Miguel de Icaza  <miguel@novell.com>

        * ClientBuildManager.cs: Remove unused variable (this could be a
        real problem, we never use the appPhysicalTargetDir)

        * AssemblyBuilder.cs: Remove unused field.

        * AppResourceFilesCollection.cs: Remove unused field.

        * TemplateControlCompiler.cs (GetExpressionFromString): Remove
        unused variable.

        * AppResourcesCompiler.cs: Remove unused variable.

        * AppSettingsExpressionBuilder.cs (GetAppSetting): remove unused
        parameter.

        * PageCompiler.cs: Put InternalCreatePageProperty inside the
        NET_2_0 block to eliminate warnings.

2007-01-20  Miguel de Icaza  <miguel@novell.com>

        * HandlerFactoryConfiguration.cs (LoadType): remove unused
        variable.
        (ctor): do not assign parent, we do not use it, keep the code for
        reference.

2007-01-20  Miguel de Icaza  <miguel@novell.com>

        * ApplicationManager.cs: Remove unused variable.
        (ShutdownAll) remove unused variables.

        * ApplicationHost.cs: Protect create_dir lock

2007-01-20  Miguel de Icaza  <miguel@novell.com>

        * SqlRoleProvider.cs: comment out unused code.

        * SqlMembershipProvider.cs: Removed unused variables.
        Remove unused variable.

        * AnonymousIdentificationModule.cs (ClearAnonymousIdentifier):
        remove unused variable.   This might be a real bug.

2007-01-20  Miguel de Icaza  <miguel@novell.com>

        * SessionStateModule.cs: Removed unused variables.

2007-01-20  Miguel de Icaza  <miguel@novell.com>

        * SessionDictionary.cs: Removed unused variable (dirty).

2007-01-20  Miguel de Icaza  <miguel@novell.com>

        * XhtmlTextWriter.cs: comment out unused code.

        * ThemeProvider.cs: comment out unused code.

        * DataSourceView.cs: Comment unused variable.

        * ClientScriptManager.cs: Put the expandoAttributes inside the 2.0
        code

        * Control.cs: Put _templateControl inside the NET_2_0 ifdef

2007-01-20  Miguel de Icaza  <miguel@novell.com>

        * HtmlHead.cs: comment out unused code, in particular metadata is
        commented out because nothing could have triggered its creation.

        * HtmlButton.cs: Move declaration of `csm' inside the 1.1 case.

2007-01-20  Miguel de Icaza  <miguel@novell.com>

        * DataControlFieldCollection.cs (RemoveAt): remove unused
        variable.

        * RoleGroupCollection.cs (OnValidate): Flag as protected, as it
        should not show up.

        * RadioButton.cs (RaisePostDataChangedEvent): This method was not
        used in 1.0, so put the whole method in 2.0

2007-01-20  Miguel de Icaza  <miguel@novell.com>

        * WebPart.cs: Remove

        * PersonalizableAttribute.cs: Remove extra API that was wrong as well.

2006-11-28  Miguel de Icaza  <miguel@novell.com>

        * WebPart.cs:

2007-01-20  Miguel de Icaza  <miguel@novell.com>

        * FileUtils.cs (CreateTemporaryFile): Remove unused variable.



Revision 55250 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 9 18:01:59 2006 UTC (2 years, 10 months ago) by krasnov
File length: 2814 byte(s)
Diff to previous 49239
* CapabilitiesLoader.cs: Merged TARGET_JVM parts in LoadFile from /main/9
* HttpException.cs: Merged TARGET_JVM parts in GetHtmlizedErrorMessage from /main/13
* HttpRequest.cs: Merged TARGET_JVM parts in MapPath from /main/29
* HttpResponse.cs: Merged TARGET_JVM parts in End() from /main/30
* StaticFileHandler.cs: Merged TARGET_JVM parts in ProcessRequest from /main/7

Revision 49239 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 1 02:05:41 2005 UTC (3 years, 2 months ago) by gonzalo
File length: 2549 byte(s)
Diff to previous 49053
2005-08-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* HttpResponse.cs: if the request method is HEAD, that's equivalent to
	SuppressContent. Added an internal TransmitFile that allows setting the
	final_flush flag.
	* StaticFileHandler.cs: use the new internal TransmitFile and remove
	generation of Content-Length header, as now it's computed correctly.
	* HttpApplication.cs: remove debugging stuff.
	* HttpResponseStream.cs: suppress_content is checked in HttpResponse.


Revision 49053 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 29 02:56:04 2005 UTC (3 years, 2 months ago) by gonzalo
File length: 2640 byte(s)
Diff to previous 49046
2005-08-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* HttpResponse.cs: don't duplicate the 'charset=' and don't send a
	charset for unknown MIME types.
	* StaticFileHandler.cs: set the Content-Length header here.
	* HttpRequest.cs: prevent nullrefs when we have no 'charset='.


Revision 49046 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 28 23:51:15 2005 UTC (3 years, 2 months ago) by gonzalo
File length: 2515 byte(s)
Diff to previous 48990
2005-08-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* StaticFileHandler.cs: use TransmitFile instead of WriteFile. This way
	xsp will use sendfile().


Revision 48990 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Aug 27 21:03:38 2005 UTC (3 years, 2 months ago) by benm
File length: 2556 byte(s)
Diff to previous 48944
round one

Revision 48944 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 26 22:58:48 2005 UTC (3 years, 2 months ago) by miguel
File length: 2556 byte(s)
Diff to previous 44234
Commit of changes to core files, on behalf of the team

Revision 44234 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 9 01:34:01 2005 UTC (3 years, 6 months ago) by gonzalo
File length: 2510 byte(s)
Diff to previous 30345
2005-05-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* HttpResponse.cs: we had 2 variables to track client connection status.
	Use only one. Increase the buffer size to 28KB when writing from a file.

	* StaticFileHandler.cs: set the Content-Type before writing the file.
	This allows flushing before all the content is written.

	* HttpApplication.cs: use the variable instead of the property when
	setting the Principal for the current process.


Revision 30345 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 24 20:59:43 2004 UTC (4 years, 4 months ago) by duncan
File length: 2519 byte(s)
Diff to previous 25814
Add licensing info

Revision 25814 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 22 03:07:54 2004 UTC (4 years, 7 months ago) by gonzalo
File length: 1435 byte(s)
Diff to previous 20695
Warnings

Revision 20695 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 2 16:22:05 2003 UTC (4 years, 11 months ago) by gonzalo
File length: 1437 byte(s)
Diff to previous 17525
2003-12-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* System.Web/HttpApplication.cs: handle FileNotFound and
	DirectoryNotFound exceptions when creating the handler to generate
	a better error page.

	* System.Web/HttpException.cs: display the http_code if available.
	Changed all \n by \r\n to make the hidden stack trace readable.

	* System.Web/StaticFileHandler.cs: don't send the real path in th
	eerror.

	* System.Web.Compilation/AspGenerator.cs: basic checking of ID validity.
	Throw a ParseException when mixing languages.

	* System.Web.UI/TemplateParser.cs: basic check for 'classname' attribute
	and added patch by pcgod@gmx.net for bug #51568, which fixes automatic
	class names for pages starting with a number.

Revision 17525 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 22 17:00:27 2003 UTC (5 years, 3 months ago) by gonzalo
File length: 1432 byte(s)
Diff to previous 17387
2003-08-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* HttpRequest.cs: quick way of checking that the path is within the
	root for the application. Thanks to Johannes for reporting.

	* HttpRuntime.cs: use the status code from teh exception when it'ss a
	HttpException.

	* StaticFileHandler.cs: forbidden is 403.

Revision 17387 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 19 01:38:49 2003 UTC (5 years, 3 months ago) by gonzalo
File length: 1432 byte(s)
Diff to previous 9583
2003-08-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* HttpResponse.cs: flush headers when the body length is 0.
	* StaticFileHandler.cs: added If-Modified-Since handling patch slightly
	modified from the original by Piers Haken <piersh@friskit.com>.

Revision 9583 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 12 03:20:19 2002 UTC (5 years, 11 months ago) by gonzalo
File length: 994 byte(s)
Diff to previous 7934
2002-12-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* list: Modified file.
	* System.Web/HttpRuntime.cs: avoid nulls and exception when getting
	resource format strings.

	* System.Web/StaticFileHandler.cs: added file name to error message.
	* System.Web.Compilation/AspElements.cs: new method Tag.GetElements
	used to parse the inner contents of a tag looking for data binding or
	code render tags.

	New property HtmlControlTag.ParseChildren allows
	differentiation of a couple of HtmlControls that has children as
	properties (namely HtmlTable and HtmlTableRow).

	* System.Web.Compilation/AspGenerator.cs: fixed container semantics to
	match BindingContainer one. Implemented Inherits attribute for page and
	control.

	Support HtmlControls that has ChildrenAsProperties.

	Generate code for data binding functions that matches the semantic of
	Container.

	Handle data bound and code render attribute values.

	Set proper value return for TemplateSourceDirectory. Should be relative
	to appPath.

	* System.Web.Compilation/BaseCompiler.cs: moved CompilerOptions and
	References handling here.

	* System.Web.Compilation/CachingCompiler.cs: copy result of compilation.

	* System.Web.Compilation/CompilationException.cs: simple ToString ()
	implementation.

	* System.Web.Compilation/CompilationResult.cs: implemented CopyFrom and
	ToString.

	* System.Web.Compilation/GlobalAsaxCompiler.cs:
	* System.Web.Compilation/PageCompiler.cs:
	* System.Web.Compilation/UserControlCompiler.cs: removed
	CompilerOptions as it's now handled in the base class. Get all the
	types in the generated assembly and look for one that derives from
	the correct Type.

	* System.Web.UI/Control.cs: implemented TemplateSourceDirectory.
	* System.Web.UI/TemplateControl.cs: implemented LoadControl and
	LoadTemplate.

	* System.Web.Util/PathUtil.cs: some path handling methods that are not
	available in Path.

Revision 7934 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 2 04:07:09 2002 UTC (6 years, 1 month ago) by gonzalo
File length: 975 byte(s)
Diff to previous 7897
2002-10-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* HttpMethodNotAllowedHandler.cs:
	* HttpRuntime.cs:
	* StaticFileHandler.cs: Modified file.

	* HttpUtility.cs: implemented all missing methods.

Revision 7897 - (view) (download) (as text) (annotate) - [select for diffs]
Added Mon Sep 30 23:38:44 2002 UTC (6 years, 1 month ago) by gonzalo
File length: 983 byte(s)
2002-09-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* list: added new files in System.Web.

	* System.Web/HttpApplication.cs: use the static file handler.
	* System.Web/HttpForbiddenHandler.cs: handler to forbid access.
	* System.Web/HttpMethodNotAllowedHandler.cs: handler for method not
	allowed.

	* System.Web/HttpUtility.cs: finished all UrlDecode methods.
	* System.Web/MimeTypes.cs: map from file extension to MIME type.
	* System.Web/StaticFileHandler.cs: serves static files

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

Admin e-mail address
ViewVC Help
Powered by ViewVC 1.0.5