<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:23:20 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-1393] Support authorizedCollections option for listCollections helpers</title>
                <link>https://jira.mongodb.org/browse/DRIVERS-1393</link>
                <project id="10980" key="DRIVERS">Drivers</project>
                    <description>&lt;p&gt;MongoDB 4.0 added an &lt;tt&gt;authorizedCollections&lt;/tt&gt;&#160;boolean option to the &lt;tt&gt;listCollections&lt;/tt&gt;&#160;command, which can be used to limit the command result to collections&#160;the user is authorized to use.&lt;/p&gt;

&lt;p&gt;This ticket should allow the users to set the &lt;tt&gt;authorizedCollections&lt;/tt&gt; option on the &lt;tt&gt;listCollections&lt;/tt&gt;, &lt;tt&gt;listCollectionNames&lt;/tt&gt;, and&#160;&lt;tt&gt;listMongoCollections&lt;/tt&gt; driver methods.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1465491">DRIVERS-1393</key>
            <summary>Support authorizedCollections option for listCollections helpers</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="13453" iconUrl="https://jira.mongodb.org/images/icons/status_generic.gif" description="">Implementing</status>
                    <statusCategory id="4" key="indeterminate" colorName="inprogress"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="jmainaud@zeenea.com">J&#233;r&#244;me Mainaud</reporter>
                        <labels>
                    </labels>
                <created>Tue, 8 Sep 2020 12:35:30 +0000</created>
                <updated>Mon, 13 Feb 2023 16:31:42 +0000</updated>
                                                                <component>listCollections</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="4254056" author="xgen-internal-githook" created="Thu, 16 Dec 2021 16:33:51 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Neil Shweky&apos;, &apos;email&apos;: &apos;neilshweky@gmail.com&apos;, &apos;username&apos;: &apos;Neilshweky&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-1393&quot; title=&quot;Support authorizedCollections option for listCollections helpers&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-1393&quot;&gt;DRIVERS-1393&lt;/a&gt; listCollectionNames should use authorizedCollections argument (#1111)&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-1393&quot; title=&quot;Support authorizedCollections option for listCollections helpers&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-1393&quot;&gt;DRIVERS-1393&lt;/a&gt; add authorizedCollections to the spec&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-1393&quot; title=&quot;Support authorizedCollections option for listCollections helpers&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-1393&quot;&gt;DRIVERS-1393&lt;/a&gt; update docs after Jeremy&apos;s clarifications&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-1393&quot; title=&quot;Support authorizedCollections option for listCollections helpers&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-1393&quot;&gt;DRIVERS-1393&lt;/a&gt; update language, move paragraphs around&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-1393&quot; title=&quot;Support authorizedCollections option for listCollections helpers&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-1393&quot;&gt;DRIVERS-1393&lt;/a&gt; minor language change&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/specifications/commit/15302d273dfa34666d1cabd5341fe80e90c2e164&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/specifications/commit/15302d273dfa34666d1cabd5341fe80e90c2e164&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="4251284" author="jmikola@gmail.com" created="Wed, 15 Dec 2021 18:04:51 +0000"  >&lt;p&gt;Per &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=alexander.golin&quot; class=&quot;user-hover&quot; rel=&quot;alexander.golin&quot;&gt;alexander.golin&lt;/a&gt;&apos;s previous comment:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;whatever we&apos;ve done to support &quot;authorizedDatabases&quot; we should also do here.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;The related spec change for the &lt;a href=&quot;https://docs.mongodb.com/manual/reference/command/listDatabases/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;listDatabases&lt;/a&gt; helpers was &lt;a href=&quot;https://github.com/mongodb/specifications/commit/4d12e63038f14c961498002ddf808db4e5e2dbdf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb/specifications@4d12e63&lt;/a&gt; for SPEC-1342. Note that this option was introduced in a server&apos;s patch release (4.0.5), so it&apos;s not really feasible to check for server support using a wire version as we do for other options. According to &lt;a href=&quot;https://github.com/mongodb/mongo-php-library/blob/1.11.0/src/Command/ListDatabases.php#L53&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this code comment&lt;/a&gt; from PHPLIB, servers before 4.0.5 ignore the option (as opposed to raising an error), but I haven&apos;t personally verified that.&lt;/p&gt;

&lt;p&gt;With respect to &lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-685&quot; title=&quot;Support for &amp;#39;authorizedDatabases&amp;#39; option&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-685&quot;&gt;DRIVERS-685&lt;/a&gt; and SPEC-1342, we should note that the default behavior for drivers is to &lt;em&gt;not&lt;/em&gt; specify the option and only include the option in the outgoing command when it is specified by the user. Support for the option was added to all three &lt;tt&gt;listDatabases&lt;/tt&gt; helpers.&lt;/p&gt;

&lt;p&gt;With respect to this issue, I think we should do the same. All three helpers for &lt;tt&gt;listCollections&lt;/tt&gt; should add support for the option. The default behavior should be to leave it unspecified and only send it in the outgoing command when it is specified by the user. The spec change for &lt;tt&gt;listDatabases&lt;/tt&gt; doesn&apos;t talk about checking for server-side support, so I think we don&apos;t have to worry about that here. Drivers can just document the server version that introduced the option and leave this up to our users.&lt;/p&gt;</comment>
                            <comment id="3398767" author="JIRAUSER1256831" created="Thu, 17 Sep 2020 08:57:53 +0000"  >&lt;p&gt;Hello, &lt;br/&gt;
Thank you for your feedback.&lt;br/&gt;
Indeed, having a consistent behaviour between drivers is certainly something you should do.&lt;/p&gt;</comment>
                            <comment id="3394931" author="esha.bhargava" created="Tue, 15 Sep 2020 16:53:58 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jmainaud%40zeenea.com&quot; class=&quot;user-hover&quot; rel=&quot;jmainaud@zeenea.com&quot;&gt;jmainaud@zeenea.com&lt;/a&gt; Thanks for reporting this issue! We have moved this to the DRIVERS project to discuss if this is something we should do for all our drivers. &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="487905">SERVER-32942</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="1875959">JAVA-4302</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10620">
                    <name>Issue split</name>
                                            <outwardlinks description="split to">
                                        <issuelink>
            <issuekey id="1902476">MOTOR-835</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1902475">PYTHON-2950</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1902468">CDRIVER-4191</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1902469">CXX-2392</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1902478">RUST-1063</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1902470">CSHARP-3918</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1902471">GODRIVER-2190</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1902472">JAVA-4353</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1902473">NODE-3687</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1902474">PHPLIB-740</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1902477">RUBY-2814</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="766440">DRIVERS-685</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="487905">SERVER-32942</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_17052" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Downstream Changes Summary</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;Drivers should sync with &lt;a href=&quot;https://github.com/mongodb/specifications/commit/15302d273dfa34666d1cabd5341fe80e90c2e164&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb/specifications@15302d2&lt;/a&gt;&#160;which&#160;introduced the &lt;tt&gt;authorizedCollections&lt;/tt&gt; option to the three &lt;tt&gt;listCollections&lt;/tt&gt; methods: &lt;tt&gt;listCollections&lt;/tt&gt;, &lt;tt&gt;listCollectionNames&lt;/tt&gt;, &lt;tt&gt;listMongoCollections&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</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/CDRIVER-4191'>CDRIVER-4191</a>
    </td>
    <td>Backlog</td>
    <td class=''></td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/CXX-2392'>CXX-2392</a>
    </td>
    <td>Backlog</td>
    <td class=''></td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/CSHARP-3918'>CSHARP-3918</a>
    </td>
    <td>Fixed</td>
    <td class='hasFixVersion'>2.15.0</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/GODRIVER-2190'>GODRIVER-2190</a>
    </td>
    <td>Done</td>
    <td class='hasFixVersion'>1.9.0</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/JAVA-4353'>JAVA-4353</a>
    </td>
    <td>Done</td>
    <td class='hasFixVersion'>5.0.0</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/NODE-3687'>NODE-3687</a>
    </td>
    <td>Duplicate</td>
    <td class=''></td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/PHPLIB-740'>PHPLIB-740</a>
    </td>
    <td>Fixed</td>
    <td class='hasFixVersion'>1.12.0</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/PYTHON-2950'>PYTHON-2950</a>
    </td>
    <td>Works as Designed</td>
    <td class=''></td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/MOTOR-835'>MOTOR-835</a>
    </td>
    <td>Works as Designed</td>
    <td class=''></td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/RUBY-2814'>RUBY-2814</a>
    </td>
    <td>Fixed</td>
    <td class='hasFixVersion'>2.18.0</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/RUST-1063'>RUST-1063</a>
    </td>
    <td>Backlog</td>
    <td class=''></td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/SWIFT-1377'>SWIFT-1377</a>
    </td>
    <td>Fixed</td>
    <td class='hasFixVersion'>1.4.0</td>
  </tr>
</table>]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_21553" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Quarter</customfieldname>
                        <customfieldvalues>
                                        <label>FY22Q4</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hzqxdr:</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_11150" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>SERVER fixVersion</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="15142"><![CDATA[4.0]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_22279" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Server Compat</customfieldname>
                        <customfieldvalues>
                                        <label>4.0</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>