<!-- 
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-276] Drivers must raise an error if response messageLength &gt; ismaster.maxMessageSizeBytes</title>
                <link>https://jira.mongodb.org/browse/DRIVERS-276</link>
                <project id="10980" key="DRIVERS">Drivers</project>
                    <description>&lt;p&gt;When reading a response from the server, if header.messageLength is greater than ismaster.maxMessageSizeBytes a driver &lt;b&gt;MUST&lt;/b&gt; raise an error and close the connection.&lt;/p&gt;

&lt;p&gt;If this is the first operation run on the server (e.g. the first ismaster command sent on first connection) use a hard coded value of 48MB, switching to ismaster.maxMessageSizeBytes once you have received a valid ismaster response.&lt;/p&gt;

&lt;p&gt;Original bug report continues below&lt;br/&gt;
---------------------------------------------&lt;/p&gt;

&lt;p&gt;The new &lt;tt&gt;find()&lt;/tt&gt; command in MongoDB 3.2 can return documents that are larger then the configured maxBsonObjectSize (16777216 bytes).&lt;/p&gt;

&lt;p&gt;Drivers that validate the messageLength header from the server need to adjust their validation accordingly.&lt;/p&gt;

&lt;p&gt;I suggest we use the same logic as the server, which is rumored to do:&lt;br/&gt;
maxBsonObjectSize + 16K&lt;/p&gt;</description>
                <environment></environment>
        <key id="240779">DRIVERS-276</key>
            <summary>Drivers must raise an error if response messageLength &gt; ismaster.maxMessageSizeBytes</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="bjori">Hannes Magnusson</reporter>
                        <labels>
                    </labels>
                <created>Mon, 23 Nov 2015 20:40:44 +0000</created>
                <updated>Mon, 9 May 2022 17:59:29 +0000</updated>
                            <resolved>Mon, 9 May 2022 17:59:29 +0000</resolved>
                                                                            <votes>0</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="1400152" author="jmikola@gmail.com" created="Tue, 4 Oct 2016 20:41:37 +0000"  >&lt;p&gt;PHPC and HHVM rely on libmongoc.&lt;/p&gt;

&lt;p&gt;Does not apply to PHPLIB and there are no plans to validate this for the legacy PHP driver.&lt;/p&gt;</comment>
                            <comment id="1120787" author="acm" created="Tue, 22 Dec 2015 19:16:51 +0000"  >&lt;p&gt;C++11 driver relies on C driver for this functionality&lt;/p&gt;</comment>
                            <comment id="1096304" author="behackett" created="Mon, 23 Nov 2015 21:35:40 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=bjori&quot; class=&quot;user-hover&quot; rel=&quot;bjori&quot;&gt;bjori&lt;/a&gt;, perhaps ismaster.maxMessageSizeBytes is a better value? I don&apos;t think the server would ever return an OP_REPLY message anywhere near that large, but at least you&apos;re using a value defined by the server.&lt;/p&gt;</comment>
                            <comment id="1096236" author="behackett" created="Mon, 23 Nov 2015 20:57:48 +0000"  >&lt;p&gt;+ OP_REPLY overhead? I assume in the C driver you&apos;re counting the total number of bytes read in response? &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="470737">MOTOR-179</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="470738">GODRIVER-150</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1564540">RUST-616</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="240814">CDRIVER-1023</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="240213">DRIVERS-275</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="243490">CXX-773</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="244013">CXX-776</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="243492">JAVA-2062</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="243494">NODE-620</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="243500">PHPC-503</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="243502">PHPLIB-150</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="243495">PYTHON-1029</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="243497">RUBY-1076</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="243491">CSHARP-1501</issuekey>
        </issuelink>
                            </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_10257" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Documentation Changes</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11861"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10951" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Driver Changes</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10748"><![CDATA[Needed]]></customfieldvalue>

                        </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/MOTOR-179'>MOTOR-179</a>
    </td>
    <td>Fixed</td>
    <td class=''></td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/GODRIVER-150'>GODRIVER-150</a>
    </td>
    <td>Fixed</td>
    <td class='hasFixVersion'>1.5.0</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/SWIFT-1032'>SWIFT-1032</a>
    </td>
    <td>Won't Do</td>
    <td class=''></td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/RUST-616'>RUST-616</a>
    </td>
    <td>Fixed</td>
    <td class='hasFixVersion'>2.3.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|hsekvz:</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>