<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:37:10 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>[GODRIVER-1806] DownloadStream.Skip() does not handle multiple chunks correctly</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-1806</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;DownloadStream.Skip() does not seem to skip correctly when iterating over multiple chunks. The test cases here identify two cases:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://play.golang.org/p/z7RDRqU01ZA&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://play.golang.org/p/z7RDRqU01ZA&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;1. Skipping less than chunk size if the buffer offset is 0 results in a no-op.&lt;br/&gt;
2. When skipping results in the buffer offset being divisible by the chunk size on the last loop iteration in Skip, it resets the offset but does not fill the next buffer.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1558094">GODRIVER-1806</key>
            <summary>DownloadStream.Skip() does not handle multiple chunks correctly</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="13201">Fixed</resolution>
                                        <assignee username="kevin.albertson@mongodb.com">Kevin Albertson</assignee>
                                    <reporter username="kevin.albertson@mongodb.com">Kevin Albertson</reporter>
                        <labels>
                    </labels>
                <created>Thu, 3 Dec 2020 06:50:20 +0000</created>
                <updated>Sat, 28 Oct 2023 11:37:58 +0000</updated>
                            <resolved>Thu, 14 Jan 2021 15:52:36 +0000</resolved>
                                                    <fixVersion>1.4.5</fixVersion>
                    <fixVersion>1.4.6</fixVersion>
                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="3592786" author="xgen-internal-githook" created="Mon, 1 Feb 2021 17:07:44 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;email&apos;: &apos;kevin.albertson@mongodb.com&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-1806&quot; title=&quot;DownloadStream.Skip() does not handle multiple chunks correctly&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-1806&quot;&gt;&lt;del&gt;GODRIVER-1806&lt;/del&gt;&lt;/a&gt; Fix and test DownloadStream.Skip() (#557)&lt;br/&gt;
Branch: release/1.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/a05892574280bada1cf82c5ff88464d5a6651905&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/a05892574280bada1cf82c5ff88464d5a6651905&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3565153" author="xgen-internal-githook" created="Thu, 14 Jan 2021 15:52:30 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;email&apos;: &apos;kevin.albertson@mongodb.com&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-1806&quot; title=&quot;DownloadStream.Skip() does not handle multiple chunks correctly&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-1806&quot;&gt;&lt;del&gt;GODRIVER-1806&lt;/del&gt;&lt;/a&gt; Fix and test DownloadStream.Skip() (#557)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/cc85d3210f49d9daef608a2c61cdd3f490514e9a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/cc85d3210f49d9daef608a2c61cdd3f490514e9a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3548847" author="kevin.albertson" created="Tue, 5 Jan 2021 15:59:32 +0000"  >&lt;p&gt;PR:&#160;&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/pull/557&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/pull/557&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3522212" author="xgen-internal-githook" created="Wed, 9 Dec 2020 02:30:51 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;ginuerzh&apos;, &apos;email&apos;: &apos;ginuerzh@users.noreply.github.com&apos;, &apos;username&apos;: &apos;ginuerzh&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-1806&quot; title=&quot;DownloadStream.Skip() does not handle multiple chunks correctly&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-1806&quot;&gt;&lt;del&gt;GODRIVER-1806&lt;/del&gt;&lt;/a&gt; Fix wrong conditional in DownloadStream.Skip (#542)&lt;br/&gt;
Branch: release/1.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/bcc33862008437e3ad976be5b0dbf2dd9f64ea2e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/bcc33862008437e3ad976be5b0dbf2dd9f64ea2e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3522118" author="xgen-internal-githook" created="Wed, 9 Dec 2020 02:24:25 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;ginuerzh&apos;, &apos;email&apos;: &apos;ginuerzh@users.noreply.github.com&apos;, &apos;username&apos;: &apos;ginuerzh&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-1806&quot; title=&quot;DownloadStream.Skip() does not handle multiple chunks correctly&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-1806&quot;&gt;&lt;del&gt;GODRIVER-1806&lt;/del&gt;&lt;/a&gt; Fix wrong conditional in DownloadStream.Skip (#542)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/b88a5d79eb92272703073063673d3c777c4e81f4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/b88a5d79eb92272703073063673d3c777c4e81f4&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3513821" author="kevin.albertson" created="Thu, 3 Dec 2020 06:51:42 +0000"  >&lt;p&gt;I believe &lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/pull/542&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/pull/542&lt;/a&gt;&#160;fixes case 1. I think we should merge it, fix the other case, and add tests.&lt;/p&gt;</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|hxocfz:</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>