<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:51:48 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>[JAVA-229] when saving file with gridfs and using a custom chunksize, it is not properly set on the parent file object, and fetching object later on will break</title>
                <link>https://jira.mongodb.org/browse/JAVA-229</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;public void save( int chunkSize )&lt;br/&gt;
public int saveChunks( int chunkSize )&lt;/p&gt;

&lt;p&gt;these use the chunkSize but do not update the parent object GridFSFile, which will always use default 256KB.&lt;/p&gt;</description>
                <environment></environment>
        <key id="13904">JAVA-229</key>
            <summary>when saving file with gridfs and using a custom chunksize, it is not properly set on the parent file object, and fetching object later on will break</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="antoine">Antoine Girbal</assignee>
                                    <reporter username="antoine">Antoine Girbal</reporter>
                        <labels>
                    </labels>
                <created>Wed, 8 Dec 2010 20:46:58 +0000</created>
                <updated>Wed, 22 Dec 2010 23:58:14 +0000</updated>
                            <resolved>Thu, 9 Dec 2010 00:22:47 +0000</resolved>
                                                    <fixVersion>2.4</fixVersion>
                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="21203" author="auto" created="Thu, 9 Dec 2010 00:18:49 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;agirbal&apos;, &apos;name&apos;: &apos;agirbal&apos;, &apos;email&apos;: &apos;antoine@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-229&quot; title=&quot;when saving file with gridfs and using a custom chunksize, it is not properly set on the parent file object, and fetching object later on will break&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-229&quot;&gt;&lt;del&gt;JAVA-229&lt;/del&gt;&lt;/a&gt;: when saving file with gridfs and using a custom chunksize, it is not properly set on the parent file object, and fetching object later on will break&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-228&quot; title=&quot;when saving file with gridfs, if the size is aligned with 256KB, then driver saves an extra chunk at the end with empty array&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-228&quot;&gt;&lt;del&gt;JAVA-228&lt;/del&gt;&lt;/a&gt;: when saving file with gridfs, if the size is aligned with 256KB, then driver saves an extra chunk at the end with empty array&lt;/p&gt;

&lt;p&gt;Misc:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;ability to choose chunkSize before obtaining and OutputStream&lt;/li&gt;
	&lt;li&gt;fix to previous commit: do not save file object in saveChunks()&lt;/li&gt;
	&lt;li&gt;prevent mixed use of inputStream / outputStream in GridFSInputFile&lt;/li&gt;
	&lt;li&gt;better comments on functions&lt;/li&gt;
	&lt;li&gt;added test for writing a gridfs file of a size aligned with chunkSize&lt;br/&gt;
/mongodb/mongo-java-driver/commit/55387702a05246122da6e91491cc04c4daeb0894&lt;/li&gt;
&lt;/ul&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|hrhcjj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>14832</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>