<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:41:55 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-2218] BsonBinaryData constructor throws incorrect ArgumentException message</title>
                <link>https://jira.mongodb.org/browse/CSHARP-2218</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Error thrown in the lines:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: #006699; font-weight: bold; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; message = &lt;/span&gt;&lt;span style=&quot;color: #006699; font-weight: bold; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;.Format(&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;SubType must be {0}, not {1}, when GuidRepresentation is {2}.&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;,&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;                        expectedSubType, subType, GuidRepresentation);&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: #006699; font-weight: bold; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;throw&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #006699; font-weight: bold; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; ArgumentException(message);&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;However this.GuidRepresentation has yet to be initialized, parameter should actually be guidRepresentation.&lt;/p&gt;</description>
                <environment></environment>
        <key id="513066">CSHARP-2218</key>
            <summary>BsonBinaryData constructor throws incorrect ArgumentException message</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="13201">Fixed</resolution>
                                        <assignee username="robert@mongodb.com">Robert Stam</assignee>
                                    <reporter username="james.hadwen">James Hadwen</reporter>
                        <labels>
                    </labels>
                <created>Sun, 18 Mar 2018 04:52:25 +0000</created>
                <updated>Sat, 28 Oct 2023 11:49:06 +0000</updated>
                            <resolved>Mon, 2 Apr 2018 18:43:38 +0000</resolved>
                                    <version>2.5</version>
                                    <fixVersion>2.5.1</fixVersion>
                                    <component>BSON</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1852555" author="xgen-internal-githook" created="Mon, 2 Apr 2018 18:43:02 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;robert@robertstam.org&apos;, &apos;name&apos;: &apos;rstam&apos;, &apos;username&apos;: &apos;rstam&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-2218&quot; title=&quot;BsonBinaryData constructor throws incorrect ArgumentException message&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-2218&quot;&gt;&lt;del&gt;CSHARP-2218&lt;/del&gt;&lt;/a&gt;: Fix BsonBinaryData constructor exception messages&lt;br/&gt;
Branch: v2.5.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/1a747516dbafd5240d239bea90fec6d030fd2b44&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/1a747516dbafd5240d239bea90fec6d030fd2b44&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1852529" author="xgen-internal-githook" created="Mon, 2 Apr 2018 18:28:47 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;robert@robertstam.org&apos;, &apos;name&apos;: &apos;rstam&apos;, &apos;username&apos;: &apos;rstam&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-2218&quot; title=&quot;BsonBinaryData constructor throws incorrect ArgumentException message&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-2218&quot;&gt;&lt;del&gt;CSHARP-2218&lt;/del&gt;&lt;/a&gt;: Fix BsonBinaryData constructor exception messages&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/f5eb70a3dfd35ddb71c4ff1dd927b8ecf32aff49&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/f5eb70a3dfd35ddb71c4ff1dd927b8ecf32aff49&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1852502" author="rstam" created="Mon, 2 Apr 2018 18:08:22 +0000"  >&lt;p&gt;An instance of &lt;tt&gt;BsonBinaryData&lt;/tt&gt; has two primary properties:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;SubType&lt;/tt&gt;: A enum indicating what type of binary data this is&lt;br/&gt;
&lt;tt&gt;Bytes&lt;/tt&gt;: The bytes themselves&lt;/p&gt;

&lt;p&gt;In addition, for the two subtypes that represent UUIDs (&lt;tt&gt;UuidLegacy&lt;/tt&gt; and &lt;tt&gt;UuidStandard&lt;/tt&gt;) there is one additional property:&lt;/p&gt;

&lt;p&gt;{{GuidRepresentation}:} An enum indicating how the UUID is represented.&lt;/p&gt;

&lt;p&gt;There are strict rules about which combinations of &lt;tt&gt;SubType&lt;/tt&gt; and &lt;tt&gt;GuidRepresentation&lt;/tt&gt; are valid:&lt;/p&gt;

&lt;p&gt;1. When &lt;tt&gt;SubType&lt;/tt&gt; is &lt;tt&gt;UuidStandard&lt;/tt&gt;, then &lt;tt&gt;GuidRepresentation&lt;/tt&gt; MUST be &lt;tt&gt;Standard&lt;/tt&gt;&lt;br/&gt;
2. When &lt;tt&gt;SubType&lt;/tt&gt; is &lt;tt&gt;UuidLegacy&lt;/tt&gt;, then &lt;tt&gt;GuidRepresentation&lt;/tt&gt; MUST be one of: &lt;tt&gt;CSharpLegacy&lt;/tt&gt;, &lt;tt&gt;JavaLegacy&lt;/tt&gt;, &lt;tt&gt;PythonLegacy&lt;/tt&gt; or &lt;tt&gt;Unspecified&lt;/tt&gt;&lt;br/&gt;
3. For all other &lt;tt&gt;SubType&lt;/tt&gt; values &lt;tt&gt;GuidRepesentation&lt;/tt&gt; MUST be &lt;tt&gt;Unspecified&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;These rules are enforced by the &lt;tt&gt;BsonBinaryData&lt;/tt&gt; constructors.&lt;/p&gt;</comment>
                            <comment id="1837629" author="james.hadwen" created="Sun, 18 Mar 2018 05:12:29 +0000"  >&lt;p&gt;To add, I&apos;m not really certain why this constructor (in my case from BsonBinaryReader.ReadBinaryData() within an implementation of SerializerBase&amp;lt;T&amp;gt;) needs to preempt how I might or might not deconstruct the Guid. i.e. if the Guid is stored as LUUID, should I not be allowed to call BsonBinaryReader.ReadBinaryData().ToGuid(GuidRepresentation.CSharpLegacy) even if BsonDefaults.GuidRepresentation is set to Standard?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="452626">CSHARP-2074</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <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_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|hr8wcv:</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>