<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:21:09 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>[DRIVERS-281] Rephrase unsupported/corrupt BSON messages</title>
                <link>https://jira.mongodb.org/browse/DRIVERS-281</link>
                <project id="10980" key="DRIVERS">Drivers</project>
                    <description>&lt;p&gt;Soon &amp;#8211; pretty very soon &amp;#8211; MongoDB will be introducing new BSON types.&lt;br/&gt;
Although old drivers may not be connecting to MongoDB versions using that BSON types, bson dump files and whatnot will eventually contain these types and these files shoved through old driver versions.&lt;/p&gt;

&lt;p&gt;Currently most drivers fail with very confusing error messages, especially if you are actually connected to a MongoDB supporting these types.&lt;/p&gt;

&lt;p&gt;This ticket is about unifying this error message to be more friendly and possibly alerting the user that newer drivers may support this type and the BSON may not actually be corrupt as currently reported.&lt;/p&gt;



&lt;blockquote&gt;
&lt;p&gt;Detected unknown BSON type &quot;\xTYPE&quot; for fieldname &quot;NAME&quot;. Are you using the latest driver version?&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Where&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;&lt;tt&gt;TYPE&lt;/tt&gt; is the current field type&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;NAME&lt;/tt&gt; is the current field name, if possible&lt;/li&gt;
&lt;/ul&gt;



&lt;p&gt;The type name should be represented in hex confirming to our BSON Spec convention &apos;\x00&apos;.&lt;/p&gt;

&lt;p&gt;The field name may not be possible to include in drivers, but drivers SHOULD make BEST EFFORT to include it. It helps our users a great deal as they could potentially project that field out as a poor mans workaround.&lt;br/&gt;
It is not required to provide the fieldname using dotnotation for nested fields. The inner most fieldname is sufficient.&lt;/p&gt;


&lt;p&gt;Please ensure this is done for all currently actively - AND INACTIVELY - maintained drivers.&lt;/p&gt;
</description>
                <environment></environment>
        <key id="258894">DRIVERS-281</key>
            <summary>Rephrase unsupported/corrupt BSON messages</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="-1">Unassigned</assignee>
                                    <reporter username="bjori">Hannes Magnusson</reporter>
                        <labels>
                    </labels>
                <created>Fri, 15 Jan 2016 18:54:59 +0000</created>
                <updated>Wed, 22 Feb 2023 03:01:21 +0000</updated>
                            <resolved>Wed, 22 Feb 2023 03:01:21 +0000</resolved>
                                                                            <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="1206012" author="xgen-internal-githook" created="Wed, 16 Mar 2016 21:34:47 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jmikola&apos;, u&apos;name&apos;: u&apos;Jeremy Mikola&apos;, u&apos;email&apos;: u&apos;jmikola@gmail.com&apos;}
&lt;p&gt;Message: PHP-1501: Rephrase exception message for unsupported/corrupt BSON type&lt;/p&gt;

&lt;p&gt;Per &lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-281&quot; title=&quot;Rephrase unsupported/corrupt BSON messages&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-281&quot;&gt;&lt;del&gt;DRIVERS-281&lt;/del&gt;&lt;/a&gt;, this also adds field name (for the current nesting level) to the message.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-php-driver-legacy/commit/71aa7dbdf9de475b35df47c6e7bf35c68421b059&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-php-driver-legacy/commit/71aa7dbdf9de475b35df47c6e7bf35c68421b059&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1206008" author="xgen-internal-githook" created="Wed, 16 Mar 2016 21:34:19 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jmikola&apos;, u&apos;name&apos;: u&apos;Jeremy Mikola&apos;, u&apos;email&apos;: u&apos;jmikola@gmail.com&apos;}
&lt;p&gt;Message: PHP-1501: Rephrase exception message for unsupported/corrupt BSON type&lt;/p&gt;

&lt;p&gt;Per &lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-281&quot; title=&quot;Rephrase unsupported/corrupt BSON messages&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-281&quot;&gt;&lt;del&gt;DRIVERS-281&lt;/del&gt;&lt;/a&gt;, this also adds field name (for the current nesting level) to the message.&lt;br/&gt;
Branch: v1.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-php-driver-legacy/commit/71aa7dbdf9de475b35df47c6e7bf35c68421b059&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-php-driver-legacy/commit/71aa7dbdf9de475b35df47c6e7bf35c68421b059&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1205934" author="xgen-internal-githook" created="Wed, 16 Mar 2016 20:38:15 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jmikola&apos;, u&apos;name&apos;: u&apos;Jeremy Mikola&apos;, u&apos;email&apos;: u&apos;jmikola@gmail.com&apos;}
&lt;p&gt;Message: PHP-1501: Rephrase exception message for unsupported/corrupt BSON type&lt;/p&gt;

&lt;p&gt;Per &lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-281&quot; title=&quot;Rephrase unsupported/corrupt BSON messages&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-281&quot;&gt;&lt;del&gt;DRIVERS-281&lt;/del&gt;&lt;/a&gt;, this also adds field name (for the current nesting level) to the message.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-php-driver-legacy/commit/2a7117ff655f6336a9b114695798ce4f512f20e5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-php-driver-legacy/commit/2a7117ff655f6336a9b114695798ce4f512f20e5&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="261239">CDRIVER-1076</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="261240">CSHARP-1546</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="261242">PHPC-554</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="261245">PHPLIB-169</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="258933">PYTHON-1044</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="261241">RUBY-1084</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="261256">CXX-833</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="947587">RUST-217</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="261255">CXX-832</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="261247">JAVA-2100</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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_23952" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Driver Compliance</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<style type='text/css'>
         #scriptField, #scriptField *{
                border: 1px solid black;
            }

            #scriptField{
                border-collapse: collapse;
            }

            #scriptField td {
                text-align: center; /* Center-align text in table cells */
            }

            #scriptField td.key {
                text-align: left; /* Left-align text in the Key column */
            }

            #scriptField a {
                text-decoration: none; /* Remove underlines from links */
                border: none; /* Remove border from links */
            }
            
            /* Add green background color to cells with FixVersion */
            #scriptField td.hasFixVersion {
                background-color: #00FF00; /* Green color code */
            }

            /* Center-align the first row headers */
            #scriptField th {
                text-align: center;
            }
        </style>
<table id='scriptField'>
  <tr>
    <th>Key</th>
    <th>Status/Resolution</th>
    <th>FixVersion</th>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/PERL-606'>PERL-606</a>
    </td>
    <td>Done</td>
    <td class='hasFixVersion'>BSON-v1.10.0</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/PYTHON-1044'>PYTHON-1044</a>
    </td>
    <td>Done</td>
    <td class='hasFixVersion'>2.9.2, 3.2.1</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/PHP-1501'>PHP-1501</a>
    </td>
    <td>Done</td>
    <td class='hasFixVersion'>1.6.13</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/CDRIVER-1076'>CDRIVER-1076</a>
    </td>
    <td>Done</td>
    <td class='hasFixVersion'>1.4.0</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/PHPC-554'>PHPC-554</a>
    </td>
    <td>Done</td>
    <td class='hasFixVersion'>1.2.0-alpha1, 1.2.0</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/RUBY-1084'>RUBY-1084</a>
    </td>
    <td>Done</td>
    <td class='hasFixVersion'>4.0.4, 12_01_17</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/CSHARP-1546'>CSHARP-1546</a>
    </td>
    <td>Done</td>
    <td class='hasFixVersion'>2.2.4</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/PHPLIB-169'>PHPLIB-169</a>
    </td>
    <td>Done</td>
    <td class=''></td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/JAVA-2100'>JAVA-2100</a>
    </td>
    <td>Done</td>
    <td class='hasFixVersion'>3.2.2</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/CXX-832'>CXX-832</a>
    </td>
    <td>Done</td>
    <td class='hasFixVersion'>legacy-1.1.2</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/CXX-833'>CXX-833</a>
    </td>
    <td>Won't Do</td>
    <td class=''></td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/PERL-1040'>PERL-1040</a>
    </td>
    <td>Fixed</td>
    <td class='hasFixVersion'>BSON-XS-v0.6.0</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/RUST-217'>RUST-217</a>
    </td>
    <td>Fixed</td>
    <td class='hasFixVersion'>bson-0.15.0</td>
  </tr>
</table>]]></customfieldvalue>


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