<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:12: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>[CDRIVER-1452] Attempt to clean/normalize values collected in mongoc-metadata</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-1452</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;In some parts of the metadata collection process, we do nothing to &quot;sanitize&quot; the strings we collect. For example, the values may have quotes around them. We also don&apos;t do much to make sure the values are whitespace trimmed.  Hannes brought this up in a code review for the linux distro scanner, so I&apos;m opening a ticket for it.&lt;/p&gt;

&lt;p&gt;I think we should either:&lt;/p&gt;

&lt;p&gt;a) Decide not to do this, and just put the responsibility on whoever is analyzing this data.&lt;/p&gt;

&lt;p&gt;b) Do this as a separate step in the mongoc-metadata code. If we go with this option we should define exactly what kind of sanitizing we want to do here.&lt;/p&gt;</description>
                <environment></environment>
        <key id="306835">CDRIVER-1452</key>
            <summary>Attempt to clean/normalize values collected in mongoc-metadata</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="9">Done</resolution>
                                        <assignee username="bjori">Hannes Magnusson</assignee>
                                    <reporter username="ian.boros@mongodb.com">Ian Boros</reporter>
                        <labels>
                    </labels>
                <created>Fri, 5 Aug 2016 15:25:22 +0000</created>
                <updated>Wed, 19 Oct 2016 22:33:29 +0000</updated>
                            <resolved>Fri, 2 Sep 2016 16:50:02 +0000</resolved>
                                                    <fixVersion>1.5.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1375787" author="xgen-internal-githook" created="Fri, 2 Sep 2016 16:36:42 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;bjori&apos;, u&apos;name&apos;: u&apos;Hannes Magnusson&apos;, u&apos;email&apos;: u&apos;bjori@php.net&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1452&quot; title=&quot;Attempt to clean/normalize values collected in mongoc-metadata&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1452&quot;&gt;&lt;del&gt;CDRIVER-1452&lt;/del&gt;&lt;/a&gt; Remove quotes around values&lt;/p&gt;

&lt;p&gt;And use the distro name, not its ID.&lt;br/&gt;
This makes for more human readable value&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/f80882af4dc13018015995ff017bcda284541065&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/f80882af4dc13018015995ff017bcda284541065&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1370879" author="bjori" created="Mon, 29 Aug 2016 17:43:13 +0000"  >&lt;p&gt;These quotes for the distro name is getting a littlebit annoying. I think we should consider doing this sooner then later&lt;/p&gt;</comment>
                            <comment id="1348564" author="ian.boros" created="Fri, 5 Aug 2016 15:34:17 +0000"  >&lt;p&gt;I&apos;m putting my take on both options in this comment to separate my opinions from what the options (as I see them) are&lt;/p&gt;

&lt;p&gt;1)&lt;br/&gt;
 This is a good option, I think, since whoever does the analysis of this will also have to deal with things like the os name being &quot;RHEL&quot; in some cases and &quot;Red Hat&quot; in others. As part of reconciling these inconsistencies, they&apos;ll probably also have to sanitize the strings, so putting in the extra work to do it in C isn&apos;t worth it.&lt;/p&gt;

&lt;p&gt;2)&lt;br/&gt;
The only good argument I see for this is that extra whitespace and quotes take up space and we should try to conserve space. With that said, this would be a &quot;micro optimization&quot; (we&apos;d maybe save a few bytes per document...)&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="317406">CDRIVER-1552</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>CDRIVER-1325</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsoef3:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>