<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:20:01 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-9310] Shell doesn&apos;t work when started from a PowerShell ISE session</title>
                <link>https://jira.mongodb.org/browse/SERVER-9310</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When starting the mongo.exe process from within a PowerShell ISE session, control is not returned to the user and the prompt doesn&apos;t appear.&lt;/p&gt;

&lt;p&gt;The attached screenshot shows the expected behaviour (Command Prompt and standard PowerShell session) compared to a PowerShell ISE session.&lt;/p&gt;</description>
                <environment>Windows 8, Windows PowerShell ISE 3.0</environment>
        <key id="71331">SERVER-9310</key>
            <summary>Shell doesn&apos;t work when started from a PowerShell ISE session</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="9">Done</resolution>
                                        <assignee username="backlog-server-platform">DO NOT USE - Backlog - Platform Team</assignee>
                                    <reporter username="tjrobinson">Tom Robinson</reporter>
                        <labels>
                            <label>WIndows</label>
                            <label>powershell</label>
                            <label>shell</label>
                    </labels>
                <created>Wed, 10 Apr 2013 13:15:37 +0000</created>
                <updated>Fri, 13 Jan 2017 19:55:25 +0000</updated>
                            <resolved>Fri, 13 Jan 2017 19:55:25 +0000</resolved>
                                    <version>2.4.1</version>
                                                    <component>Shell</component>
                                        <votes>2</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="1476646" author="justin.cohler" created="Fri, 13 Jan 2017 19:55:25 +0000"  >&lt;p&gt;We currently only support cmd.exe and powershell.exe&lt;/p&gt;</comment>
                            <comment id="311056" author="tjrobinson" created="Thu, 11 Apr 2013 12:24:41 +0000"  >&lt;p&gt;Since it sounds like this can&apos;t be fixed fully, an error message would be good - just to let the user know what is happening.&lt;/p&gt;

&lt;p&gt;This blog post confirms the problem is in the PowerShell ISE:&lt;br/&gt;
&lt;a href=&quot;http://blogs.msdn.com/b/powershell/archive/2009/02/04/console-application-non-support-in-the-ise.aspx&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://blogs.msdn.com/b/powershell/archive/2009/02/04/console-application-non-support-in-the-ise.aspx&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It&apos;s a shame because it&apos;s much simpler to select, copy and paste text inside the PowerShell ISE shell.&lt;/p&gt;</comment>
                            <comment id="310993" author="tad" created="Thu, 11 Apr 2013 10:05:00 +0000"  >&lt;p&gt;When I break into the mongo.exe process in the debugger while it is hung in PowerShell ISE, it is in a call to ReadConsoleInputW().  Since there is no console to read from, this call never returns.  To either make this work when run directly in PowerShell ISE or to detect this situation and exit with an error message, we&apos;d need some additional code.  This could be done, but perhaps it isn&apos;t as worthwhile as other things that we could work on since the workaround (run the shell in the environment that it was written for, i.e. the Windows console) is pretty easy.&lt;/p&gt;</comment>
                            <comment id="310987" author="tad" created="Thu, 11 Apr 2013 09:54:28 +0000"  >&lt;p&gt;The &apos;start-process&apos; command starts mongo.exe in its own Command Prompt window, so it works fine that way.&lt;/p&gt;</comment>
                            <comment id="310703" author="eaoadegbile@yahoo.co.uk" created="Wed, 10 Apr 2013 23:42:50 +0000"  >&lt;p&gt;To Start Mongo from the PowerShell ISE Session use the full path to the Mongo application,but make sure that you have a running instance of mongod or else the session will automatically close as shown below&lt;/p&gt;

&lt;p&gt; start-process C:\mongodb2_4_1\mongodb-win32-i386-2.4.1\bin\mongod.exe&lt;/p&gt;

&lt;p&gt; start-process C:\mongodb2_4_1\mongodb-win32-i386-2.4.1\bin\mongo.exe&lt;/p&gt;</comment>
                            <comment id="310650" author="tad" created="Wed, 10 Apr 2013 22:02:41 +0000"  >&lt;p&gt;This is a family of Windows functions that let a program work directly with its &quot;container&quot;.&lt;/p&gt;

&lt;p&gt;For example:&lt;br/&gt;
&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/windows/desktop/ms681913(v=vs.85).aspx&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://msdn.microsoft.com/en-us/library/windows/desktop/ms681913(v=vs.85).aspx&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/windows/desktop/ms682073(v=vs.85).aspx&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://msdn.microsoft.com/en-us/library/windows/desktop/ms682073(v=vs.85).aspx&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/windows/desktop/ms684202(v=vs.85).aspx&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://msdn.microsoft.com/en-us/library/windows/desktop/ms684202(v=vs.85).aspx&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;These functions are used by the shell on Windows, and their absence is why you see nothing when running mongo.exe in the ISE.&lt;/p&gt;</comment>
                            <comment id="310560" author="tjrobinson" created="Wed, 10 Apr 2013 20:01:59 +0000"  >&lt;p&gt;I&apos;m not sure what you mean by &quot;PowerShell ISE does not provide a Console windows or its own Console API&quot;&lt;/p&gt;</comment>
                            <comment id="310555" author="tad" created="Wed, 10 Apr 2013 19:52:16 +0000"  >&lt;p&gt;I&apos;m not sure that this makes sense.  The mongo.exe shell uses Windows Console APIs to get its input and produce its output, and the PowerShell ISE does not provide a Console windows or its own Console API, so this would be a rewrite of the I/O routines.  The mongo.exe shell works fine in a regular PowerShell console window.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="25815" name="screenshot.png" size="45374" author="tjrobinson" created="Wed, 10 Apr 2013 13:15:37 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 10 Apr 2013 19:52:16 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        7 years, 4 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>justin.cohler</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            7 years, 4 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="10022"><![CDATA[Windows]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>eaoadegbile@yahoo.co.uk</customfieldvalue>
            <customfieldvalue>backlog-server-platform</customfieldvalue>
            <customfieldvalue>justin.cohler</customfieldvalue>
            <customfieldvalue>tad</customfieldvalue>
            <customfieldvalue>tjrobinson</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmxj3:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6689</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;1. Open the PowerShell ISE&lt;br/&gt;
2. Execute mongo.exe at the PowerShell prompt&lt;br/&gt;
3. The following will be displayed:&lt;/p&gt;

&lt;p&gt;MongoDB shell version: 2.4.1&lt;br/&gt;
connecting to: test&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|hsgmev:</customfieldvalue>

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