[Mono-bugs] [Bug 52541][Wis] New - IndexOutOfRangeException in ExpiresBuckets.Add()

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 24 Dec 2003 09:15:20 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by mono-bug@jerryweb.info.

http://bugzilla.ximian.com/show_bug.cgi?id=52541

--- shadow/52541	2003-12-24 09:15:20.000000000 -0500
+++ shadow/52541.tmp.19558	2003-12-24 09:15:20.000000000 -0500
@@ -0,0 +1,69 @@
+Bug#: 52541
+Product: Mono/Class Libraries
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details: Gentoo 1.4
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: mono-bug@jerryweb.info               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: IndexOutOfRangeException in ExpiresBuckets.Add()
+
+Description of Problem:
+IndexOutOfRangeException in ExpiresBuckets.Add() (in current (2003-12-23)
+CVS version of MCS)
+
+Steps to reproduce the problem:
+1. Execute this ASP.NET page:
+===================================================
+<%@ Page language="C#" %>
+<%
+for(int i = 0; i < 20;i++)
+{
+        System.Web.HttpRuntime.Cache.Add(
+                "test",
+                "abc",
+                null,
+                DateTime.Now.Date.AddSeconds(60),
+                TimeSpan.Zero,
+                CacheItemPriority.Default,
+                null
+        );
+        System.Web.HttpRuntime.Cache.Remove("test");
+}
+%>
+
+OK
+===================================================
+
+Actual Results:
+System.IndexOutOfRangeException: Array index is out of range
+in <0x0011d> System.Web.Caching.ExpiresBucket:Add
+(System.Web.Caching.CacheEntry)
+in <0x00120> System.Web.Caching.CacheExpires:Add
+(System.Web.Caching.CacheEntry)
+in <0x001db> System.Web.Caching.Cache:Add
+(string,object,System.Web.Caching.CacheDependency,System.DateTime,System.TimeSpan,System.Web.Caching.CacheItemPriority,System.Web.Caching.CacheItemRemovedCallback,bool)
+in <0x00045> System.Web.Caching.Cache:Add
+(string,object,System.Web.Caching.CacheDependency,System.DateTime,System.TimeSpan,System.Web.Caching.CacheItemPriority,System.Web.Caching.CacheItemRemovedCallback)
+in <0x000f5> ASP.test_aspx:__RenderTree
+(System.Web.UI.HtmlTextWriter,System.Web.UI.Control)
+in <0x0005a> (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void_HtmlTextWriter_Control
+(System.Web.UI.HtmlTextWriter,System.Web.UI.Control)
+in <0x00049> System.Web.UI.Control:RenderChildren
+(System.Web.UI.HtmlTextWriter)
+in <0x00011> System.Web.UI.Control:Render (System.Web.UI.HtmlTextWriter)
+in <0x0001c> System.Web.UI.Control:RenderControl (System.Web.UI.HtmlTextWriter)
+in <0x0041f> System.Web.UI.Page:InternalProcessRequest ()
+in <0x0008f> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
+in <0x00191> .ExecuteHandlerState:Execute ()
+in <0x0007d> .StateMachine:ExecuteState
+(System.Web.HttpApplication/IStateHandler,bool&)