<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:06:38 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-24534] Commands that accept user predicates should use collection default collation</title>
                <link>https://jira.mongodb.org/browse/SERVER-24534</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The following commands do not accept a user collation, but the predicates they accept should respect the default collation (if the collection has one):&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;cloneCollection&lt;/li&gt;
	&lt;li&gt;&lt;del&gt;currentOp&lt;/del&gt;&lt;/li&gt;
	&lt;li&gt;&lt;del&gt;listCollections&lt;/del&gt;&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="293426">SERVER-24534</key>
            <summary>Commands that accept user predicates should use collection default collation</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="max.hirschhorn@mongodb.com">Max Hirschhorn</assignee>
                                    <reporter username="rassi">J Rassi</reporter>
                        <labels>
                            <label>neweng</label>
                    </labels>
                <created>Mon, 13 Jun 2016 16:12:19 +0000</created>
                <updated>Sat, 13 Aug 2016 00:07:10 +0000</updated>
                            <resolved>Wed, 27 Jul 2016 13:49:15 +0000</resolved>
                                                    <fixVersion>3.3.11</fixVersion>
                                    <component>Querying</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="1337463" author="xgen-internal-githook" created="Wed, 27 Jul 2016 13:48:25 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;visemet&apos;, u&apos;name&apos;: u&apos;Max Hirschhorn&apos;, u&apos;email&apos;: u&apos;max.hirschhorn@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-24534&quot; title=&quot;Commands that accept user predicates should use collection default collation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-24534&quot;&gt;&lt;del&gt;SERVER-24534&lt;/del&gt;&lt;/a&gt; Add tests for cloning collections w/ non-simple collations.&lt;/p&gt;

&lt;p&gt;Tests that the &quot;cloneCollection&quot;, &quot;cloneCollectionAsCapped&quot;,&lt;br/&gt;
&quot;convertToCapped&quot;, and &quot;copydb&quot; commands inherit the default collation&lt;br/&gt;
of the corresponding collection.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/541d4ee893321e69a6b065908098c3b07f180de0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/541d4ee893321e69a6b065908098c3b07f180de0&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1330646" author="david.storch" created="Wed, 20 Jul 2016 22:22:09 +0000"  >&lt;blockquote&gt;
&lt;p&gt;I think the &quot;stageDebug&quot; command is the only one not mentioned already that we could consider having inherit the default collation of the collection. David Storch, do you think that would be useful for any testing we plan to do?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Since stageDebug is test only, there is no need to have it inherit the default collation now. If in the future we find this to be useful for writing test cases, we can do it at that time.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The &quot;geoSearch&quot; command shouldn&apos;t use the default collation of the collection because the geoHaystack index must use the simple collation. We could change the command to accept a collation and require callers do {locale: &quot;simple&quot;} in order to use the command, but I don&apos;t see that as being necessary.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Agreed, we should leave as is.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;We could change the command to accept a collation and require callers do {locale: &quot;simple&quot;} in order to use the command, but I don&apos;t see that as being necessary either.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Agreed, I think chunk management operations should always use whatever collation the shard key has, so I don&apos;t see a future in which we will need a collation parameter on these commands.&lt;/p&gt;</comment>
                            <comment id="1330610" author="max.hirschhorn@10gen.com" created="Wed, 20 Jul 2016 21:50:31 +0000"  >&lt;p&gt;As part of this audit, I looked through the list of commands supported by MongoDB and searched for callers of &lt;tt&gt;MatchExpressionParser::parse()&lt;/tt&gt; as well as users of the &lt;tt&gt;Matcher&lt;/tt&gt; class. I think the &quot;stageDebug&quot; command is the only one not mentioned already that we could consider having inherit the default collation of the collection. &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=david.storch&quot; class=&quot;user-hover&quot; rel=&quot;david.storch&quot;&gt;david.storch&lt;/a&gt;, do you think that would be useful for any testing we plan to do?&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;The &quot;cloneCollection&quot; command already respects the default collation of the collection by virtue of sending a query either over a client connection or via &lt;tt&gt;DBDirectClient&lt;/tt&gt; to fetch the desired set of documents.&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;The &quot;geoSearch&quot; command shouldn&apos;t use the default collation of the collection because the geoHaystack index must use the simple collation. We could change the command to accept a collation and require callers do {&lt;tt&gt;locale: &quot;simple&quot;&lt;/tt&gt;} in order to use the command, but I don&apos;t see that as being necessary.&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;The &quot;split&quot; and &quot;moveChunk&quot; commands shouldn&apos;t use the default collation of the collection because the collection is allowed to have a non-simple collation, whereas the collection must be sharded using the simple collation. Equality matches on the shard key are extracted from the query predicate specified to the &quot;split&quot; and &quot;moveChunk&quot; commands in order to perform the shard targeting. We could change the command to accept a collation and require callers do {&lt;tt&gt;locale: &quot;simple&quot;&lt;/tt&gt;} in order to use the command, but I don&apos;t see that as being necessary either. &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=schwerin&quot; class=&quot;user-hover&quot; rel=&quot;schwerin&quot;&gt;schwerin&lt;/a&gt;, do you agree?&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Per my conversation with Dave, I&apos;m inclined to convert this ticket into a task for testing that the &quot;cloneCollection&quot;, &quot;cloneCollectionAsCapped&quot;, &quot;convertToCapped&quot;, and &quot;copydb&quot; commands all inherit the default collation of the collection when the associated collection is copied.&lt;/p&gt;</comment>
                            <comment id="1292394" author="rassi@10gen.com" created="Mon, 13 Jun 2016 17:21:16 +0000"  >&lt;p&gt;Ah, of course. I&apos;ve struck those above.&lt;/p&gt;</comment>
                            <comment id="1292366" author="schwerin" created="Mon, 13 Jun 2016 16:59:38 +0000"  >&lt;p&gt;currentOp and listCollections aren&apos;t run over a collection, so I am not certain that there is a meaningful collection-default collation to use.&lt;/p&gt;</comment>
                            <comment id="1292294" author="rassi@10gen.com" created="Mon, 13 Jun 2016 16:13:23 +0000"  >&lt;p&gt;I&apos;m assuming that split, moveChunk, and geoSearch should not be included in the above list, but they should at least be given passing consideration when this ticket is triaged.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="304266">SERVER-25295</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="278303">SERVER-23611</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>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 13 Jun 2016 16:59:38 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        7 years, 29 weeks ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<s><a href='https://jira.mongodb.org/browse/SERVER-25295'>SERVER-25295</a></s>]]></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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-266</customfieldvalue>
                        </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>
                            7 years, 29 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>schwerin@mongodb.com</customfieldvalue>
            <customfieldvalue>david.storch@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>rassi</customfieldvalue>
            <customfieldvalue>max.hirschhorn@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrk5rj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrcuun:</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_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1146">Query 18 (08/05/16)</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_11861" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>User Summary</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11856"><![CDATA[Not Needed]]></customfieldvalue>

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

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