[Mono-bugs] [Bug 52041][Nor] New - Xml enum deserilaization is not verified correctly.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 11 Dec 2003 07:46:06 -0500 (EST)

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by erezl@mainsoft.com.


--- shadow/52041	2003-12-11 07:46:06.000000000 -0500
+++ shadow/52041.tmp.14979	2003-12-11 07:46:06.000000000 -0500
@@ -0,0 +1,43 @@
+Bug#: 52041
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: System.XML
+AssignedTo: lluis@ximian.com                            
+ReportedBy: erezl@mainsoft.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Xml enum deserilaization is not verified correctly.
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+During Deserialization of enums, the input value is verified against the 
+enums underlying type and not against the actaul enum values.
+Steps to reproduce the problem:
+1. Build the attached cs file into an executable. (e.g: Test.exe).
+2. Save the attached XML file to the directory Test.exe.
+3. Run Test.exe .
+Actual Results:
+1). Execution is compleated successfuly.
+2). The input xml data is deserialized into an ETest object.
+Expected Results:
+1). Deserialization of xml data should fail, '1' is not a valid ETest 
+2). BTW deserialization of <ETest>200</ETest> will succeed too, althogh 
+200 surely does not have a matching ETest value.
+How often does this happen? 
+Additional Information: