[Mono-bugs] [Bug 357565] New: No immediate app shutdown when "app_offline.htm" is created

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jan 31 06:48:04 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=357565


           Summary: No immediate app shutdown when "app_offline.htm" is
                    created
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: juraj at hotfeet.ch
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


According to http://weblogs.asp.net/scottgu/archive/2005/10/06/426755.aspx,
placing a file "app_offline.htm" into a webapp's directory will shutdown the
app (and serve this file for every request). Mono delays the shutdown until the
file is removed.

Test case:
==========

- create empty index.aspx
- create global.asax containing:

<% @Application Language="C#" %>
<script runat='server'>
void Application_Start(object o, EventArgs e) {
        Console.WriteLine("app start.");
}

void Application_End(object o, EventArgs e) {
        Console.WriteLine("app end.");
}
</script>

- start xsp2
- request http://localhost:8080/
=> "app start." message on console

- echo "Website offline" >app_offline.htm"
=> no message, no app shutdown!

(Any changes to the application while there is a "app_offline.htm" file go
unnoticed...)

- rm app_offline.htm
=> "app end."


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list