<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:10:51 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>[CDRIVER-870] Handle GridFS I/O operations beyond end-of-file</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-870</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;If one seeks past the end of a GridFS file, the driver should do something reasonable when an I/O operation is performed.&lt;/p&gt;

&lt;p&gt;Documentation must be clearly updated to explain the driver&apos;s behavior with the seek/read/write behavior, especially beyond the end of the file.&lt;/p&gt;</description>
                <environment>All</environment>
        <key id="230995">CDRIVER-870</key>
            <summary>Handle GridFS I/O operations beyond end-of-file</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="kyle.suarez@mongodb.com">Kyle Suarez</assignee>
                                    <reporter username="kyle.suarez@mongodb.com">Kyle Suarez</reporter>
                        <labels>
                            <label>gridfs</label>
                    </labels>
                <created>Tue, 22 Sep 2015 17:19:52 +0000</created>
                <updated>Wed, 18 Nov 2015 23:23:34 +0000</updated>
                            <resolved>Fri, 9 Oct 2015 20:26:34 +0000</resolved>
                                    <version>1.2-rc0</version>
                                    <fixVersion>1.3.0-beta0</fixVersion>
                                    <component>GridFS</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1057221" author="xgen-internal-githook" created="Sat, 10 Oct 2015 04:01:56 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@emptysquare.net&apos;}
&lt;p&gt;Message: Merge pull request #290 from ksuarz/feature/extend&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-870&quot; title=&quot;Handle GridFS I/O operations beyond end-of-file&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-870&quot;&gt;&lt;del&gt;CDRIVER-870&lt;/del&gt;&lt;/a&gt;: sane GridFS behavior past end-of-file&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/611365fb3399e996c00094bd14117ad509c1c211&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/611365fb3399e996c00094bd14117ad509c1c211&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1057220" author="xgen-internal-githook" created="Sat, 10 Oct 2015 04:01:55 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ksuarz&apos;, u&apos;name&apos;: u&apos;Kyle Suarez&apos;, u&apos;email&apos;: u&apos;ksuarz@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-870&quot; title=&quot;Handle GridFS I/O operations beyond end-of-file&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-870&quot;&gt;&lt;del&gt;CDRIVER-870&lt;/del&gt;&lt;/a&gt; update memset0 to invalidate read buf&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/e023d33be3183eddfd6c5ef8bde0c1d9856cd387&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/e023d33be3183eddfd6c5ef8bde0c1d9856cd387&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1057219" author="xgen-internal-githook" created="Sat, 10 Oct 2015 04:01:54 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ksuarz&apos;, u&apos;name&apos;: u&apos;Kyle Suarez&apos;, u&apos;email&apos;: u&apos;ksuarz@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-870&quot; title=&quot;Handle GridFS I/O operations beyond end-of-file&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-870&quot;&gt;&lt;del&gt;CDRIVER-870&lt;/del&gt;&lt;/a&gt; write past end of gridfs file&lt;/p&gt;

&lt;p&gt;Writing past the end of a GridFS file now extends it and fills the gap space&lt;br/&gt;
with zero bytes.&lt;/p&gt;

&lt;p&gt;New functions:&lt;br/&gt;
    _mongoc_gridfs_file_extend()&lt;br/&gt;
    _mongoc_gridfs_file_page_memset0()&lt;/p&gt;

&lt;p&gt;More tests added to test this behavior.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/e2c174ec427350d4440b9baa0fa3a4d66f72fb30&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/e2c174ec427350d4440b9baa0fa3a4d66f72fb30&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1057218" author="xgen-internal-githook" created="Sat, 10 Oct 2015 04:01:53 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ksuarz&apos;, u&apos;name&apos;: u&apos;Kyle Suarez&apos;, u&apos;email&apos;: u&apos;ksuarz@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-870&quot; title=&quot;Handle GridFS I/O operations beyond end-of-file&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-870&quot;&gt;&lt;del&gt;CDRIVER-870&lt;/del&gt;&lt;/a&gt; add gridfs file extension function&lt;/p&gt;

&lt;p&gt;You can mongoc_gridfs_file_seek() past the end of a file and call&lt;br/&gt;
mongoc_gridfs_file_extend() to extend the file to the new position. The&lt;br/&gt;
extended space is filled with zeroes with mongoc_gridfs_file_page_memset0().&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/41ff10db2340b6623f5e9743765ea7c6d0464a7b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/41ff10db2340b6623f5e9743765ea7c6d0464a7b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1057217" author="xgen-internal-githook" created="Sat, 10 Oct 2015 04:01:53 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ksuarz&apos;, u&apos;name&apos;: u&apos;Kyle Suarez&apos;, u&apos;email&apos;: u&apos;ksuarz@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-870&quot; title=&quot;Handle GridFS I/O operations beyond end-of-file&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-870&quot;&gt;&lt;del&gt;CDRIVER-870&lt;/del&gt;&lt;/a&gt; error on readv past end-of-file&lt;/p&gt;

&lt;p&gt;Attempting to call mongoc_gridfs_file_readv() after seeking past the end of the&lt;br/&gt;
file now results in an error.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/277b7056e17721d894ed421cfe16b8f74f3ddff6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/277b7056e17721d894ed421cfe16b8f74f3ddff6&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="230121">CDRIVER-848</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="223029">CDRIVER-765</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="230121">CDRIVER-848</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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsd9kf:</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>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="741">C Driver 2015Q2 sprint 8</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>