https://bugzilla.novell.com/show_bug.cgi?id=349564
Summary: HttpCookieCollection.Get does not create cookie if
missing
Product: Mono: Class Libraries
Version: SVN
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.Web
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
QAContact: [EMAIL PROTECTED]
Found By: Development
>From the SVN source for System.Web.HttpCookieCollection:
public HttpCookie Get (string name)
{
return (HttpCookie)BaseGet (name);
}
However, at http://msdn2.microsoft.com/en-us/library/ezy11xy2.aspx, in the
Remarks section, it's written:
"If the named cookie does not exist, this method creates a new cookie with that
name."
Thus, Mono's version is not working correctly since it returns null if the
requested cookie does not exist.
Although a workaround exists, it's trivial to fix this bug so I'm expecting to
see it implemented on the next Mono version.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs