<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:00:53 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-2684] special types in shell (e.g. Timestamp) display in variety of ways, and can confuse users</title>
                <link>https://jira.mongodb.org/browse/SERVER-2684</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The way a timestamp prints in the shell is misleading and makes it look like an embedded doc which is not true.&lt;/p&gt;

&lt;p&gt;If currently prints as: {ts:{t:#, i:#}}&lt;/p&gt;

&lt;p&gt;But you cannot do this: find(&lt;/p&gt;
{&quot;ts.t&quot;: #}
&lt;p&gt;) or this: find({ts: {t:#, i:#}}) ; you must do this find(&lt;/p&gt;
{ts: new Timestamp(#, #)}
&lt;p&gt;)&lt;/p&gt;</description>
                <environment></environment>
        <key id="15002">SERVER-2684</key>
            <summary>special types in shell (e.g. Timestamp) display in variety of ways, and can confuse users</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="5" iconUrl="https://jira.mongodb.org/images/icons/priorities/trivial.svg">Trivial - P5</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="antoine">Antoine Girbal</assignee>
                                    <reporter username="scotthernandez">Scott Hernandez</reporter>
                        <labels>
                    </labels>
                <created>Fri, 4 Mar 2011 22:05:38 +0000</created>
                <updated>Tue, 12 Jul 2016 00:17:17 +0000</updated>
                            <resolved>Fri, 7 Oct 2011 23:44:45 +0000</resolved>
                                                    <fixVersion>2.1.0</fixVersion>
                                    <component>JavaScript</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="60194" author="auto" created="Thu, 13 Oct 2011 05:04:24 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;agirbal&apos;, u&apos;name&apos;: u&apos;agirbal&apos;, u&apos;email&apos;: u&apos;antoine@10gen.com&apos;}
&lt;p&gt;Message: - &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2684&quot; title=&quot;special types in shell (e.g. Timestamp) display in variety of ways, and can confuse users&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2684&quot;&gt;&lt;del&gt;SERVER-2684&lt;/del&gt;&lt;/a&gt;: V8 was still expecting old toString() for a dbref&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/8631cd3aa42c3c3be15c231aac752b3a5976a3ea&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/8631cd3aa42c3c3be15c231aac752b3a5976a3ea&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="59422" author="auto" created="Mon, 10 Oct 2011 06:46:44 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;agirbal&apos;, u&apos;name&apos;: u&apos;agirbal&apos;, u&apos;email&apos;: u&apos;antoine@10gen.com&apos;}
&lt;p&gt;Message: - &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2684&quot; title=&quot;special types in shell (e.g. Timestamp) display in variety of ways, and can confuse users&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2684&quot;&gt;&lt;del&gt;SERVER-2684&lt;/del&gt;&lt;/a&gt;: csv export expects its own special output for ObjectId&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/e3294065ef9a0aa5250ce00817cc228037a47f4b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/e3294065ef9a0aa5250ce00817cc228037a47f4b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="59240" author="antoine" created="Fri, 7 Oct 2011 23:44:45 +0000"  >&lt;p&gt;ObjectId:&lt;br/&gt;
old tojson: ObjectId(&quot;4e8f8ca468249caa40cb1bb8&quot;)&lt;br/&gt;
old tostring: 4e8f8ca468249caa40cb1bb8&lt;br/&gt;
new: ObjectId(&quot;4e8f730460beab88c1882f5e&quot;)&lt;/p&gt;

&lt;p&gt;DBRef:&lt;br/&gt;
old tojson: &lt;/p&gt;
{ &quot;$ref&quot; : &quot;test&quot;, &quot;$id&quot; : &quot;theid&quot; }
&lt;p&gt;old tostring: &lt;/p&gt;
{ &quot;$ref&quot; : &quot;test&quot;, &quot;$id&quot; : &quot;theid&quot; }
&lt;p&gt;new: DBRef(&quot;test&quot;, &quot;theid&quot;)&lt;/p&gt;

&lt;p&gt;DBPointer:&lt;br/&gt;
old tojson: &lt;/p&gt;
{ &quot;ns&quot; : &quot;test&quot;, &quot;id&quot; : ObjectId(&quot;4e8f8ca468249caa40cb1bb9&quot;) }
&lt;p&gt;old tostring: DBPointer test:4e8f8ca468249caa40cb1bb9&lt;br/&gt;
new: DBPointer(&quot;test&quot;, ObjectId(&quot;4e8f730460beab88c1882f5f&quot;))&lt;/p&gt;

&lt;p&gt;Timestamp:&lt;br/&gt;
old tojson: &lt;/p&gt;
{ &quot;t&quot; : 10, &quot;i&quot; : 20 }
&lt;p&gt;old tostring: &lt;span class=&quot;error&quot;&gt;&amp;#91;object Timestamp&amp;#93;&lt;/span&gt;&lt;br/&gt;
new: Timestamp(10, 20)&lt;/p&gt;

&lt;p&gt;BinData:&lt;br/&gt;
old tojson: BinData(3,&quot;VQ6EAOKbQdSnFkRmVUQAAA==&quot;)&lt;br/&gt;
old tostring: BinData(3,&quot;VQ6EAOKbQdSnFkRmVUQAAA==&quot;)&lt;br/&gt;
new: BinData(3,&quot;VQ6EAOKbQdSnFkRmVUQAAA==&quot;)&lt;/p&gt;

&lt;p&gt;UUID:&lt;br/&gt;
old tojson: BinData(3,&quot;VQ6EAOKbQdSnFkRmVUQAAA==&quot;)&lt;br/&gt;
old tostring: BinData(3,&quot;VQ6EAOKbQdSnFkRmVUQAAA==&quot;)&lt;br/&gt;
new: BinData(3,&quot;VQ6EAOKbQdSnFkRmVUQAAA==&quot;)&lt;/p&gt;

&lt;p&gt;MD5:&lt;br/&gt;
old tojson: BinData(5,&quot;VQ6EAOKbQdSnFkRmVUQAAA==&quot;)&lt;br/&gt;
old tostring: BinData(5,&quot;VQ6EAOKbQdSnFkRmVUQAAA==&quot;)&lt;br/&gt;
new: BinData(5,&quot;VQ6EAOKbQdSnFkRmVUQAAA==&quot;)&lt;/p&gt;

&lt;p&gt;HexData:&lt;br/&gt;
old tojson: BinData(4,&quot;VQ6EAOKbQdSnFkRmVUQAAA==&quot;)&lt;br/&gt;
old tostring: BinData(4,&quot;VQ6EAOKbQdSnFkRmVUQAAA==&quot;)&lt;br/&gt;
new: BinData(4,&quot;VQ6EAOKbQdSnFkRmVUQAAA==&quot;)&lt;/p&gt;

&lt;p&gt;NumberLong:&lt;br/&gt;
old tojson: NumberLong(100)&lt;br/&gt;
old tostring: NumberLong(100)&lt;br/&gt;
new: NumberLong(100)&lt;/p&gt;

&lt;p&gt;NumberInt:&lt;br/&gt;
old tojson: 100&lt;br/&gt;
old tostring: NumberInt(100)&lt;br/&gt;
new: NumberInt(100)&lt;/p&gt;</comment>
                            <comment id="59237" author="auto" created="Fri, 7 Oct 2011 23:30:26 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;agirbal&apos;, u&apos;name&apos;: u&apos;agirbal&apos;, u&apos;email&apos;: u&apos;antoine@10gen.com&apos;}
&lt;p&gt;Message: - &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2684&quot; title=&quot;special types in shell (e.g. Timestamp) display in variety of ways, and can confuse users&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2684&quot;&gt;&lt;del&gt;SERVER-2684&lt;/del&gt;&lt;/a&gt;: v8 was relying on oid.toString() during conversion&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/fccf1190d8ad44e553e80938916bcd111d95b9a4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/fccf1190d8ad44e553e80938916bcd111d95b9a4&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="59233" author="auto" created="Fri, 7 Oct 2011 22:40:27 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;agirbal&apos;, u&apos;name&apos;: u&apos;agirbal&apos;, u&apos;email&apos;: u&apos;antoine@10gen.com&apos;}
&lt;p&gt;Message: - &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2684&quot; title=&quot;special types in shell (e.g. Timestamp) display in variety of ways, and can confuse users&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2684&quot;&gt;&lt;del&gt;SERVER-2684&lt;/del&gt;&lt;/a&gt;: special types in shell (e.g. Timestamp) display in variety of ways, and can confuse users&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/a6bfe265732c01c7ea2626b6889dbc9bba6918ca&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/a6bfe265732c01c7ea2626b6889dbc9bba6918ca&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="59232" author="antoine" created="Fri, 7 Oct 2011 22:36:57 +0000"  >&lt;p&gt;Tried to bring some unity and move toString from C++ to common utils.js.&lt;br/&gt;
The idea is that tojson() and toString() should have same output, which is a string that basically represents the constructor.&lt;/p&gt;

&lt;p&gt;ObjectId(&quot;4e8f730460beab88c1882f5e&quot;)&lt;br/&gt;
DBRef(&quot;test&quot;, &quot;theid&quot;)&lt;br/&gt;
DBPointer(&quot;test&quot;, ObjectId(&quot;4e8f730460beab88c1882f5f&quot;))&lt;br/&gt;
Timestamp(10, 20)&lt;br/&gt;
BinData(3,&quot;VQ6EAOKbQdSnFkRmVUQAAA==&quot;)&lt;br/&gt;
UUID -&amp;gt; BinData(3,&quot;VQ6EAOKbQdSnFkRmVUQAAA==&quot;)&lt;br/&gt;
MD5 -&amp;gt; BinData(5,&quot;VQ6EAOKbQdSnFkRmVUQAAA==&quot;)&lt;br/&gt;
HexData -&amp;gt; BinData(4,&quot;VQ6EAOKbQdSnFkRmVUQAAA==&quot;)&lt;br/&gt;
NumberLong(100)&lt;br/&gt;
NumberInt(100)&lt;/p&gt;

&lt;p&gt;Let me know if the fact that output changed may be a problem for other components.&lt;br/&gt;
One sensitive point may be that now ObjectId outputs ObjectId(&quot;4e8f730460beab88c1882f5e&quot;) instead of 4e8f730460beab88c1882f5e&lt;br/&gt;
All tests passed besides jstests/objid7.js which expected hardcoded old output.&lt;/p&gt;

&lt;p&gt;Ideally in the future we will add a method toRealJson() that outputs a true parseable JSON format, same way as Java driver, to fix import/export.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="52543">DOCS-584</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="14856">JAVA-280</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="52548">DOCS-586</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="50688">SERVER-7055</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="51765">DOCS-563</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="50076">SERVER-6986</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10012"><![CDATA[Major Change]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 7 Oct 2011 22:36:57 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 18 weeks, 6 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>
                            12 years, 18 weeks, 6 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>antoine</customfieldvalue>
            <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrp4kv:</customfieldvalue>

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

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

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