<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:36:00 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>[CSHARP-168] inserts on an authenticated DB like mongoHQ.com with safemode=false do not work</title>
                <link>https://jira.mongodb.org/browse/CSHARP-168</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;inserts on an authenticated DB like mongoHQ.com with safemode=false do not work. works with safemode=true. I&apos;ve tried with latest release and also with latest source from &lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver.git&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver.git&lt;/a&gt; with same results. Only information I could find on this on google is &lt;a href=&quot;http://groups.google.com/group/mongodb-csharp/browse_thread/thread/401006010e7c6fe8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://groups.google.com/group/mongodb-csharp/browse_thread/thread/401006010e7c6fe8&lt;/a&gt; where some fix seems to have been applied. Was that applied to some other driver?&lt;/p&gt;</description>
                <environment>windows 7 client connecting to mongohq.com server</environment>
        <key id="14723">CSHARP-168</key>
            <summary>inserts on an authenticated DB like mongoHQ.com with safemode=false do not work</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="9">Done</resolution>
                                        <assignee username="robert@mongodb.com">Robert Stam</assignee>
                                    <reporter username="aditya.iyer">Aditya Iyer</reporter>
                        <labels>
                    </labels>
                <created>Mon, 14 Feb 2011 08:48:31 +0000</created>
                <updated>Thu, 20 Mar 2014 14:30:52 +0000</updated>
                            <resolved>Tue, 15 Feb 2011 17:11:02 +0000</resolved>
                                    <version>0.11</version>
                                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="23940" author="rstam" created="Tue, 15 Feb 2011 17:11:02 +0000"  >&lt;p&gt;The way you are using the connection string is correct.&lt;/p&gt;

&lt;p&gt;Please reopen the case if you figure out whether the failures you are seeing under your specific test environment are driver related.&lt;/p&gt;</comment>
                            <comment id="23925" author="aditya.iyer" created="Tue, 15 Feb 2011 06:06:05 +0000"  >&lt;p&gt;Thanks for looking at this. I was actually trying to run unit tests in the Visual Studio 2010 IDE with the &lt;span class=&quot;error&quot;&gt;&amp;#91;TestMethod()&amp;#93;&lt;/span&gt; attribute and inserts to mongoHQ are exhibiting strange behavior, sometimes they succeed but most of the time no records get inserted. The same tests are inserting fine for a local instance of mongod and a LAN instance both authenticated and not.&lt;/p&gt;

&lt;p&gt;When I ran inserts in a non-test application environment the inserts are going through fine to mongoHQ all the time.&lt;/p&gt;

&lt;p&gt;No idea right now why the issue with running unit tests and that too only with mongoHQ.&lt;/p&gt;

&lt;p&gt;I&apos;m connecting in the following manner&lt;br/&gt;
MongoCollection&amp;lt;BsonDocument&amp;gt; mc = MongoDatabase.Create(connectionString).GetCollection(recoCollectionName);&lt;br/&gt;
Where&lt;br/&gt;
    connectionString is like mongodb://&amp;lt;username&amp;gt;:&amp;lt;password&amp;gt;@flame.mongohq.com:27022/wsb&lt;br/&gt;
and then just an mc.Insert(...)&lt;/p&gt;

&lt;p&gt;Of course since it works otherwise, that should not be a problem...&lt;/p&gt;

</comment>
                            <comment id="23864" author="rstam" created="Mon, 14 Feb 2011 16:08:20 +0000"  >&lt;p&gt;I created a test account at MongoHQ and my little test program works against MongoHQ just like it did locally. All I changed was the URL to point to MongoHQ and the credentials.&lt;/p&gt;

&lt;p&gt;How are you setting the credentials? Perhaps the problem lies there.&lt;/p&gt;</comment>
                            <comment id="23859" author="rstam" created="Mon, 14 Feb 2011 15:34:23 +0000"  >&lt;p&gt;I am unable to reproduce your authentication problem testing locally. Here&apos;s the code I&apos;m using:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.pastie.org/1562919&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.pastie.org/1562919&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When using the proper credentials it works identically whether safemode=false or safemode=true.&lt;/p&gt;

&lt;p&gt;With invalid credentials and safemode=true I get:&lt;/p&gt;

&lt;p&gt;1. All operations throw an exception&lt;/p&gt;

&lt;p&gt;With invalid credentials and safemode=false I get:&lt;/p&gt;

&lt;p&gt;1. All the Inserts fail silently because they are fire and forget. The FindAll method throws an exception.&lt;/p&gt;

&lt;p&gt;Can you make sure you are setting the proper credentials? If so let me know and I will open a MongoHQ account and test against it.&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;</comment>
                            <comment id="23848" author="aditya.iyer" created="Mon, 14 Feb 2011 14:04:06 +0000"  >&lt;p&gt;I&apos;m not getting an exception, the data is simply not inserted. The data is inserted using mongo shell (I assume it uses safemode=false by default) so it doesn&apos;t seem to be an issue at mongohq side.&lt;/p&gt;
</comment>
                            <comment id="23846" author="rstam" created="Mon, 14 Feb 2011 13:46:35 +0000"  >&lt;p&gt;Can you define &quot;do not work&quot;? Are you getting an exception? Or is the data simply not inserted?&lt;/p&gt;

&lt;p&gt;Turning safemode on &lt;b&gt;shouldn&apos;t&lt;/b&gt; have anything to do with authentication...&lt;/p&gt;

&lt;p&gt;The Google groups discussion you found is for a different driver.&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|hrh9av:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>14306</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>