<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:13:24 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-47138] MSI installer produces incorrect config file</title>
                <link>https://jira.mongodb.org/browse/SERVER-47138</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The MSI installer has a custom screen on which the user can enter the path to data files and logs.&#160;The mongod.cfg file is produced based on the settings on this screen.&lt;/p&gt;

&lt;p&gt;If the user selects a shorter path of the log file or data directory than defaults, an incorrect config file is produced.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;I have provided a [PR #1355 on GitHub|&lt;a href=&quot;https://github.com/mongodb/mongo/pull/1355&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/pull/1355&lt;/a&gt;] that should fix the issue (I wasn&apos;t able to build and test the installer, but I hope I fixed it correctly).&lt;/p&gt;</description>
                <environment></environment>
        <key id="1292623">SERVER-47138</key>
            <summary>MSI installer produces incorrect config file</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="13201">Fixed</resolution>
                                        <assignee username="andrew.morrow@mongodb.com">Andrew Morrow</assignee>
                                    <reporter username="herceg.tomas@gmail.com">Tom&#225;&#353; Herceg</reporter>
                        <labels>
                    </labels>
                <created>Thu, 26 Mar 2020 17:27:20 +0000</created>
                <updated>Sun, 29 Oct 2023 22:10:17 +0000</updated>
                            <resolved>Thu, 25 Jun 2020 19:32:46 +0000</resolved>
                                    <version>4.2.3</version>
                                    <fixVersion>4.4.1</fixVersion>
                    <fixVersion>4.7.0</fixVersion>
                    <fixVersion>4.2.10</fixVersion>
                    <fixVersion>4.0.21</fixVersion>
                                    <component>Packaging</component>
                                        <votes>1</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="3332697" author="xgen-internal-githook" created="Tue, 11 Aug 2020 15:43:52 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Nir Bar&apos;, &apos;email&apos;: &apos;nir.bar@panel-sw.co.il&apos;, &apos;username&apos;: &apos;nirbar&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47138&quot; title=&quot;MSI installer produces incorrect config file&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47138&quot;&gt;&lt;del&gt;SERVER-47138&lt;/del&gt;&lt;/a&gt; Fix mongod.cfg file size when replacing tokens in the custom action&lt;/p&gt;

&lt;p&gt;Closes #1366&lt;/p&gt;

&lt;p&gt;Signed-off-by: Andrew Morrow &amp;lt;acm@mongodb.com&amp;gt;&lt;br/&gt;
(cherry picked from commit c61e18a3c3e18bfa486df3c8ac5a4632a390aa3a)&lt;br/&gt;
(cherry picked from commit 9d0319b24e374653127f9df97af812885b6adc96)&lt;br/&gt;
(cherry picked from commit 4346b20b96f5e4c04d4556c02423562177488e18)&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/9429e8b95f587fba1d695e1599bb1ad00c6cde0a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/9429e8b95f587fba1d695e1599bb1ad00c6cde0a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3332613" author="xgen-internal-githook" created="Tue, 11 Aug 2020 15:15:44 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Nir Bar&apos;, &apos;email&apos;: &apos;nir.bar@panel-sw.co.il&apos;, &apos;username&apos;: &apos;nirbar&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47138&quot; title=&quot;MSI installer produces incorrect config file&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47138&quot;&gt;&lt;del&gt;SERVER-47138&lt;/del&gt;&lt;/a&gt; Fix mongod.cfg file size when replacing tokens in the custom action&lt;/p&gt;

&lt;p&gt;Closes #1366&lt;/p&gt;

&lt;p&gt;Signed-off-by: Andrew Morrow &amp;lt;acm@mongodb.com&amp;gt;&lt;br/&gt;
(cherry picked from commit c61e18a3c3e18bfa486df3c8ac5a4632a390aa3a)&lt;br/&gt;
(cherry picked from commit 9d0319b24e374653127f9df97af812885b6adc96)&lt;br/&gt;
Branch: v4.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/4346b20b96f5e4c04d4556c02423562177488e18&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/4346b20b96f5e4c04d4556c02423562177488e18&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3323971" author="xgen-internal-githook" created="Thu, 6 Aug 2020 04:15:18 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Nir Bar&apos;, &apos;email&apos;: &apos;nir.bar@panel-sw.co.il&apos;, &apos;username&apos;: &apos;nirbar&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47138&quot; title=&quot;MSI installer produces incorrect config file&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47138&quot;&gt;&lt;del&gt;SERVER-47138&lt;/del&gt;&lt;/a&gt; Fix mongod.cfg file size when replacing tokens in the custom action&lt;/p&gt;

&lt;p&gt;Closes #1366&lt;/p&gt;

&lt;p&gt;Signed-off-by: Andrew Morrow &amp;lt;acm@mongodb.com&amp;gt;&lt;br/&gt;
(cherry picked from commit c61e18a3c3e18bfa486df3c8ac5a4632a390aa3a)&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/9d0319b24e374653127f9df97af812885b6adc96&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/9d0319b24e374653127f9df97af812885b6adc96&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3224575" author="xgen-internal-githook" created="Thu, 25 Jun 2020 19:32:05 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Nir Bar&apos;, &apos;email&apos;: &apos;nir.bar@panel-sw.co.il&apos;, &apos;username&apos;: &apos;nirbar&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47138&quot; title=&quot;MSI installer produces incorrect config file&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47138&quot;&gt;&lt;del&gt;SERVER-47138&lt;/del&gt;&lt;/a&gt; Fix mongod.cfg file size when replacing tokens in the custom action&lt;/p&gt;

&lt;p&gt;Closes #1366&lt;/p&gt;

&lt;p&gt;Signed-off-by: Andrew Morrow &amp;lt;acm@mongodb.com&amp;gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c61e18a3c3e18bfa486df3c8ac5a4632a390aa3a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c61e18a3c3e18bfa486df3c8ac5a4632a390aa3a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3181369" author="acm" created="Tue, 2 Jun 2020 17:47:19 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=ujr%40insynergie.de&quot; class=&quot;user-hover&quot; rel=&quot;ujr@insynergie.de&quot;&gt;ujr@insynergie.de&lt;/a&gt; - Would you mind filing a new ticket with complete details and reproduction instructions for that behavior?&lt;/p&gt;</comment>
                            <comment id="3003802" author="ujr@insynergie.de" created="Fri, 27 Mar 2020 09:34:23 +0000"  >&lt;p&gt;Great to have this fix!&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;BTW, AFAICT there&apos;s another bug resulting in corrupt configuration: when updating MongoDb with MSI installer. IMO the Custom Action isn&apos;t run at all in this case. Such the configuration file contains template values like %MONGODB_PATH%.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="1300839">SERVER-47259</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>6.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_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="18953"><![CDATA[v4.4]]></customfieldvalue>
    <customfieldvalue key="16775"><![CDATA[v4.2]]></customfieldvalue>
    <customfieldvalue key="15640"><![CDATA[v4.0]]></customfieldvalue>
    <customfieldvalue key="15141"><![CDATA[v3.6]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 26 Mar 2020 18:51:34 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 26 weeks, 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_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16941"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>DEVPROD-273</customfieldvalue>
                        </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>
                            3 years, 26 weeks, 1 day ago
                        </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>andrew.morrow@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>herceg.tomas@gmail.com</customfieldvalue>
            <customfieldvalue>ujr@insynergie.de</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hxbliv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hxdj93:</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="3947">Dev Platform 2020-06-15</customfieldvalue>
    <customfieldvalue id="4006">Dev Platform 2020-06-29</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;ol&gt;
	&lt;li&gt;Run the MSI installer.&lt;/li&gt;
	&lt;li&gt;On the configuration screen, enter some short paths for the database and logs (e.g. c:\data and c:\logs).&lt;/li&gt;
	&lt;li&gt;The mongod.cfg file will be produced incorrectly, and the MongoDB service will be unable to start.&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Actual output (the remaining bytes of the file are not truncated):&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;# mongod.conf&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;# for documentation of all options, see:&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;# &lt;a href=&quot;http://docs.mongodb.org/manual/reference/configuration-options/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org/manual/reference/configuration-options/&lt;/a&gt;&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;# Where and how to store data.&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;storage:&lt;/tt&gt;&lt;br/&gt;
{{ dbPath: C:\data\db}}&lt;br/&gt;
{{ journal:}}&lt;br/&gt;
{{ enabled: true}}&lt;br/&gt;
&lt;tt&gt;# engine:&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;# mmapv1:&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;# wiredTiger:&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;# where to write logging data.&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;systemLog:&lt;/tt&gt;&lt;br/&gt;
{{ destination: file}}&lt;br/&gt;
{{ logAppend: true}}&lt;br/&gt;
{{ path: C:\ProgramData\MongoDB\log\mongod.log}}&lt;tt&gt;# network interfaces&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;net:&lt;/tt&gt;&lt;br/&gt;
{{ port: 27017}}&lt;br/&gt;
{{ bindIp: 127.0.0.1}}&lt;br/&gt;
&lt;tt&gt;#processManagement:&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;#security:&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;#operationProfiling:&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;#replication:&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;#sharding:&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;## Enterprise-Only Options:&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;#auditLog:&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;#snmp:&lt;/tt&gt;&lt;br/&gt;
&lt;font color=&quot;#FF0000&quot;&gt;&lt;tt&gt;ditLog:&lt;/tt&gt;&lt;/font&gt;&lt;br/&gt;
&lt;font color=&quot;#FF0000&quot;&gt;&lt;tt&gt;#snmp:&lt;/tt&gt;&lt;/font&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|hxb7s7:</customfieldvalue>

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