<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:53:39 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-1030] ClassCastException inside DBPort.SaslAuthenticator when custom BSON decoder is used</title>
                <link>https://jira.mongodb.org/browse/JAVA-1030</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;The implementation inside the DBPort.SaslAuthenticator.authenticate() method is making some class casting assuming that a given field (e.g. res.get(&quot;payload&quot;) ) is an instance of the expected class ( e.g. byte[] ). However, when custom BSON decoder is used for example returns org.bson.types.Binary instances instead of byte[] ones, these assumptions made inside the SaslAuthenticator.authenticate() are wrong and a ClassCastException will occur.&lt;/p&gt;

&lt;p&gt;Given these assumptions made inside the authenticate() method, it is necessary to change the sendSaslStart() call so that it uses the standard DefaultDBDecoder and not the user chosen one (which is set using a DBDecoderFactory).&lt;/p&gt;</description>
                <environment></environment>
        <key id="95424">JAVA-1030</key>
            <summary>ClassCastException inside DBPort.SaslAuthenticator when custom BSON decoder is used</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="emil.goicovici">Emil Goicovici</reporter>
                        <labels>
                    </labels>
                <created>Wed, 23 Oct 2013 15:33:23 +0000</created>
                <updated>Wed, 23 Oct 2013 19:57:25 +0000</updated>
                            <resolved>Wed, 23 Oct 2013 19:57:25 +0000</resolved>
                                    <version>2.11.3</version>
                                                    <component>Authentication</component>
                    <component>BSON</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="445592" author="jeff.yemin" created="Wed, 23 Oct 2013 19:57:25 +0000"  >&lt;p&gt;OK, thanks.  Resolving as a duplicate then.&lt;/p&gt;</comment>
                            <comment id="445591" author="emil.goicovici" created="Wed, 23 Oct 2013 19:57:13 +0000"  >&lt;p&gt;I&apos;m new to this issue tracker, so I don&apos;t know what workflow is used here. You can close this issue / mark it as duplicate.&lt;/p&gt;</comment>
                            <comment id="445585" author="emil.goicovici" created="Wed, 23 Oct 2013 19:51:26 +0000"  >&lt;p&gt;No, I don&apos;t need backporting the fix because currently I&apos;ve overcame this issue by patching the DBPort class and recompiling the MongoDB Java Driver. It sounds good if it has already been fixed on the 3.0 branch. Thank you.&lt;/p&gt;</comment>
                            <comment id="445474" author="jeff.yemin" created="Wed, 23 Oct 2013 17:55:23 +0000"  >&lt;p&gt;This has been reported in &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-883&quot; title=&quot;Use built-in encoder/decoder for internal calls to commands&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-883&quot;&gt;&lt;del&gt;JAVA-883&lt;/del&gt;&lt;/a&gt; and fixed in the 3.0 branch.  Can you work around this, or would you like us to consider backporting the fix?&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|hrtq8v:</customfieldvalue>

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