[Mono-bugs] [Bug 349564] New: HttpCookieCollection. Get does not create cookie if missing

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Dec 18 11:58:57 EST 2007


           Summary: HttpCookieCollection.Get does not create cookie if
           Product: Mono: Class Libraries
           Version: SVN
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: luca at skakkinostri.it
         QAContact: mono-bugs at ximian.com
          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

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.

More information about the mono-bugs mailing list