<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:37:37 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-713] MongoDatabase.Eval doesn&apos;t send argument to server when there is exactly one argument</title>
                <link>https://jira.mongodb.org/browse/CSHARP-713</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;When using db.eval(myJS, &quot;myStringArgument&quot;), any attempt to use the argument in a javascript context will treat it as undefined, and any attempt to use it in a BSON context will use it as BsonNull. In the attached sample solution, the return value of the function comes up as BsonNull, and the document saved to the database is of the form &lt;/p&gt;
{ name: null }
&lt;p&gt;.&lt;/p&gt;</description>
                <environment>Windows 7 x64, connecting to MongoDB 2.4.0, Visual Studio 2010</environment>
        <key id="69821">CSHARP-713</key>
            <summary>MongoDatabase.Eval doesn&apos;t send argument to server when there is exactly one argument</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="kanders">Keith Anders</reporter>
                        <labels>
                            <label>c#</label>
                            <label>driver</label>
                            <label>eval</label>
                            <label>javascript</label>
                    </labels>
                <created>Tue, 26 Mar 2013 20:39:32 +0000</created>
                <updated>Thu, 20 Mar 2014 14:36:46 +0000</updated>
                            <resolved>Tue, 26 Mar 2013 21:49:18 +0000</resolved>
                                    <version>1.8</version>
                                    <fixVersion>1.8.1</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="299261" author="auto" created="Tue, 26 Mar 2013 21:48:57 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-03-26T21:18:57Z&apos;, u&apos;name&apos;: u&apos;rstam&apos;, u&apos;email&apos;: u&apos;robert@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-713&quot; title=&quot;MongoDatabase.Eval doesn&amp;#39;t send argument to server when there is exactly one argument&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-713&quot;&gt;&lt;del&gt;CSHARP-713&lt;/del&gt;&lt;/a&gt;: MongoDatabase.Eval doesn&apos;t send argument to server when there is exactly one argument.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/072aad48b788f066ce3315ef6ab2256efa4b49d9&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/072aad48b788f066ce3315ef6ab2256efa4b49d9&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="299220" author="rstam" created="Tue, 26 Mar 2013 21:17:49 +0000"  >&lt;p&gt;MongoDatabase.Eval only fails when there is exactly one argument.&lt;/p&gt;

&lt;p&gt;A workaround for now could be to pass an extra dummy argument.&lt;/p&gt;

&lt;p&gt;Thanks for reporting the issue.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="25390" name="JavascriptTest.zip" size="1955169" author="kanders" created="Tue, 26 Mar 2013 20:39:32 +0000"/>
                    </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|hrmxxb:</customfieldvalue>

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