[Mono-bugs] [Bug 677056] New: SessionStateStoreProviderBase problem

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Mar 4 11:53:54 EST 2011


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

https://bugzilla.novell.com/show_bug.cgi?id=677056#c0


           Summary: SessionStateStoreProviderBase  problem
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.10.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: r_e_kalverboer at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows NT 5.1; rv:2.0b12) Gecko/20100101
Firefox/4.0b12

Mono behaves different as .NET with this example.

Reproducible: Always

Steps to Reproduce:
1. Implement SessionStateStoreProviderBase in custom store provider class .
2. Startup website
Actual Results:  
Argument cannot be null.
Parameter name: id
Description: HTTP 500. Error processing request.
Stack Trace: System.ArgumentNullException: Argument cannot be null.

Expected Results:  
Server Error in '/' Application.
The method or operation is not implemented.
Description:
 An unhandled exception occurred during the execution of the current web
 request. Please review the stack trace for more information about the 
error and where it originated in the code.
Exception Details: System.NotImplementedException: The method or operation is
not implemented.

Example code :


public sealed class RedisSessionStateStore : SessionStateStoreProviderBase {
    public override bool SetItemExpireCallback (SessionStateItemExpireCallback
expireCallback){    return false;}
    public override void InitializeRequest (HttpContext context){}
    public override void EndRequest (HttpContext context){    }

 public override SessionStateStoreData GetItem(HttpContext context, 
string id, out bool locked, out TimeSpan lockAge, out object lockId, out
 SessionStateActions actionFlags){throw new 
System.NotImplementedException();}

    public 
override SessionStateStoreData GetItemExclusive(HttpContext context, 
string id, out bool locked, out TimeSpan lockAge, out object lockId, out
 SessionStateActions actionFlags){
        locked = false;
        lockAge = TimeSpan.Zero;
        lockId = 1;
        actionFlags = 0;

     return new SessionStateStoreData(new SessionStateItemCollection(), 
SessionStateUtility.GetSessionStaticObjects(context), 1200);     
    }


 public override void ReleaseItemExclusive (HttpContext context, string 
id, object lockId){throw new System.NotImplementedException();}

public override void SetAndReleaseItemExclusive (HttpContext context, 
string id, SessionStateStoreData item, object lockId, bool 
newItem){throw new System.NotImplementedException();}
    public 
override void RemoveItem (HttpContext context, string id, object lockId,
 SessionStateStoreData item){throw new 
System.NotImplementedException();}
    public override void ResetItemTimeout (HttpContext context, string id){   
throw new System.NotImplementedException();}

 public override SessionStateStoreData CreateNewStoreData (HttpContext 
context, int timeout){    throw new System.NotImplementedException();}

 public override void CreateUninitializedItem (HttpContext context, 
string id, int timeout){    throw new 
System.NotImplementedException();}    
    public override void Dispose ()    {throw new
System.NotImplementedException();}

}

-- 
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