<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:36:41 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>[GODRIVER-1576] Allowing pointer of type to implement an interface causes errors for non-addressable types</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-1576</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;In &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-1356&quot; title=&quot;Support mgo&amp;#39;s Getter and Setter interfaces&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-1356&quot;&gt;&lt;del&gt;GODRIVER-1356&lt;/del&gt;&lt;/a&gt;, we allowed a pointer to a type to implement the hooks we check for during BSON encoding/decoding (e.g. &lt;tt&gt;bsoncodec.Marshaler&lt;/tt&gt;). This causes problems if the value being marshalled isn&apos;t addressable but a pointer to the value implements the hook. The registry will return the codec for the hook, but the codec will error because &lt;tt&gt;val.CanAddr&lt;/tt&gt; returns false. See &lt;a href=&quot;https://play.golang.org/p/GwmqXl5sFAx&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://play.golang.org/p/GwmqXl5sFAx&lt;/a&gt;&#160;for a repro.&lt;/p&gt;

&lt;p&gt;As a side-note, I don&apos;t really understand why the value isn&apos;t addressable. Unfortunately, the registry does lookups using &lt;tt&gt;reflect.Type&lt;/tt&gt; so it doesn&apos;t have enough information to know if the value is addressable or not.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1313776">GODRIVER-1576</key>
            <summary>Allowing pointer of type to implement an interface causes errors for non-addressable types</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="13201">Fixed</resolution>
                                        <assignee username="isabella.siu@mongodb.com">Isabella Siu</assignee>
                                    <reporter username="divjot.arora@mongodb.com">Divjot Arora</reporter>
                        <labels>
                    </labels>
                <created>Tue, 14 Apr 2020 02:39:02 +0000</created>
                <updated>Sat, 28 Oct 2023 11:38:14 +0000</updated>
                            <resolved>Fri, 24 Apr 2020 18:59:00 +0000</resolved>
                                                    <fixVersion>1.3.3</fixVersion>
                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="3054794" author="xgen-internal-githook" created="Fri, 24 Apr 2020 18:58:48 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;iwysiu&apos;, &apos;email&apos;: &apos;isabella.siu@10gen.com&apos;, &apos;username&apos;: &apos;iwysiu&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-1576&quot; title=&quot;Allowing pointer of type to implement an interface causes errors for non-addressable types&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-1576&quot;&gt;&lt;del&gt;GODRIVER-1576&lt;/del&gt;&lt;/a&gt; fix non-addr type with pointer implementation for bson (#379)&lt;br/&gt;
Branch: release/1.3&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/237abe95be54a5f2adceb03eb4a9ea70147a6b6c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/237abe95be54a5f2adceb03eb4a9ea70147a6b6c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3054718" author="xgen-internal-githook" created="Fri, 24 Apr 2020 18:20:58 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;iwysiu&apos;, &apos;email&apos;: &apos;isabella.siu@10gen.com&apos;, &apos;username&apos;: &apos;iwysiu&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-1576&quot; title=&quot;Allowing pointer of type to implement an interface causes errors for non-addressable types&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-1576&quot;&gt;&lt;del&gt;GODRIVER-1576&lt;/del&gt;&lt;/a&gt; fix non-addr type with pointer implementation for bson (#379)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/e55c6c9c10e201c9fe212ee67c988d508aff4202&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/e55c6c9c10e201c9fe212ee67c988d508aff4202&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|hx2lfr:</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>