<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:07:59 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-5127] Limit recursion depth of BSONObj::toString()</title>
                <link>https://jira.mongodb.org/browse/SERVER-5127</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;This is to safeguard against issues like (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-5036&quot; title=&quot;MongoDB crashes on indexing nested array&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-5036&quot;&gt;&lt;del&gt;SERVER-5036&lt;/del&gt;&lt;/a&gt;) where a 1000 level deep nested array was crashing mongod when trying to print out unindexable keys.&lt;/p&gt;</description>
                <environment></environment>
        <key id="31760">SERVER-5127</key>
            <summary>Limit recursion depth of BSONObj::toString()</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="siddharth.singh@10gen.com">siddharth.singh@10gen.com</assignee>
                                    <reporter username="siddharth.singh@10gen.com">siddharth.singh@10gen.com</reporter>
                        <labels>
                    </labels>
                <created>Tue, 28 Feb 2012 15:57:08 +0000</created>
                <updated>Wed, 15 Aug 2012 14:18:42 +0000</updated>
                            <resolved>Fri, 13 Apr 2012 21:23:11 +0000</resolved>
                                                    <fixVersion>2.1.1</fixVersion>
                                                        <votes>1</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="142734" author="auto" created="Fri, 13 Jul 2012 13:22:42 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-07-12T11:14:38-07:00&apos;, u&apos;email&apos;: u&apos;steve.briskin@10gen.com&apos;, u&apos;name&apos;: u&apos;Steve Briskin&apos;}
&lt;p&gt;Message: JS tests for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-5127&quot; title=&quot;Limit recursion depth of BSONObj::toString()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-5127&quot;&gt;&lt;del&gt;SERVER-5127&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/d8a7ced9ca0066f5e4f1679dba8b6e83cd5939b0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/d8a7ced9ca0066f5e4f1679dba8b6e83cd5939b0&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="111240" author="auto" created="Wed, 18 Apr 2012 16:54:17 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;tychoish&apos;, u&apos;name&apos;: u&apos;Sam Kleinman&apos;, u&apos;email&apos;: u&apos;samk@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-5127&quot; title=&quot;Limit recursion depth of BSONObj::toString()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-5127&quot;&gt;&lt;del&gt;SERVER-5127&lt;/del&gt;&lt;/a&gt; adding limit for maximum bson object nested depth&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/a8292545c927f98d76b9d3a7798d5e984537e907&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/a8292545c927f98d76b9d3a7798d5e984537e907&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="110359" author="auto" created="Mon, 16 Apr 2012 18:53:00 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;RedBeard0531&apos;, u&apos;name&apos;: u&apos;Mathias Stearn&apos;, u&apos;email&apos;: u&apos;mathias@10gen.com&apos;}
&lt;p&gt;Message: Lower maxToStringRecursionDepth to 100 &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-5127&quot; title=&quot;Limit recursion depth of BSONObj::toString()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-5127&quot;&gt;&lt;del&gt;SERVER-5127&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/b5348b5dc61afe0377ab06003b51029810f40b55&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/b5348b5dc61afe0377ab06003b51029810f40b55&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="109898" author="auto" created="Sat, 14 Apr 2012 19:11:16 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;tadmarshall&apos;, u&apos;email&apos;: u&apos;tad@10gen.com&apos;, u&apos;name&apos;: u&apos;Tad Marshall&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-5127&quot; title=&quot;Limit recursion depth of BSONObj::toString()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-5127&quot;&gt;&lt;del&gt;SERVER-5127&lt;/del&gt;&lt;/a&gt; Fix reversed test&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/7acafe5df00a1e72890d474b8d145136800fdd68&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/7acafe5df00a1e72890d474b8d145136800fdd68&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="109896" author="auto" created="Sat, 14 Apr 2012 18:51:51 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;tadmarshall&apos;, u&apos;name&apos;: u&apos;Tad Marshall&apos;, u&apos;email&apos;: u&apos;tad@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-5127&quot; title=&quot;Limit recursion depth of BSONObj::toString()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-5127&quot;&gt;&lt;del&gt;SERVER-5127&lt;/del&gt;&lt;/a&gt; Try to make Windows and gcc compile&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/2ab1c27d3e0c92137eb3aec0b60d2f43582c0591&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/2ab1c27d3e0c92137eb3aec0b60d2f43582c0591&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="109894" author="auto" created="Sat, 14 Apr 2012 18:32:58 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;tadmarshall&apos;, u&apos;name&apos;: u&apos;Tad Marshall&apos;, u&apos;email&apos;: u&apos;tad@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-5127&quot; title=&quot;Limit recursion depth of BSONObj::toString()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-5127&quot;&gt;&lt;del&gt;SERVER-5127&lt;/del&gt;&lt;/a&gt; Fix Windows compile&lt;/p&gt;

&lt;p&gt;Don&apos;t use BSONObjBuilder::numStr() to convert 500 to a string.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/66b15e93e2da8344c01cfc8ecf45906212c71107&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/66b15e93e2da8344c01cfc8ecf45906212c71107&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="109767" author="siddharth.singh@10gen.com" created="Fri, 13 Apr 2012 21:10:25 +0000"  >&lt;p&gt;Need to document that the current maximum nested allowable depth for BSONObj.toString() is 500.&lt;/p&gt;</comment>
                            <comment id="109762" author="auto" created="Fri, 13 Apr 2012 20:56:16 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;&apos;, u&apos;name&apos;: u&apos;Siddharth Singh&apos;, u&apos;email&apos;: u&apos;singhsiddharth@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-5127&quot; title=&quot;Limit recursion depth of BSONObj::toString()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-5127&quot;&gt;&lt;del&gt;SERVER-5127&lt;/del&gt;&lt;/a&gt; Limit recursion depth&lt;/p&gt;

&lt;p&gt;This is to safeguard against a scenario where a deep nested array&lt;br/&gt;
can crash BSONObj.toString() and BSONObjElement.toString()&lt;br/&gt;
which eventually was crashing mongod.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/b4052ecccf00f87cad5e72b5bf56829fce0c7410&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/b4052ecccf00f87cad5e72b5bf56829fce0c7410&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="31217">SERVER-5036</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="47062">SERVER-6763</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="42850">SERVER-6251</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>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 13 Apr 2012 20:56:16 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 31 weeks, 5 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>
                            11 years, 31 weeks, 5 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>auto</customfieldvalue>
            <customfieldvalue>siddharth.singh@10gen.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrobrj:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7964</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_10166" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Tests Written</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10154"><![CDATA[Complete]]></customfieldvalue>

                        </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|hrnuq7:</customfieldvalue>

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