[Mono-bugs] [Bug 79230][Nor] New - CacheDuration has no impact on webmethod result
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Aug 31 12:02:28 EDT 2006
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 glen.ford at spinvox.com.
http://bugzilla.ximian.com/show_bug.cgi?id=79230
--- shadow/79230 2006-08-31 12:02:28.000000000 -0400
+++ shadow/79230.tmp.790 2006-08-31 12:02:28.000000000 -0400
@@ -0,0 +1,78 @@
+Bug#: 79230
+Product: Mono: Tools
+Version: 1.0
+OS: other
+OS Details: SuSe 10.0
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: XSP
+AssignedTo: gonzalo at ximian.com
+ReportedBy: glen.ford at spinvox.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: CacheDuration has no impact on webmethod result
+
+Description of Problem:
+
+Using [WebMethod(CacheDuration=n)] does not appear to work. It does not
+appear to cache at all. I have tried the following with both xsp and
+through Apache/mod-mono-server, using the test forms and also using wget
+and using telnet handcrafting requests.
+
+
+Steps to reproduce the problem:
+1. Use the following .asmx code:
+
+<%@ WebService Language="C#" CodeBehind="CacheTest.asmx.cs"
+Class="CacheTest.CacheTest" %>
+<%@ Assembly Name="System.Web.Services" %>
+
+using System;
+using System.Web.Services;
+using System.Web.Services.Protocols;
+
+namespace CacheTest
+{
+ [WebService]
+ [SoapRpcService]
+ public class CacheTest : System.Web.Services.WebService
+ {
+ private static int counter = 0;
+
+ [WebMethod(CacheDuration=60)]
+ public int cacheTestMethod()
+ {
+ return( ++counter );
+ }
+
+ }
+}
+
+
+2. Using the test form the value returned by cacheTestMethod should remain
+constant for 60 seconds. From the first call it should return '1' for
+seconds before incrementing to '2'.
+
+
+Actual Results:
+
+The returned value increments on every call.
+
+
+Expected Results:
+
+The return value should remain constant for periods of 60 seconds
+
+
+How often does this happen?
+
+Always
+
+
+Additional Information:
+
+None.
More information about the mono-bugs
mailing list