<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:55:24 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>[SERVER-864] $where queries involving an attribute with the word &quot;return&quot; anywhere in the name returns nothing</title>
                <link>https://jira.mongodb.org/browse/SERVER-864</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;If you use the word &apos;return&apos; as an attribute name, or the word return is even part of any attribute name (like &apos;returned_date&apos; or &apos;wesasreturningsa&apos;) then you will not be able to use the &quot;$where&quot; to filter on that attribute - you will get negative result (zero rows) under all circumstances, so &quot;$where&quot;=&amp;gt;&quot;this.returned_date == null || this.returned_date != null&quot; will still return zero rows, even though logically that is impossible. It may be some kind overly broad string matching in the mongo database&apos;s handling of &quot;$where&quot;. You will not see this problem in a traditional filter or in the context of a map/reduce. To get around it without having to mangle your models, you can (unappetizingly) construct your where clause like this: &quot;$where&quot;=&amp;gt;&quot;this&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;r&amp;#39; + &amp;#39;eturned_date&amp;#39;&amp;#93;&lt;/span&gt; == &apos;whatever&apos;&quot;&lt;/p&gt;</description>
                <environment>Ubuntu Linux running inside VMWare server</environment>
        <key id="11681">SERVER-864</key>
            <summary>$where queries involving an attribute with the word &quot;return&quot; anywhere in the name returns nothing</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="eliot">Eliot Horowitz</assignee>
                                    <reporter username="patrick_gannon">Patrick Gannon</reporter>
                        <labels>
                    </labels>
                <created>Fri, 2 Apr 2010 14:59:25 +0000</created>
                <updated>Tue, 12 Jul 2016 00:27:30 +0000</updated>
                            <resolved>Thu, 8 Apr 2010 15:23:57 +0000</resolved>
                                    <version>1.3.1</version>
                    <version>1.4.0</version>
                                    <fixVersion>1.5.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="13882" author="eliot" created="Mon, 26 Apr 2010 13:51:18 +0000"  >&lt;p&gt;in a release&lt;/p&gt;</comment>
                            <comment id="13511" author="auto" created="Thu, 8 Apr 2010 15:23:55 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;erh&apos;, &apos;name&apos;: &apos;Eliot Horowitz&apos;, &apos;email&apos;: &apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: fix where on v8 &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-864&quot; title=&quot;$where queries involving an attribute with the word &amp;quot;return&amp;quot; anywhere in the name returns nothing&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-864&quot;&gt;&lt;del&gt;SERVER-864&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/48d2acc0de66704bce7fc20ca1f50cdf5c522a80&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/48d2acc0de66704bce7fc20ca1f50cdf5c522a80&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="13507" author="aaron" created="Thu, 8 Apr 2010 14:23:00 +0000"  >&lt;p&gt;seems to be failing in v8?&lt;br/&gt;
&amp;lt;&lt;a href=&quot;http://buildbot.mongodb.org/builders/Linux%2064-bit%20v8/builds/427/steps/test/logs/stdio&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://buildbot.mongodb.org/builders/Linux%2064-bit%20v8/builds/427/steps/test/logs/stdio&lt;/a&gt;&amp;gt;&lt;/p&gt;</comment>
                            <comment id="13402" author="auto" created="Fri, 2 Apr 2010 15:54:38 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;erh&apos;, &apos;name&apos;: &apos;Eliot Horowitz&apos;, &apos;email&apos;: &apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: make return parsing smarter &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-864&quot; title=&quot;$where queries involving an attribute with the word &amp;quot;return&amp;quot; anywhere in the name returns nothing&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-864&quot;&gt;&lt;del&gt;SERVER-864&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/44237031b1c0edec4ffc931aad1b8914de53ad5e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/44237031b1c0edec4ffc931aad1b8914de53ad5e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="13401" author="eliot" created="Fri, 2 Apr 2010 15:48:46 +0000"  >&lt;p&gt;will fix, but if you make it&lt;br/&gt;
&quot;$where&quot;=&amp;gt;&quot;return this.returned_date == null || this.returned_date != null&quot;&lt;br/&gt;
note:  the added return at beginning of statement&lt;/p&gt;

&lt;p&gt;then it will work as is&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 2 Apr 2010 15:48:46 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 43 weeks, 2 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            13 years, 43 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>aaron</customfieldvalue>
            <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>patrick_gannon</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrppjj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hriojr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>22629</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht0jin:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>