<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:46:51 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-3987] He found a bug into our C# drive and he came up with the solution</title>
                <link>https://jira.mongodb.org/browse/CSHARP-3987</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Email from client in Brazil:&#160;&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;mailto:catherina.zingg@mongodb.com&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;@Catherina Zingg Guzman&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.mongodb.org/images/icons/mail_small.gif&quot; height=&quot;12&quot; width=&quot;13&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;&#160;good morning,&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;For context, sending you scenario that we developers in Supermercados BH we work with IMongoQueryable of MongoDB.Drive.Linq and typing our code with Lambda.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;The other partner that we use here are Convention and our conventions is settings of attached file ConfigurationEx.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;When we doing Project/Select of register of database using Typed Class the drive working and use Anonymous Type not working.&lt;/p&gt;

&lt;p&gt;The bug occurs because a field exists in project/selct which does not exist in document.&lt;/p&gt;

&lt;p&gt;When drive analyze the expression it not found the default value of field that not exists in document.&lt;/p&gt;

&lt;p&gt;If the driver found the default value the project/select will be work.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;This happen why Lambda expresstion is calling in MongoDB.Driver.Linq.Linq2Implementation.Processors. SerializerBuilder by method private BsonClassMap BuildClassMap(Type type, ProjectionMapping mapping) and here I compreend that AutoMap of&lt;/p&gt;

&lt;p&gt;BasonClassMap in MongoDB.Bson.Serialization is not calling.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;In the file SerializerBuilder in line 172 it is fix bug and call of AutoMap to drive working in the present scenario .&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Any questions I can do a POC.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1943430">CSHARP-3987</key>
            <summary>He found a bug into our C# drive and he came up with the solution</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="13203">Gone away</resolution>
                                        <assignee username="robert@mongodb.com">Robert Stam</assignee>
                                    <reporter username="catherina.hattingh@mongodb.com">Catherina Hattingh</reporter>
                        <labels>
                    </labels>
                <created>Mon, 6 Dec 2021 18:49:25 +0000</created>
                <updated>Fri, 27 Oct 2023 19:56:04 +0000</updated>
                            <resolved>Wed, 29 Dec 2021 12:00:54 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="4269657" author="dbeng-pm-bot" created="Wed, 29 Dec 2021 12:00:55 +0000"  >&lt;p&gt;There hasn&apos;t been any recent activity on this ticket, so we&apos;re resolving it. Thanks for reaching out! Please feel free to comment on this if you&apos;re able to provide more information.&lt;/p&gt;</comment>
                            <comment id="4248437" author="rstam" created="Wed, 15 Dec 2021 01:55:01 +0000"  >&lt;p&gt;It&apos;s possible (if I am reading correctly between the lines) that this ticket is related to this other ticket:&lt;/p&gt;


&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-3845&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/CSHARP-3845&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;The description provided does not mention what error is being encountered, but it sounds like it might be the same issue.&lt;/p&gt;</comment>
                            <comment id="4248436" author="rstam" created="Wed, 15 Dec 2021 01:53:04 +0000"  >&lt;p&gt;Usually a &quot;stand alone&quot; program means a console application reproducing the issue, but the reproduction could also be packaged as an XUnit test.&lt;/p&gt;

&lt;p&gt;The key thing is that we need an actual complete code example to look at.&lt;/p&gt;</comment>
                            <comment id="4245110" author="catherina.zingg" created="Mon, 13 Dec 2021 20:24:14 +0000"  >&lt;p&gt;Hi Robert,&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Sorry I&apos;m getting back so late &#8211; was not notified by your comment. I&apos;m not sure what you mean by a stand alone program but I&apos;m happy to add you to the email thread that client is reporting this from. Let me know if that would be helpful!&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Catherina&lt;/p&gt;</comment>
                            <comment id="4233606" author="rstam" created="Mon, 6 Dec 2021 23:17:12 +0000"  >&lt;p&gt;Thank you for reporting this issue.&lt;/p&gt;

&lt;p&gt;Can you please provide a small standalone program reproducing the issue so that we can investigate it?&lt;/p&gt;</comment>
                            <comment id="4233023" author="catherina.zingg" created="Mon, 6 Dec 2021 18:52:39 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=frederico.palmeiro&quot; class=&quot;user-hover&quot; rel=&quot;frederico.palmeiro&quot;&gt;frederico.palmeiro&lt;/a&gt;&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|hzwo67:</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>