<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:14:54 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-2332] New &quot;with_opts&quot; functions to support sessions with GridFS</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2332</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;For GridFS functions that do not accept generic &quot;opts&quot; in a bson_t, add new &quot;with_opts&quot; functions. This will allow applications to pass sessionId to GridFS functions. Deprecate superseded functions.&lt;/p&gt;

&lt;p&gt;There are two options: continue to invest in our current GridFS API, which does not conform to the &lt;a href=&quot;https://github.com/mongodb/specifications/blob/master/source/gridfs/gridfs-spec.rst&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;GridFS Spec&lt;/a&gt;, by adding the following variants:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;mongoc_client_get_gridfs_with_opts&lt;/li&gt;
	&lt;li&gt;mongoc_gridfs_create_file_from_stream_with_opts&lt;/li&gt;
	&lt;li&gt;mongoc_gridfs_create_file_with_opts&lt;/li&gt;
	&lt;li&gt;mongoc_gridfs_drop_with_opts&lt;/li&gt;
	&lt;li&gt;mongoc_gridfs_file_remove_with_opts&lt;/li&gt;
	&lt;li&gt;mongoc_gridfs_file_save_with_opts&lt;/li&gt;
	&lt;li&gt;mongoc_gridfs_file_readv_with_opts&lt;/li&gt;
	&lt;li&gt;mongoc_gridfs_file_writev_with_opts&lt;/li&gt;
	&lt;li&gt;mongoc_gridfs_find_one_by_filename_with_opts&lt;/li&gt;
	&lt;li&gt;mongoc_gridfs_remove_by_filename_with_opts&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Update the documentation for mongoc_collection_get_last_error.&lt;/p&gt;

&lt;p&gt;This will make it easy for existing GridFS applications to use sessions. It preserves spec-violating features that applications depend on, such as mutable GridFS files.&lt;/p&gt;

&lt;p&gt;The other, probably superior option is to deprecate our entire GridFS API and create a new spec-conforming one. This new API will be the only way to use sessions with GridFS in the C Driver.&lt;/p&gt;

&lt;p&gt;Applications that use the C Driver&apos;s GridFS API are probably few, and they will have a small number of integration points with the API, and they will need to make code changes to use sessions with GridFS no matter what. Requiring some additional code changes is worth the cost in exchange for matching the GridFS Spec. The big obstacle is the loss of writable GridFS files; but I hope that applications can adapt to use the standard GridFS file versioning scheme instead.&lt;/p&gt;</description>
                <environment></environment>
        <key id="450179">CDRIVER-2332</key>
            <summary>New &quot;with_opts&quot; functions to support sessions with GridFS</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="jesse@mongodb.com">A. Jesse Jiryu Davis</reporter>
                        <labels>
                    </labels>
                <created>Tue, 24 Oct 2017 19:18:47 +0000</created>
                <updated>Mon, 13 Jan 2020 16:06:13 +0000</updated>
                            <resolved>Mon, 13 Jan 2020 15:53:02 +0000</resolved>
                                                                    <component>GridFS</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="2722086" author="kevin.albertson" created="Mon, 13 Jan 2020 16:06:13 +0000"  >&lt;p&gt;Additionally, the new spec compliant mongoc_gridfs_bucket_* API accepts bson_t options. If &lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-2062&quot; title=&quot;Modify GridFS spec to support sessions, transactions and causal consistency&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-2062&quot;&gt;SPEC-921&lt;/a&gt; requires adding sessions/transactions/causal consistency, there may be no API change required.&lt;/p&gt;</comment>
                            <comment id="2722033" author="april.schoffer" created="Mon, 13 Jan 2020 15:53:02 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-2062&quot; title=&quot;Modify GridFS spec to support sessions, transactions and causal consistency&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-2062&quot;&gt;SPEC-921&lt;/a&gt; will sort out session support for the spec compliant GridFS API and we won&apos;t need this ticket. &lt;/p&gt;</comment>
                            <comment id="1883222" author="jesse" created="Fri, 4 May 2018 17:15:12 +0000"  >&lt;p&gt;Probably not do this ticket, in favor of &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2643&quot; title=&quot;Make the GridFS implementation spec compliant&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2643&quot;&gt;&lt;del&gt;CDRIVER-2643&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="449140">CDRIVER-2331</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="539139">CDRIVER-2643</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="422025">DRIVERS-2062</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|htafmn:</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>