[Mono-bugs] [Bug 422475] New: DataSet serialization error with all NULLs table rows

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Sep 3 06:01:02 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=422475


           Summary: DataSet serialization error with all NULLs table rows
           Product: Mono: Class Libraries
           Version: 2.0
          Platform: i686
        OS/Version: Windows Vista
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Sys.Data
        AssignedTo: bnc-blr-team-mono at forge.provo.novell.com
        ReportedBy: migelU at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Development


Hello.
DataSet diffgram serialization missed row ID when serialize DataTable row with
all NULL values. 
So MS .NET DataSet can not deserialize data getted from the MONO server.

here is example of the serialized diffgram:

<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
        <NewDataSet>
                <Data5_x0040_Unit5 diffgr:id="Data5 at Unit51" msdata:rowOrder="0"
diffgr:hasChanges="modified">
                        <ColString>Test catalog</ColString>
                        <pk>TestCaseInterface.IBizClass5, TestCaseInterface,
Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null:80065781-b552-44c6-b9ce-3dc6d13a5228:13c73feb-d4ec-46a3-ac32-61d70a529ebe</pk>
                </Data5_x0040_Unit5>
                <Data5_x0040_Unit5 diffgr:id="Data5 at Unit52" msdata:rowOrder="1"
diffgr:hasChanges="modified">
                        <pk>TestCaseInterface.IBizClass5, TestCaseInterface,
Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null:80065781-b552-44c6-b9ce-3dc6d13a5228:80065781-b552-44c6-b9ce-3dc6d13a5228</pk>
                </Data5_x0040_Unit5>
        </NewDataSet>
        <diffgr:before>
                <Data5_x0040_Unit5 diffgr:id="Data5 at Unit51"
msdata:rowOrder="0">
                        <ColString>Test catalog</ColString>
                </Data5_x0040_Unit5>
                <Data5_x0040_Unit5 />
        </diffgr:before>
</diffgr:diffgram>

note diffgr:before/Data5_x0040_Unit5 element

for proper deserialization it must be like this
<Data5_x0040_Unit5 diffgr:id="Data5 at Unit52" msdata:rowOrder="1" />


-- 
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