[Mono-bugs] [Bug 410125] New: System.Net.Mime ContentType() Throws Exception
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Jul 17 15:48:00 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=410125
Summary: System.Net.Mime ContentType() Throws Exception
Product: Mono: Class Libraries
Version: 1.9.0
Platform: All
OS/Version: Other
Status: NEW
Keywords: MIME
Severity: Normal
Priority: P5 - None
Component: System
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: maz at mgcworks.com
QAContact: mono-bugs at lists.ximian.com
Found By: Development
Description of Problem:
System.Net.Mime.ContentType.ContentType() throws an "Invalid Format" exception
when parsing MIME headers with "multipart" type.
Steps to reproduce the problem:
1. Call contentType with a string such as
multipart/related; type="multipart/alternative";
boundary="=-TTn+gOgQcEloJTi/U6cl"
Actual Results:
Unhandled Exception: System.FormatException: Invalid format.
at System.Net.Mime.ContentType..ctor (System.String contentType) [0x000aa] in
/home/src/mono/mono-1.9.1/mcs/class/System/System.Net.Mime/ContentType.cs:79
This seems to occur with or without the exteraneous "type=" tag in the sample
string.
Expected Results:
String parsed into "multipart/related" and "boundary"
How often does this happen?
Every time.
Additional Information:
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list