<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:42:19 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>[CSHARP-2350] Collation.FromBsonDocument barfs on some collations</title>
                <link>https://jira.mongodb.org/browse/CSHARP-2350</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Some collation objects returned from the MongoDB server include a version field, but Collation.FromBsonDocument throws an exception if there are any unrecognized fields, and it does not recognize the version field.&lt;/p&gt;</description>
                <environment>All</environment>
        <key id="583892">CSHARP-2350</key>
            <summary>Collation.FromBsonDocument barfs on some collations</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="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="admilazz">Adam Milazzo</reporter>
                        <labels>
                    </labels>
                <created>Sun, 5 Aug 2018 17:35:11 +0000</created>
                <updated>Thu, 31 Mar 2022 00:50:53 +0000</updated>
                                            <version>2.7.0</version>
                                                    <component>API</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="2073148" author="admilazz" created="Tue, 27 Nov 2018 18:55:25 +0000"  >&lt;p&gt;E.g.&lt;/p&gt;

&lt;p&gt;db.createCollection(&apos;col&apos;,{collation:{locale:&apos;en&apos;}});&lt;br/&gt;
db.runCommand(&quot;listCollections&quot;);&lt;/p&gt;

&lt;p&gt;(or do the same via the C# SDK)&lt;/p&gt;

&lt;p&gt;The response contains:&lt;/p&gt;

&lt;p&gt;&quot;collation&quot; : &lt;/p&gt;
{
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &quot;locale&quot; : &quot;en&quot;,
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &quot;caseLevel&quot; : false,
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &quot;caseFirst&quot; : &quot;off&quot;,
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &quot;strength&quot; : 3,
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &quot;numericOrdering&quot; : false,
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &quot;alternate&quot; : &quot;non-ignorable&quot;,
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &quot;maxVariable&quot; : &quot;punct&quot;,
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &quot;normalization&quot; : false,
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &quot;backwards&quot; : false,
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &quot;version&quot; : &quot;57.1&quot;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }

&lt;p&gt;which can&apos;t &lt;font color=&quot;#172b4d&quot;&gt;b&lt;/font&gt;e parsed &lt;font color=&quot;#172b4d&quot;&gt;b&lt;/font&gt;y Collation.&lt;font color=&quot;#172b4d&quot;&gt;FromBsonDocument.&lt;/font&gt;&lt;/p&gt;</comment>
                            <comment id="2067316" author="admilazz" created="Tue, 20 Nov 2018 00:54:50 +0000"  >&lt;p&gt;Collation documents are returned from the server as part of the listCollections, listIndexes, etc. commands.&lt;/p&gt;

&lt;p&gt;When I said the collation document came from a collection, I was referring to the output of the listCollections command&lt;font color=&quot;#172b4d&quot;&gt; (IIRC)&lt;/font&gt; relating to a collection that had previously been created with a collation, not a document inserted into the collection.&lt;/p&gt;

&lt;p&gt;It seems to make sense that Collation.FromBsonDocument should be able to parse a collation object returned from the server.&lt;/p&gt;

&lt;p&gt;If you still need a code sample, I will write one.&lt;/p&gt;</comment>
                            <comment id="2066952" author="ian@10gen.com" created="Mon, 19 Nov 2018 20:27:20 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=admilazz&quot; class=&quot;user-hover&quot; rel=&quot;admilazz&quot;&gt;admilazz&lt;/a&gt; can you let us know where you&apos;re getting this collation document from?  collation docs aren&apos;t typically something we put into a collection, it&apos;s usually a part of collection or index metadata.&lt;/p&gt;

&lt;p&gt;It would also be really useful if you could provide sample code to reproduce.&lt;/p&gt;</comment>
                            <comment id="1967180" author="admilazz" created="Sun, 5 Aug 2018 17:55:13 +0000"  >&lt;p&gt;For example, I received this collation document from a collection on MongoDB 3.6.2:&lt;/p&gt;

{ &quot;locale&quot; : &quot;en&quot;, &quot;caseLevel&quot; : false, &quot;caseFirst&quot; : &quot;off&quot;, &quot;strength&quot; : 3, &quot;numericOrdering&quot; : true, &quot;alternate&quot; : &quot;non-ignorable&quot;, &quot;maxVariable&quot; : &quot;punct&quot;, &quot;normalization&quot; : false, &quot;backwards&quot; : false, &quot;version&quot; : &quot;57.1&quot; }</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htvd67:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>