<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:40:02 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-1579] SetIdMember call being ignored.</title>
                <link>https://jira.mongodb.org/browse/CSHARP-1579</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;I have code that used to work and has stopped.   The code defines a member of a base class as the &quot;ID&quot; via the usual pattern.&lt;/p&gt;

&lt;p&gt;		BsonClassMap.RegisterClassMap&amp;lt;Message&amp;gt;(cm =&amp;gt;&lt;br/&gt;
		&lt;/p&gt;
{
			cm.AutoMap();
			cm.SetIdMember(cm.GetMemberMap(c =&amp;gt; c.UniqueId));
		}
&lt;p&gt;);&lt;/p&gt;

&lt;p&gt;where UniqueID is a GUID.&lt;/p&gt;

&lt;p&gt;I Dropped the collection containing this type ( and its decendents) and reinstered an instance of a derived class.&lt;/p&gt;

&lt;p&gt;The database after the insert has an _id with an ObjectId in it !!   A subsequent deserialize fails trying to make objectid into guid.&lt;/p&gt;

&lt;p&gt;Any thoughts on what I could have done to break this.    &lt;/p&gt;</description>
                <environment></environment>
        <key id="268174">CSHARP-1579</key>
            <summary>SetIdMember call being ignored.</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="-1">Unassigned</assignee>
                                    <reporter username="weidson">William Eidson</reporter>
                        <labels>
                    </labels>
                <created>Thu, 25 Feb 2016 23:03:49 +0000</created>
                <updated>Fri, 26 Feb 2016 15:07:56 +0000</updated>
                            <resolved>Fri, 26 Feb 2016 15:07:56 +0000</resolved>
                                    <version>2.2.3</version>
                                                    <component>BSON</component>
                    <component>Serialization</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="1185852" author="craiggwilson" created="Fri, 26 Feb 2016 15:07:56 +0000"  >&lt;p&gt;Thanks for the update William.&lt;/p&gt;</comment>
                            <comment id="1185384" author="weidson" created="Fri, 26 Feb 2016 00:54:28 +0000"  >&lt;p&gt;Ok, this is a big never mind.   The BsonClassMapping is done in a static ctor.   Someone removed the inital call to a static on that class which prevented the ctor from ever running!   &lt;/p&gt;
</comment>
                            <comment id="1185273" author="weidson" created="Thu, 25 Feb 2016 23:05:00 +0000"  >&lt;p&gt;additionally the db contains both an _id field and the UniqueID field within the _t of the object&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|hsisfj:</customfieldvalue>

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