<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:36:20 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CSHARP-270] Provide usable error messages.</title>
                <link>https://jira.mongodb.org/browse/CSHARP-270</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;MongoDB.Bson.Serialization.BsonClassMapSerializer.Deserialize: generates messages like this: Unexpected element &quot;&lt;/p&gt;
{0}&quot;.&lt;br/&gt;
&lt;br/&gt;
What class are we deserializing? Was it unexpected on the class, or in the bson and not in the class (was it renamed by an attribute, but has a field &amp;#8211; was it saved from an old version of the class)? What collection did this come from? What is the _id of this document?&lt;br/&gt;
&lt;br/&gt;
There are other error messages in the same file like, &quot;Anonymous class cannot be deserialized.&quot;,&quot;Value class {0}
&lt;p&gt; cannot be deserialized.&quot;, &quot;Required element &apos;&lt;/p&gt;
{0}
&lt;p&gt;&apos; is missing.&quot;, of the same type.&lt;/p&gt;

&lt;p&gt;Please provide some context for the error so that users can find their problems, and fix them.&lt;/p&gt;</description>
                <environment></environment>
        <key id="19720">CSHARP-270</key>
            <summary>Provide usable error messages.</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="robert@mongodb.com">Robert Stam</assignee>
                                    <reporter username="scotthernandez">Scott Hernandez</reporter>
                        <labels>
                    </labels>
                <created>Mon, 18 Jul 2011 23:56:00 +0000</created>
                <updated>Thu, 2 Apr 2015 18:27:34 +0000</updated>
                            <resolved>Thu, 21 Jul 2011 02:39:21 +0000</resolved>
                                                    <fixVersion>1.2</fixVersion>
                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="43705" author="rstam" created="Thu, 21 Jul 2011 02:39:21 +0000"  >&lt;p&gt;Added a bit more information to the error messages as appropriate.&lt;/p&gt;</comment>
                            <comment id="42980" author="rstam" created="Tue, 19 Jul 2011 04:06:23 +0000"  >&lt;p&gt;Because the BSON library is separate from the MongoDB driver library the name of the collection is not known at this level.&lt;/p&gt;

&lt;p&gt;Some of the messages already contain all the available information:&lt;/p&gt;

&lt;p&gt;&quot;Value class &lt;/p&gt;
{0} cannot be deserialized.&quot;&lt;br/&gt;
&quot;Anonymous class cannot be deserialized.&quot;&lt;br/&gt;
&quot;SetDocumentId cannot be used with value type &apos;{0}
&lt;p&gt;&apos;.&quot;&lt;br/&gt;
&quot;Class &lt;/p&gt;
{0} has no Id member.&quot;&lt;br/&gt;
&quot;BsonClassMapSerializer cannot be used with type {0}
&lt;p&gt;.&quot;&lt;/p&gt;

&lt;p&gt;For all of these messages there is no additional information other than the class name (and an anonymous class doesn&apos;t even have that).&lt;/p&gt;

&lt;p&gt;I will add the requested information (class name, property name, element name, _id value) as appropriate to the rest of the error messages in this file.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrh8pj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>14210</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>