[Mono-bugs] [Bug 60742][Nor] New - DataSet Xml Schema Inference bug on MONO

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 25 Jun 2004 07:39:33 -0400 (EDT)


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 davidandrewtaylor@hotmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=60742

--- shadow/60742	2004-06-25 07:39:33.000000000 -0400
+++ shadow/60742.tmp.7592	2004-06-25 07:39:33.000000000 -0400
@@ -0,0 +1,63 @@
+Bug#: 60742
+Product: Mono: Class Libraries
+Version: unspecified
+OS: Red Hat 9.0
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Data
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: davidandrewtaylor@hotmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: DataSet Xml Schema Inference bug on MONO
+
+Description of Problem:
+(Note: I tested this with the latest build of MONO from CVS.)
+
+MONO's DataSet has always been reasonably flaky when it comes to loading 
+complex XML documents and using the schema inference.  I realize the 
+DataSet is not intended to handle arbitrary XML documents; but the MS.NET 
+implementation handles many with obvious limits like not having the same 
+element name appear underneath different nodes (because both cannot be 
+mapped to the same table).  So whilst the DataSet is not designed to 
+handle arbitrary XML document; we should be aiming for compatibility with 
+Microsoft's implementation.
+
+I strongly suggest the MONO team take 10 random XML documents and try 
+loading them on MS.NET using "dataSet.ReadXml(fileName);" and then try 
+the same thing on MONO.  If 60 of them successfully load on MS.NET but 
+only 30 on MONO, you will have some great test cases to fix the MONO 
+dataset implementation.
+
+I am attaching a single XML file showing 1 bug (I just used one of my 
+web.config files that loaded on MS.NET but not on MONO).  But I urge you 
+to try at least 100 random XML documents to really debug this feature on 
+MONO.
+
+Steps to reproduce the problem:
+Compile my test.cs file and run it.
+
+Actual Results:
+Unhandled Exception: System.Data.DataException: Child column was not 
+found :location_Id in <0x01206> 
+System.Data.XmlDataInferenceLoader:ReadXml () in <0x00037> 
+System.Data.XmlDataInferenceLoader:Infer 
+(System.Data.DataSet,System.Xml.XmlDocument,System.Data.XmlReadMode,string
+[])
+in <0x00015> System.Data.DataSet:InferXmlSchema 
+(System.Xml.XmlDocument,string[]) in <0x00385> 
+System.Data.DataSet:ReadXml (System.Xml.XmlReader,System.Data.XmlReadMode)
+in <0x00017> System.Data.DataSet:ReadXml (System.Xml.XmlReader) in 
+<0x00046> System.Data.DataSet:ReadXml (string) in <0x00036> test:Main ()
+
+Expected Results:
+It should load correctly and round-trip as it does on MS.NET dataset 
+implementation.
+
+How often does this happen? 
+All the time on MONO.