<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:56:30 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>[JAVA-2162] DefaultServerMonitor loses security context on creating directly new thread</title>
                <link>https://jira.mongodb.org/browse/JAVA-2162</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;When using Kerberos authentication and credentials are stored in Subject. &lt;br/&gt;
Monitor thread is not able to authenticate as while creating&lt;br/&gt;
Thread monitorThread = new Thread( monitor, &quot;cluster-&quot; + serverId.getClusterId() + &quot;-&quot; + serverId.getAddress() );&lt;br/&gt;
Old AccessControlContext (which contains Kerberos credentials) is not inherited. &lt;/p&gt;

&lt;p&gt;So the only workaround is to set javax.security.auth.useSubjectCredsOnly=false and use system ticket (But this is not working in case of using different clusters with different principals at the same time). &lt;/p&gt;

&lt;p&gt;The simplest fix is just wrap ServerMonitorRunnable() with AccessController.doPrivileged().&lt;/p&gt;</description>
                <environment></environment>
        <key id="276638">JAVA-2162</key>
            <summary>DefaultServerMonitor loses security context on creating directly new thread</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="-1">Unassigned</assignee>
                                    <reporter username="stepanovdg@gmail.com">Dzmitry Stsiapanau</reporter>
                        <labels>
                    </labels>
                <created>Fri, 1 Apr 2016 08:27:45 +0000</created>
                <updated>Fri, 1 Apr 2016 18:43:16 +0000</updated>
                            <resolved>Fri, 1 Apr 2016 18:43:16 +0000</resolved>
                                    <version>3.0.0</version>
                                                    <component>Authentication</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1222884" author="jeff.yemin" created="Fri, 1 Apr 2016 18:42:39 +0000"  >&lt;p&gt;We don&apos;t have a release date fixed yet, but please watch for announcements in the mongodb-announce Google group.  I expect the release some time in May. &lt;/p&gt;</comment>
                            <comment id="1222513" author="stepanovdg@gmail.com" created="Fri, 1 Apr 2016 14:54:10 +0000"  >&lt;p&gt;Yes, thank you. &lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2106&quot; title=&quot;Improve configurability of GSSAPI authentication&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2106&quot;&gt;&lt;del&gt;JAVA-2106&lt;/del&gt;&lt;/a&gt; fix suits and works for our situation.&lt;br/&gt;
When 3.3.0 GA will be available.&lt;/p&gt;</comment>
                            <comment id="1222292" author="ross@10gen.com" created="Fri, 1 Apr 2016 09:30:24 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=stepanovdg%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;stepanovdg@gmail.com&quot;&gt;stepanovdg@gmail.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thanks for the ticket.  Quick question before I investigate further, do the forthcoming changes in &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2106&quot; title=&quot;Improve configurability of GSSAPI authentication&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2106&quot;&gt;&lt;del&gt;JAVA-2106&lt;/del&gt;&lt;/a&gt; fix this issue for you? It seems to cover the same issue, albeit with a different proposed solution.&lt;/p&gt;

&lt;p&gt;Currently, 3.3.0 has not been released but a snapshot is available from Sontatype: &lt;a href=&quot;https://oss.sonatype.org/content/repositories/snapshots/org/mongodb/mongo-java-driver/3.3.0-SNAPSHOT/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://oss.sonatype.org/content/repositories/snapshots/org/mongodb/mongo-java-driver/3.3.0-SNAPSHOT/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Regards,&lt;/p&gt;

&lt;p&gt;Ross&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="276641">JAVA-2163</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="115982" name="fastest_fix.txt" size="898" author="stepanovdg@gmail.com" created="Fri, 1 Apr 2016 08:27:45 +0000"/>
                            <attachment id="115981" name="stacktrace.txt" size="1543" author="stepanovdg@gmail.com" created="Fri, 1 Apr 2016 08:27:45 +0000"/>
                    </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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsjzen:</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>