<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:59:45 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-2367] Object.property doesn&apos;t work with ObjectId in querying</title>
                <link>https://jira.mongodb.org/browse/SERVER-2367</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Querying an document like {str: &apos;something&apos;,  obj: {sub1: ObjectId(&apos;123&apos;), sub2: 456}} returns nothing while pure strings or integers works well&lt;/p&gt;

&lt;p&gt;Mon Jan 17 19:01:06 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2349&amp;#93;&lt;/span&gt; query: gaoren.test&lt;/p&gt;
{ obj.sub1: ObjectId(&apos;4d3421722973eb6246140000&apos;) }
&lt;p&gt;Mon Jan 17 19:01:06 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2349&amp;#93;&lt;/span&gt;    used cursor: 0x15de360&lt;br/&gt;
Mon Jan 17 19:01:06 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2349&amp;#93;&lt;/span&gt; query gaoren.test reslen:36 nreturned:0 0ms&lt;/p&gt;

&lt;p&gt;Mon Jan 17 19:01:06 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2349&amp;#93;&lt;/span&gt; query: gaoren.test&lt;/p&gt;
{ obj.sub2: 456 }
&lt;p&gt;Mon Jan 17 19:01:06 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2349&amp;#93;&lt;/span&gt;    used cursor: 0x168a5c0&lt;br/&gt;
Mon Jan 17 19:01:06 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2349&amp;#93;&lt;/span&gt; query gaoren.test reslen:115 nreturned:1 0ms&lt;/p&gt;

&lt;p&gt;Mon Jan 17 19:01:06 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2349&amp;#93;&lt;/span&gt; query: gaoren.test{ obj: { $elemMatch: &lt;/p&gt;
{ sub1: ObjectId(&apos;4d3421722973eb6246150000&apos;), sub2: 456 }
&lt;p&gt; } }&lt;br/&gt;
Mon Jan 17 19:01:06 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2349&amp;#93;&lt;/span&gt;    used cursor: 0x15d1720&lt;br/&gt;
Mon Jan 17 19:01:06 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2349&amp;#93;&lt;/span&gt; query gaoren.test reslen:36 nreturned:0 0ms&lt;/p&gt;
</description>
                <environment>ubuntu  php 5.3.3 php-mongo 1.10 mongodb 1.6.5-stable</environment>
        <key id="14233">SERVER-2367</key>
            <summary>Object.property doesn&apos;t work with ObjectId in querying</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="5">Cannot Reproduce</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="littlexiang">Xiang.Song</reporter>
                        <labels>
                    </labels>
                <created>Mon, 17 Jan 2011 11:03:57 +0000</created>
                <updated>Thu, 17 Mar 2011 19:13:12 +0000</updated>
                            <resolved>Mon, 17 Jan 2011 20:36:12 +0000</resolved>
                                    <version>1.6.5</version>
                                                    <component>Querying</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="22458" author="eliot" created="Mon, 17 Jan 2011 20:36:12 +0000"  >&lt;p&gt;Seems to work fine for me:&lt;/p&gt;

&lt;p&gt;)&lt;br/&gt;
ObjectId(&quot;4d34a7feec5855af36e5448a&quot;)&lt;br/&gt;
&amp;gt; db.foo.insert( { str : &quot;some string&quot; , obj : &lt;/p&gt;
{ sub1 : x , sub2 : 456 }
&lt;p&gt; } )&lt;br/&gt;
&amp;gt; db.foo.findOne()&lt;br/&gt;
{&lt;br/&gt;
	&quot;_id&quot; : ObjectId(&quot;4d34a806ec5855af36e5448b&quot;),&lt;br/&gt;
	&quot;str&quot; : &quot;some string&quot;,&lt;br/&gt;
	&quot;obj&quot; : &lt;/p&gt;
{
		&quot;sub1&quot; : ObjectId(&quot;4d34a7feec5855af36e5448a&quot;),
		&quot;sub2&quot; : 456
	}
&lt;p&gt;}&lt;br/&gt;
&amp;gt; db.foo.find( &lt;/p&gt;
{ &quot;obj.sub1&quot; : ObjectId(&quot;4d34a7feec5855af36e5448a&quot;) }
&lt;p&gt; )&lt;br/&gt;
{ &quot;_id&quot; : ObjectId(&quot;4d34a806ec5855af36e5448b&quot;), &quot;str&quot; : &quot;some string&quot;, &quot;obj&quot; : &lt;/p&gt;
{ &quot;sub1&quot; : ObjectId(&quot;4d34a7feec5855af36e5448a&quot;), &quot;sub2&quot; : 456 }
&lt;p&gt; }&lt;br/&gt;
&amp;gt; &lt;/p&gt;


&lt;p&gt;Can you provide a full non-working example.  The snippet you send it not full.&lt;/p&gt;</comment>
                            <comment id="22444" author="littlexiang" created="Mon, 17 Jan 2011 11:54:04 +0000"  >&lt;p&gt;This problem occurs occasionally right after updating.&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>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 17 Jan 2011 20:36:12 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 5 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>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            13 years, 5 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_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10020"><![CDATA[Linux]]></customfieldvalue>

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

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>21598</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|hslb7b:</customfieldvalue>

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