<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:55:47 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-1892] Failed to authenticate to database</title>
                <link>https://jira.mongodb.org/browse/JAVA-1892</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;One of developer has an issue of accessing to MongoDB instance (ver 3.0.3) from one of app server. Port 27017 is opened from  the app server to the mongodb intance. &lt;br/&gt;
using mongo -u -p --authnticatiionDatabase I can access to the database.  So it seems OK with credidencial. &lt;/p&gt;

&lt;p&gt;He is using Spring Data MongoDB 1.2.0&lt;br/&gt;
Below is the error message&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;&#8206;7/&#8206;15/&#8206;2015 3:17 PM&amp;#93;&lt;/span&gt; Pearce, Jim: &lt;br/&gt;
No Title&lt;br/&gt;
19:37:40.257 &lt;span class=&quot;error&quot;&gt;&amp;#91;tomcat-http--7&amp;#93;&lt;/span&gt; DEBUG o.s.w.s.m.s.DefaultHandlerExceptionResolver -                                                                                                                                                            Resolving exception from handler &lt;span class=&quot;error&quot;&gt;&amp;#91;public org.springframework.http.ResponseEntity&amp;lt;c                                                                                                                                                           om.visa.ip.vcpc.domain.CRGetPC&amp;lt;com.visa.ip.vcpc.model.PaymentControl&amp;gt;&amp;gt; com.visa.ip                                                                                                                                                           .vcpc.controller.VCPCController.createPaymentControl(com.visa.ip.vcpc.model.Paymen                                                                                                                                                           tControl,java.lang.String,java.lang.String) throws java.lang.Exception&amp;#93;&lt;/span&gt;: org.sprin                                                                                                                                                           gframework.data.mongodb.CannotGetMongoDbConnectionException: Failed to authenticat                                                                                                                                                           e to database &lt;span class=&quot;error&quot;&gt;&amp;#91;vcpc&amp;#93;&lt;/span&gt;, username = &lt;span class=&quot;error&quot;&gt;&amp;#91;vcpc_dev&amp;#93;&lt;/span&gt;, password = &lt;span class=&quot;error&quot;&gt;&amp;#91;v********!&amp;#93;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;Thanks,&lt;/p&gt;</description>
                <environment>Red Hat Enterprise Linux Server release 6.5 (Santiago)&lt;br/&gt;
org.springframework.data&lt;br/&gt;
spring-data-mongodb&lt;br/&gt;
1.2.0.Release</environment>
        <key id="217107">JAVA-1892</key>
            <summary>Failed to authenticate to database</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="jsong@visa.com">jaehee song</reporter>
                        <labels>
                    </labels>
                <created>Wed, 15 Jul 2015 22:43:57 +0000</created>
                <updated>Wed, 11 Sep 2019 19:10:20 +0000</updated>
                            <resolved>Thu, 16 Jul 2015 13:47:43 +0000</resolved>
                                    <version>3.0.2</version>
                                                    <component>Connection Management</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="967687" author="jsong@visa.com" created="Thu, 16 Jul 2015 13:27:27 +0000"  >&lt;p&gt;Our developer upgraded the Java driver and reported that it is working now.&lt;/p&gt;

&lt;p&gt;You may resolve this ticket. Thanks for your help on this.&lt;/p&gt;



&lt;p&gt;Thanks&lt;/p&gt;
</comment>
                            <comment id="967350" author="jeff.yemin" created="Wed, 15 Jul 2015 23:07:53 +0000"  >&lt;p&gt;That&apos;s a very old version of Spring Data.  Any idea what version of the Java driver you&apos;re using it with?  If you&apos;re connecting to a fresh MongoDB 3.0 installation, you&apos;ll need to use at minimum 2.13 or 3.0 version of the driver, as the default authentication mechanism changed in MongoDB 3.0, and that mechanism is only support in 2.13 and 3.0 of the Java driver.&lt;/p&gt;

&lt;p&gt;See &lt;a href=&quot;http://docs.mongodb.org/manual/release-notes/3.0-scram/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org/manual/release-notes/3.0-scram/&lt;/a&gt; for further details.&lt;/p&gt;
</comment>
                    </comments>
                    <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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsb867:</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>