<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 07:56:17 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>[DOCS-8430] your shell javascript has some problem code in collection.js</title>
                <link>https://jira.mongodb.org/browse/DOCS-8430</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;source code Version 3.2.3&lt;br/&gt;
file src/mongo/shell/mongo.js &lt;br/&gt;
line 596&lt;br/&gt;
bug code&lt;br/&gt;
DBCollection.prototype.createIndexes = function(keys, options) {&lt;br/&gt;
    var indexSpecs = Array(keys.length);&lt;br/&gt;
    for (var i = 0; i &amp;lt; indexSpecs.length; i++) &lt;/p&gt;
{
        indexSpecs[i] = this._indexSpec(keys[i], options);
    }

&lt;p&gt;    if (this.getMongo().writeMode() == &quot;commands&quot;) {&lt;br/&gt;
        for (i = 0; i++; i &amp;lt; indexSpecs.length) &lt;/p&gt;
{
            delete (indexSpecs[i].ns); // ns is passed to the first element in the command.
        }&lt;br/&gt;
        return this._db.runCommand({createIndexes: this.getName(), indexes: indexSpecs}); &lt;br/&gt;
    }&lt;br/&gt;
    else if(this.getMongo().writeMode() == &quot;compatibility&quot;) {&lt;br/&gt;
        // Use the downconversion machinery of the bulk api to do a safe write, report response as a&lt;br/&gt;
        // command response&lt;br/&gt;
        var result = this._db.getCollection(&quot;system.indexes&quot;).insert(indexSpecs , 0, true);&lt;br/&gt;
&lt;br/&gt;
        if (result.hasWriteErrors() || result.hasWriteConcernError()) {&lt;br/&gt;
            // Return the first error&lt;br/&gt;
            var error = result.hasWriteErrors() ? result.getWriteErrors()&lt;span class=&quot;error&quot;&gt;&amp;#91;0&amp;#93;&lt;/span&gt; :&lt;br/&gt;
                                                  result.getWriteConcernError();&lt;br/&gt;
            return {ok : 0.0, code : error.code, errmsg : error.errmsg};&lt;br/&gt;
        }&lt;br/&gt;
        else {&lt;br/&gt;
            return {ok : 1.0};&lt;br/&gt;
        }&lt;br/&gt;
    }&lt;br/&gt;
    else {
        this._db.getCollection(&quot;system.indexes&quot;).insert(indexSpecs, 0, true);
    }&lt;br/&gt;
}&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
your code &lt;br/&gt;
        for (i = 0; i++; i &amp;lt; indexSpecs.length) {
            delete (indexSpecs[i].ns); // ns is passed to the first element in the command.
        }

&lt;p&gt;WILL NEVER BE EXECUTED&lt;/p&gt;



</description>
                <environment>macos 10.11&lt;br/&gt;
&lt;br/&gt;
*Location*: &lt;a href=&quot;https://docs.mongodb.com/manual/installation/?_ga=1.33512568.751647522.1464681992&quot;&gt;https://docs.mongodb.com/manual/installation/?_ga=1.33512568.751647522.1464681992&lt;/a&gt;&lt;br/&gt;
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.36&lt;br/&gt;
*Referrer*: &lt;a href=&quot;https://www.mongodb.com/download-center?jmp=nav&quot;&gt;https://www.mongodb.com/download-center?jmp=nav&lt;/a&gt;&lt;br/&gt;
*Screen Resolution*: 1440 x 900&lt;br/&gt;
</environment>
        <key id="304299">DOCS-8430</key>
            <summary>your shell javascript has some problem code in collection.js</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="-1">Unassigned</assignee>
                                    <reporter username="xgen-internal-docs">Docs Collector User</reporter>
                        <labels>
                            <label>collector-298ba4e7</label>
                    </labels>
                <created>Wed, 27 Jul 2016 03:44:05 +0000</created>
                <updated>Fri, 3 Nov 2017 11:10:10 +0000</updated>
                            <resolved>Sat, 13 Aug 2016 11:57:58 +0000</resolved>
                                                    <fixVersion>01112017-cleanup</fixVersion>
                                    <component>Server</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="1356175" author="ravind.kumar" created="Sat, 13 Aug 2016 11:57:58 +0000"  >&lt;p&gt;Thank you for filing a DOCS ticket.&lt;/p&gt;

&lt;p&gt;The issue in question is actually more server related than docs - as of such, &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-25300&quot; title=&quot;Incorrect syntax in for loop in collection.js&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-25300&quot;&gt;&lt;del&gt;SERVER-25300&lt;/del&gt;&lt;/a&gt; was created and resolved.&lt;/p&gt;

&lt;p&gt;If you come across similar issues in the MongoDB source code, please raise a ticket in the SERVER project.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="304407">SERVER-25300</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 27 Jul 2016 12:12:57 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            7 years, 26 weeks, 4 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-docs</customfieldvalue>
            <customfieldvalue>ravind.kumar</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmmgf:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</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_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrz7jj:</customfieldvalue>

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