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: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs