<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:16:36 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-8118] serverStatus locks and recordStats have invalid text in keys</title>
                <link>https://jira.mongodb.org/browse/SERVER-8118</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I discovered this problem while trying to solve a problem with a Nagios MongoDB monitoring plugin that was returning &quot;CRITICAL - General MongoDB Error: &apos;utf8&apos; codec can&apos;t decode bytes in position 0-1: illegal encoding&quot; while checking several MongoDB statistics from the serverStatus command.&lt;/p&gt;

&lt;p&gt;See the attached output from serverStatus using a browser.&lt;/p&gt;

&lt;p&gt;First note the interesting and large array of fields in &quot;locks&quot; and &quot;recordStats&quot;. The documentation doesn&apos;t explain that. Note near the bottom of each field alphabetically there are several keys that appear to be binary and possibly badly encoded.&lt;/p&gt;

&lt;p&gt;I&apos;m supposing that these badly formed strings are breaking the python string codec in the monitoring plugin.&lt;/p&gt;

&lt;p&gt;Restarting the mongodb instance resolves the issue by removing nearly all of the locks and recordStats.&lt;/p&gt;</description>
                <environment></environment>
        <key id="61448">SERVER-8118</key>
            <summary>serverStatus locks and recordStats have invalid text in keys</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="ramon.fernandez@mongodb.com">Ramon Fernandez Marina</assignee>
                                    <reporter username="morrisjones">Morris Jones</reporter>
                        <labels>
                    </labels>
                <created>Wed, 9 Jan 2013 16:53:39 +0000</created>
                <updated>Thu, 25 Sep 2014 15:34:33 +0000</updated>
                            <resolved>Thu, 25 Sep 2014 15:34:18 +0000</resolved>
                                    <version>2.2.2</version>
                                                    <component>HTTP Console</component>
                                        <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="727058" author="ramon.fernandez" created="Thu, 25 Sep 2014 15:33:40 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=morrisjones&quot; class=&quot;user-hover&quot; rel=&quot;morrisjones&quot;&gt;morrisjones&lt;/a&gt;, this is to let you know we&apos;re closing this old ticket. The issue of restricting the names and encodings that can be accepted by MongoDB is being discussed in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-5002&quot; title=&quot;Change prohibited character sets in database names&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-5002&quot;&gt;&lt;del&gt;SERVER-5002&lt;/del&gt;&lt;/a&gt;, so feel free to tune in to that ticket and vote for it.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Ram&#243;n.&lt;/p&gt;</comment>
                            <comment id="235332" author="morrisjones" created="Wed, 9 Jan 2013 18:53:07 +0000"  >&lt;p&gt;I think I know the source of the bad data. I suspect it&apos;s coming from an automated security scan generated internally. (I&apos;m at Disney.)&lt;/p&gt;

&lt;p&gt;The http interface is useful, but given no other workaround for this problem, I certainly will have to turn it off.&lt;/p&gt;

&lt;p&gt;Unfortunately I don&apos;t know enough Python to make the monitoring plug-in tolerant of malformed strings in the json. &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/sad.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="235297" author="tad" created="Wed, 9 Jan 2013 18:25:25 +0000"  >&lt;p&gt;If you don&apos;t have a need for the HTTP interface, you can turn it off with --nohttpinterface on the mongod command line.  This should prevent a recurrence of this problem.&lt;/p&gt;

&lt;p&gt;Even over the normal interface, strings are not checked for UTF-8 validity unless --objcheck is turned on, so I&apos;m not surprised that garbage sent to the HTTP interface could result in invalid UTF-8.&lt;/p&gt;</comment>
                            <comment id="235277" author="morrisjones" created="Wed, 9 Jan 2013 18:03:11 +0000"  >&lt;p&gt;Thanks for mentioning that. I really wanted to know how all that garbage data could have been generated. This sample log is one of about a dozen servers in development space. The HTTP access is open, but the machines do not have public visibility. They&apos;re on a private network behind a VPN.&lt;/p&gt;</comment>
                            <comment id="235265" author="tad" created="Wed, 9 Jan 2013 17:50:51 +0000"  >&lt;p&gt;This json file is full of &quot;&amp;lt;script&amp;gt; alert&quot; fragments, and it looks like the set of collections contains a lot of garbage.  Do you allow access to the HTTP interface and is it possible that the REST interface has been inadvertently used to flood the server with bogus collection names?  Names like &quot;_vti_cnf&quot; suggest FrontPage extensions, as if someone tried to update the HTTP URL with an update intended for another server.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="30912">SERVER-5002</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="23004" name="serverStatus.json" size="306055" author="morrisjones" created="Wed, 9 Jan 2013 16:53:39 +0000"/>
                    </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_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 9 Jan 2013 17:50:51 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 years, 20 weeks, 6 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="10020"><![CDATA[Linux]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>morrisjones</customfieldvalue>
            <customfieldvalue>ramon.fernandez@mongodb.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|hrncfb:</customfieldvalue>

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

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

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