<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:08:34 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>[CDRIVER-138] insert returns -1 code despite there being no error.</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-138</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;I call mongo_insert with vaild parameters and the data is inserted into the database, however it returns -1, and prompts to look at lasterrstr, which is empty.  I traced it to mongo_check_last_error which is called if you have a write_concern. Line 770 mongo.c call bson_find looking for err or $err, in the keys of the response. It isn&apos;t found however the last line of bson_find returns something.&lt;/p&gt;</description>
                <environment>Ubuntu 12.04 64 bit</environment>
        <key id="39008">CDRIVER-138</key>
            <summary>insert returns -1 code despite there being no error.</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="kbanker">Kyle Banker</assignee>
                                    <reporter username="mark.marsella">Mark Marsella</reporter>
                        <labels>
                            <label>driver</label>
                    </labels>
                <created>Thu, 17 May 2012 19:15:12 +0000</created>
                <updated>Wed, 3 May 2017 22:14:00 +0000</updated>
                            <resolved>Mon, 21 May 2012 15:43:31 +0000</resolved>
                                    <version>0.4</version>
                                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="121520" author="kbanker" created="Mon, 21 May 2012 15:43:31 +0000"  >&lt;p&gt;Thanks for the report, Mark. This commit should fix the issue. Please reopen if you still see errors.&lt;/p&gt;

&lt;p&gt;Kyle&lt;/p&gt;</comment>
                            <comment id="121519" author="auto" created="Mon, 21 May 2012 15:43:00 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;banker&apos;, u&apos;name&apos;: u&apos;Kyle Banker&apos;, u&apos;email&apos;: u&apos;kylebanker@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-138&quot; title=&quot;insert returns -1 code despite there being no error.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-138&quot;&gt;&lt;del&gt;CDRIVER-138&lt;/del&gt;&lt;/a&gt; write concern return value fix&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/750b9e415f8097045d1c17367f66e691e33dbadd&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/750b9e415f8097045d1c17367f66e691e33dbadd&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="120694" author="mark.marsella" created="Thu, 17 May 2012 19:34:43 +0000"  >&lt;p&gt;Just noticed that err (not $err) is a key in the response but its type in NULL so bson_find returns BSON_NULL which is 10, not 0 which is why it fails.  Should the check filter err that is null?&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|hrh6hj:</customfieldvalue>

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