<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:07: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>[SERVER-4913] prevent process segv crash in javascript when a document has some bad string value</title>
                <link>https://jira.mongodb.org/browse/SERVER-4913</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The following strings in documents crashed mongod, as seen from pymongo:&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;u &amp;#39;\ufffd\udc34\ufffd\ufffd@xxxxxxxx.co.kr&amp;#39;&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;In general we&apos;ve seen crashes whenever a string could not be decoded into UTF-16.&lt;/p&gt;</description>
                <environment></environment>
        <key id="30193">SERVER-4913</key>
            <summary>prevent process segv crash in javascript when a document has some bad string value</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="3">Duplicate</resolution>
                                        <assignee username="antoine">Antoine Girbal</assignee>
                                    <reporter username="antoine">Antoine Girbal</reporter>
                        <labels>
                    </labels>
                <created>Wed, 8 Feb 2012 18:15:58 +0000</created>
                <updated>Wed, 15 Aug 2012 14:04:16 +0000</updated>
                            <resolved>Sat, 11 Aug 2012 09:47:13 +0000</resolved>
                                                                    <component>JavaScript</component>
                                        <votes>10</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="90419" author="tad" created="Tue, 21 Feb 2012 14:50:33 +0000"  >&lt;p&gt;Note that the other character in your description example (\ufffd) is itself the character usually used to represent a Unicode error.  Probably, isolated surrogate halves  (U+D800 through U+DBFF without matching U+DC00 through U+DFFF, or vice versa) should be converted to the the error character.&lt;/p&gt;</comment>
                            <comment id="90365" author="p.dmitriev@nimble.com" created="Tue, 21 Feb 2012 12:32:59 +0000"  >&lt;p&gt;Hello, &lt;/p&gt;

&lt;p&gt;Could you please provide us any ETA for this bug fix? It&apos;s very important for us.&lt;/p&gt;</comment>
                            <comment id="86808" author="antoine" created="Thu, 9 Feb 2012 08:04:26 +0000"  >&lt;p&gt;The character triggering the issue here is \udc34&lt;br/&gt;
If you look up the unicode table it is a low-surrogate character which is supposed to be used in combination with a high-surrogate.&lt;br/&gt;
&lt;a href=&quot;http://www.utf8-chartable.de/unicode-utf8-table.pl&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.utf8-chartable.de/unicode-utf8-table.pl&lt;/a&gt;&lt;br/&gt;
Here it is not in use with a high-surrogate, which may trigger the crash in SM.&lt;/p&gt;</comment>
                            <comment id="86598" author="antoine" created="Wed, 8 Feb 2012 18:34:20 +0000"  >&lt;p&gt;Did insert with pymongo.&lt;br/&gt;
Got following error when trying to execute eval with a 2.0.2 SM build:&lt;/p&gt;

&lt;p&gt;&amp;gt;&amp;gt;&amp;gt; c.test.eval(&quot;doc = db.foo.findOne(); print(&apos;blah&apos;); printjson(doc)&quot;)&lt;br/&gt;
Traceback (most recent call last):&lt;br/&gt;
  File &quot;&amp;lt;stdin&amp;gt;&quot;, line 1, in &amp;lt;module&amp;gt;&lt;br/&gt;
  File &quot;/Library/Python/2.7/site-packages/pymongo/database.py&quot;, line 688, in eval&lt;br/&gt;
    result = self.command(&quot;$eval&quot;, code, args=args)&lt;br/&gt;
  File &quot;/Library/Python/2.7/site-packages/pymongo/database.py&quot;, line 353, in command&lt;br/&gt;
    msg, allowable_errors)&lt;br/&gt;
  File &quot;/Library/Python/2.7/site-packages/pymongo/helpers.py&quot;, line 127, in _check_command_response&lt;br/&gt;
    raise OperationFailure(ex_msg, response.get(&quot;assertionCode&quot;))&lt;br/&gt;
pymongo.errors.OperationFailure: db assertion failure, assertion: &apos;Not proper UTF-16: 123,10,9,34,95,105,100,34,32,58,32,79,98,106,101,99,116,73,100,40,34,52,102,51,50,98,100,101,53,56,97,102,52,101,51,53,56,50,98,48,48,48,48,48,49,34,41,44,10,9,34,115,116,114,34,32,58,32,34,65533,56372,65533,65533,64,111,105,108,98,97,110,107,46,99,111,46,107,114,34,10,125&apos;, assertionCode: 13498&lt;/p&gt;

&lt;p&gt;Using v8 build, no such error.&lt;br/&gt;
Printed on server side:&lt;br/&gt;
blah&lt;br/&gt;
{&lt;br/&gt;
	&quot;_id&quot; : ObjectId(&quot;4f32bde58af4e3582b000001&quot;),&lt;br/&gt;
	&quot;str&quot; : &quot;&#65533;???&#65533;&#65533;@xxxxxxx.co.kr&quot;&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;unlikely that SM is using a &quot;limited&quot; set of UTF16.&lt;br/&gt;
So most likely those characters are triggering an alignment bug either within SM or the SM wrapper.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="38702">SERVER-5842</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 21 Feb 2012 12:32:59 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 1 day 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>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 1 day 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>antoine</customfieldvalue>
            <customfieldvalue>p.dmitriev@nimble.com</customfieldvalue>
            <customfieldvalue>tad</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrodzz:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>23501</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_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|ht0a93:</customfieldvalue>

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