<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:23: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>[SERVER-10693] Redact pipeline not including non-object array members</title>
                <link>https://jira.mongodb.org/browse/SERVER-10693</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;jstest example indicate that non-object members of arrays undergoing redaction should be included in field-level filtered results.&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/blob/master/jstests/aggregation/bugs/server8581.js&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/master/jstests/aggregation/bugs/server8581.js&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Asserts in this test don&apos;t test for the inclusion of the:&lt;br/&gt;
&quot;NOT AN OBJECT!!11!&quot; // always included when b is included&lt;br/&gt;
line in the results of a level 3 redaction&lt;/p&gt;</description>
                <environment></environment>
        <key id="88759">SERVER-10693</key>
            <summary>Redact pipeline not including non-object array members</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="matt.dannenberg">Matt Dannenberg</assignee>
                                    <reporter username="david.erickson">David Erickson</reporter>
                        <labels>
                    </labels>
                <created>Fri, 6 Sep 2013 12:17:07 +0000</created>
                <updated>Mon, 11 Jul 2016 17:37:58 +0000</updated>
                            <resolved>Fri, 6 Sep 2013 19:43:38 +0000</resolved>
                                    <version>2.5.2</version>
                                    <fixVersion>2.5.3</fixVersion>
                                    <component>Aggregation Framework</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="419631" author="auto" created="Fri, 6 Sep 2013 19:34:25 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;dannenberg&apos;, u&apos;name&apos;: u&apos;matt dannenberg&apos;, u&apos;email&apos;: u&apos;matt.dannenberg@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-10693&quot; title=&quot;Redact pipeline not including non-object array members&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-10693&quot;&gt;&lt;del&gt;SERVER-10693&lt;/del&gt;&lt;/a&gt; added extra test case to ensure nest arrays function properly&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/1d12521aef13942080808d6e1ea36f961f8c964b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/1d12521aef13942080808d6e1ea36f961f8c964b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="419624" author="auto" created="Fri, 6 Sep 2013 19:24:51 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;dannenberg&apos;, u&apos;name&apos;: u&apos;matt dannenberg&apos;, u&apos;email&apos;: u&apos;matt.dannenberg@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-10693&quot; title=&quot;Redact pipeline not including non-object array members&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-10693&quot;&gt;&lt;del&gt;SERVER-10693&lt;/del&gt;&lt;/a&gt; include non-object array members if an array is included in $redact&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/68a5d567d6c56a07a7875effaf2ac1dd37ad2b5d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/68a5d567d6c56a07a7875effaf2ac1dd37ad2b5d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="419285" author="david.erickson" created="Fri, 6 Sep 2013 13:01:56 +0000"  >&lt;p&gt;This is also affecting the results of subset based conditions&lt;/p&gt;

&lt;p&gt;//the following&lt;/p&gt;

&lt;p&gt;db.files.drop();&lt;br/&gt;
db.files.save(&lt;br/&gt;
	{&lt;br/&gt;
	  _id: 1,&lt;br/&gt;
	  a: &lt;/p&gt;
{ data: &quot;something secret&quot;, sl: [ [ &quot;GroupB&quot; ], [ &quot;GroupD&quot;, &quot;GroupA&quot; ] ] }
&lt;p&gt;,&lt;br/&gt;
	  comments: [ &lt;/p&gt;
{ sl: [[&quot;GroupB&quot;]], data: &quot;Don&apos;t tell members of GroupA who are missing GroupB.&quot; }
&lt;p&gt;,&lt;br/&gt;
	              &lt;/p&gt;
{ sl: [[&quot;GroupA&quot;]], data: &quot;What&apos;s in this document?&quot; }
&lt;p&gt; ],&lt;br/&gt;
	  common_field: &quot;Anyone can see this if they can see this document at all.&quot;,&lt;br/&gt;
	  sl: [&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;GroupA&amp;quot;&amp;#93;&lt;/span&gt;, &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;GroupB&amp;quot;&amp;#93;&lt;/span&gt;]&lt;br/&gt;
	}&lt;br/&gt;
);&lt;br/&gt;
db.files.aggregate([&lt;br/&gt;
	{$redact:{$cond: [&lt;br/&gt;
		{$any:[&lt;br/&gt;
			{&lt;br/&gt;
				$map: {&lt;br/&gt;
					input: &quot;$sl&quot;,&lt;br/&gt;
					as: &quot;setNeeded&quot;,&lt;br/&gt;
					in: &lt;/p&gt;
{ $setIsSubset: [&quot;$$setNeeded&quot;, [&quot;GroupA&quot;, &quot;GroupC&quot;]] }
&lt;p&gt;				}&lt;br/&gt;
			}&lt;br/&gt;
		]},&lt;br/&gt;
		&quot;$$CONTINUE&quot;,&lt;br/&gt;
		&quot;$$PRUNE&quot;&lt;br/&gt;
	]}}&lt;br/&gt;
]);&lt;/p&gt;

&lt;p&gt;//returns:&lt;/p&gt;

&lt;p&gt;{&lt;br/&gt;
	&quot;result&quot; : [&lt;br/&gt;
		{&lt;br/&gt;
			&quot;_id&quot; : 1,&lt;br/&gt;
			&quot;comments&quot; : [&lt;/p&gt;
				{
					&quot;sl&quot; : [
						[ ]
					],
					&quot;data&quot; : &quot;What&apos;s in this document?&quot;
				}
&lt;p&gt;			],&lt;br/&gt;
			&quot;common_field&quot; : &quot;Anyone can see this if they can see this document at all.&quot;,&lt;br/&gt;
			&quot;sl&quot; : [&lt;br/&gt;
				[ ],&lt;br/&gt;
				[ ]&lt;br/&gt;
			]&lt;br/&gt;
		}&lt;br/&gt;
	],&lt;br/&gt;
	&quot;ok&quot; : 1&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;//notice how it is stripping the values from the &quot;sl&quot; arrays in the result&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10011"><![CDATA[Minor Change]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 6 Sep 2013 15:53:50 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 23 weeks, 5 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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 23 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></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>auto</customfieldvalue>
            <customfieldvalue>david.erickson</customfieldvalue>
            <customfieldvalue>matt.dannenberg</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmhn3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrspsf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>81414</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_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;t = db.jstests_aggregation_redact;&lt;br/&gt;
t.drop();&lt;br/&gt;
t.save(&lt;br/&gt;
	{&lt;br/&gt;
		_id: 1,&lt;br/&gt;
		level: 2,&lt;br/&gt;
		subobj: {&lt;br/&gt;
			level: 3,&lt;br/&gt;
			text: &quot;level 3 secret&quot;,&lt;br/&gt;
			subarray: [&lt;br/&gt;
				&lt;/p&gt;
{ text: &quot;I&apos;m an object with no level&quot; }
&lt;p&gt;,&lt;br/&gt;
				&lt;/p&gt;
{ level: 1, text: &quot;I&apos;m an object with acceptable level&quot;}
&lt;p&gt;,&lt;br/&gt;
				&lt;/p&gt;
{ level: 100, text: &quot;I&apos;m an object with unacceptable level&quot;}
&lt;p&gt;,&lt;br/&gt;
				&quot;I&apos;m not an object&quot;,&lt;br/&gt;
				10&lt;br/&gt;
			],&lt;br/&gt;
			subobj: &lt;/p&gt;
{
				level:1,
				text: &quot;level 3 secret due to inheritance&quot;
			}
&lt;p&gt;		},&lt;br/&gt;
		secretLevel2: 9,&lt;br/&gt;
		text: &quot;level 2 secret&quot;&lt;br/&gt;
	}&lt;br/&gt;
);&lt;br/&gt;
t.aggregate({$redact:  {$cond: [{$lte: &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;$level&amp;#39;, 3&amp;#93;&lt;/span&gt;}, &quot;$$CONTINUE&quot;, &quot;$$PRUNE&quot;]}});&lt;/p&gt;</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10166" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Tests Written</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10154"><![CDATA[Complete]]></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|hrja5b:</customfieldvalue>

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