<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:09: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>[CDRIVER-444] no support for database name in bson_iter_dbpointer()</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-444</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;According to:&lt;br/&gt;
&lt;a href=&quot;http://docs.mongodb.org/manual/reference/database-references/#dbrefs&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org/manual/reference/database-references/#dbrefs&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We should be able to have  database name parameter.&lt;/p&gt;</description>
                <environment></environment>
        <key id="164293">CDRIVER-444</key>
            <summary>no support for database name in bson_iter_dbpointer()</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="mira.carey@mongodb.com">Mira Carey</assignee>
                                    <reporter username="jeromelebel">Jerome Lebel</reporter>
                        <labels>
                    </labels>
                <created>Fri, 17 Oct 2014 23:18:18 +0000</created>
                <updated>Wed, 5 Nov 2014 22:20:46 +0000</updated>
                            <resolved>Tue, 4 Nov 2014 19:01:53 +0000</resolved>
                                    <version> 1.0.2 </version>
                                    <fixVersion>1.1.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="757271" author="jason.carey" created="Wed, 5 Nov 2014 22:20:46 +0000"  >&lt;p&gt;My apologies on this one, I didn&apos;t realize that dbref&apos;s and dbpointers are completely different.&lt;/p&gt;

&lt;p&gt;The dbpointer type is a deprecated bson type that only supports oid and a string which can be a collection or a namespace.&lt;/p&gt;

&lt;p&gt;Dbref is a convention amongst drivers that allows for &apos;$&apos; prefixed fields assuming the first three fields are &apos;$ref&apos;, &apos;$id&apos; and optionally &apos;$db&apos;.  It&apos;s not actually a native bson type, but instead a special case for validation.&lt;/p&gt;

&lt;p&gt;I&apos;ll be upgrading bson_validate to allow that case through.&lt;/p&gt;</comment>
                            <comment id="755890" author="jason.carey" created="Tue, 4 Nov 2014 19:01:35 +0000"  >&lt;p&gt;After looking at several other drivers and the server codebase, I think I&apos;m going to close this out as won&apos;t fix.&lt;/p&gt;

&lt;p&gt;My rationale is:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;bson itself only offers storage for a string and an oid in a dbpointer&lt;/li&gt;
	&lt;li&gt;The string storage available can be either a collection, or a full namespace (I.e. &quot;db.collection&quot;)&lt;/li&gt;
	&lt;li&gt;libbson doesn&apos;t offer proxy objects aside from oid for any of the complex types.  Instead we offer portable access to the data members.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;So basically, all I&apos;d really want to do would be to rename the documentation to collection/namespace.  But at this point dbpointers are fully deprecated, so I&apos;m leaving the api as is.&lt;/p&gt;

&lt;p&gt;If you need access to the db param, you can check the &quot;collection&quot; return value for a &apos;.&apos; and substring.&lt;/p&gt;</comment>
                            <comment id="750949" author="jason.carey" created="Tue, 28 Oct 2014 21:51:48 +0000"  >&lt;p&gt;Referring to &lt;a href=&quot;http://bsonspec.org/spec.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;bsonspec.org&lt;/a&gt;, the dbpointer type is stored as a string and what effectively is an oid, so there&apos;s nothing useful to do beyond a rename from the bson_append or bson_iter api perspective.  Additionally, there&apos;s no notion of a collection in the server code at all.  Instead it seems that the collection field should really be a namespace (&quot;db.collection&quot; format).&lt;/p&gt;

&lt;p&gt;I had the notion to support the &apos;$db&apos; syntax for json parsing and dumping, while still storing in namespace format, but I&apos;d like to dig around and do a bit more research since no &apos;$db&apos; field is mentioned in &lt;a href=&quot;http://docs.mongodb.org/manual/reference/mongodb-extended-json/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;MongoDB Extended JSON&lt;/a&gt;&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|hrf7ev:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1118</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="304">C Sprint 9</customfieldvalue>

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