<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:52:49 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>[SERVER-61589] Disallow users from creating collections with &apos;system.buckets&apos; prefix</title>
                <link>https://jira.mongodb.org/browse/SERVER-61589</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;There are a few places in the code which assume that a collection name with &apos;system.buckets&apos; prefix implies that, the collection is a time-series collection. But we do allow users to create a regular collection with &apos;system.buckets&apos; prefix. This might lead to some inconsistent behaviour. We generally don&apos;t allow users to create a collection with &apos;system.&apos; prefix, so we should not treat &apos;system.buckets&apos; prefix differently. &lt;/p&gt;</description>
                <environment></environment>
        <key id="1928469">SERVER-61589</key>
            <summary>Disallow users from creating collections with &apos;system.buckets&apos; prefix</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="13202">Works as Designed</resolution>
                                        <assignee username="gregory.noma@mongodb.com">Gregory Noma</assignee>
                                    <reporter username="arun.banala@mongodb.com">Arun Banala</reporter>
                        <labels>
                    </labels>
                <created>Thu, 18 Nov 2021 15:03:38 +0000</created>
                <updated>Fri, 27 Oct 2023 13:52:11 +0000</updated>
                            <resolved>Mon, 24 Oct 2022 21:13:12 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="4923833" author="gregory.noma" created="Mon, 24 Oct 2022 21:12:30 +0000"  >&lt;p&gt;For the reasons mentioned above, I don&apos;t think we can do this ticket as described. I am closing it out and I have filed &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-70822&quot; title=&quot;Consider restricting built-in roles permissions on system.buckets collections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-70822&quot;&gt;&lt;del&gt;SERVER-70822&lt;/del&gt;&lt;/a&gt; as a potential follow-up. If the state of things changes in the future and it does become possible, we can reconsider.&lt;/p&gt;</comment>
                            <comment id="4912872" author="gregory.noma" created="Wed, 19 Oct 2022 15:20:48 +0000"  >&lt;p&gt;We can&apos;t totally ban creating a collections beginning with &lt;tt&gt;system.buckets&lt;/tt&gt; because &lt;tt&gt;mongorestore&lt;/tt&gt; needs to be able to create those collections. An alternative idea was to restrict this to only users with the &lt;tt&gt;restore&lt;/tt&gt; role and remove it from all other built-in roles. However, the issue here is that users could always just create custom roles which give this ability, and we don&apos;t currently have a way to restrict custom roles in this way.&lt;/p&gt;</comment>
                            <comment id="4894042" author="JIRAUSER1257318" created="Tue, 11 Oct 2022 13:20:36 +0000"  >&lt;p&gt;I filed &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-70445&quot; title=&quot;Server crash when reading from sharded collections with user-created &amp;#39;&amp;lt;db&amp;gt;.system.buckets.&amp;lt;coll&amp;gt;&amp;#39; collection&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-70445&quot;&gt;&lt;del&gt;SERVER-70445&lt;/del&gt;&lt;/a&gt; to investigate that possibility.&lt;/p&gt;</comment>
                            <comment id="4886256" author="gregory.noma" created="Fri, 7 Oct 2022 15:42:21 +0000"  >&lt;blockquote&gt;&lt;p&gt;We generally don&apos;t allow users to create a collection with &apos;system.&apos; prefix&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;This actually isn&apos;t really the case; we allow users to create a &lt;tt&gt;system&lt;/tt&gt; collection as long as it is a valid system collection. For instance, users can create &lt;tt&gt;system.views&lt;/tt&gt; or &lt;tt&gt;system.resharding.a&lt;/tt&gt; but they cannot create &lt;tt&gt;system.foo&lt;/tt&gt;. So following this pattern would imply that we should not make this change.&lt;/p&gt;</comment>
                            <comment id="4207727" author="henrik.edin" created="Tue, 23 Nov 2021 16:35:48 +0000"  >&lt;p&gt;We need to check so this doesn&apos;t break mongorestore.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="2079892">SERVER-67676</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1863103">SERVER-59666</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2156453">SERVER-70445</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2165947">SERVER-70822</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 23 Nov 2021 16:35:48 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 15 weeks, 2 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            1 year, 15 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>105.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>arun.banala@mongodb.com</customfieldvalue>
            <customfieldvalue>gregory.noma@mongodb.com</customfieldvalue>
            <customfieldvalue>henrik.edin@mongodb.com</customfieldvalue>
            <customfieldvalue>jordi.serra-torrens@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0avnr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i0tl8c:</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_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="6332">Execution Team 2022-10-17</customfieldvalue>
    <customfieldvalue id="6333">Execution Team 2022-10-31</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;&amp;gt; db.createCollection(&quot;system.new&quot;)&lt;/p&gt;
{
	&quot;ok&quot; : 0,
	&quot;errmsg&quot; : &quot;Invalid system namespace: test.system.new&quot;,
	&quot;code&quot; : 73,
	&quot;codeName&quot; : &quot;InvalidNamespace&quot;
}
&lt;p&gt;&amp;gt; db.createCollection(&quot;system.buckets.new&quot;)&lt;/p&gt;
{ &quot;ok&quot; : 1 }
&lt;p&gt;&amp;gt; db.new.insert({})&lt;br/&gt;
WriteCommandError(&lt;/p&gt;
{
	&quot;ok&quot; : 0,
	&quot;errmsg&quot; : &quot;time-series insert failed: test.new :: caused by :: Time-series buckets collection is missing time-series options&quot;,
	&quot;code&quot; : 72,
	&quot;codeName&quot; : &quot;InvalidOptions&quot;
}
&lt;p&gt;)&lt;/p&gt;</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0aht3:</customfieldvalue>

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