<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:51:33 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-125] issue reported where certain types of map functions can&apos;t be parsed by java driver</title>
                <link>https://jira.mongodb.org/browse/JAVA-125</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Eval JS Function = mc={m:function () { emit(&lt;/p&gt;
{hid:this.hid}
&lt;p&gt;, this.vt); }}&lt;br/&gt;
Exception in thread &quot;main&quot; java.lang.UnsupportedOperationException: can&apos;t handle CODE yet&lt;br/&gt;
        at org.bson.BSONDecoder.decodeElement(BSONDecoder.java:165)&lt;br/&gt;
        at org.bson.BSONDecoder.decodeElement(BSONDecoder.java:181)&lt;br/&gt;
        at org.bson.BSONDecoder.decode(BSONDecoder.java:71)&lt;br/&gt;
        at org.bson.BSONDecoder.decode(BSONDecoder.java:55)&lt;br/&gt;
        at org.bson.BSONDecoder.decode(BSONDecoder.java:42)&lt;br/&gt;
        at com.mongodb.Response.&amp;lt;init&amp;gt;(Response.java:70)&lt;br/&gt;
        at com.mongodb.DBPort.go(DBPort.java:81)&lt;br/&gt;
        at com.mongodb.DBPort.call(DBPort.java:57)&lt;br/&gt;
        at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:181)&lt;br/&gt;
        at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:277)&lt;br/&gt;
        at com.mongodb.DBCollection.findOne(DBCollection.java:366)&lt;br/&gt;
        at com.mongodb.DBCollection.findOne(DBCollection.java:355)&lt;br/&gt;
        at com.mongodb.DB.command(DB.java:135)&lt;br/&gt;
        at com.mongodb.DB.doEval(DB.java:148)&lt;br/&gt;
        at com.mongodb.DB.eval(DB.java:157)&lt;br/&gt;
       ...&lt;/p&gt;



&lt;p&gt;Adding another statement before emit worked.&lt;/p&gt;

&lt;p&gt;mc={m:function() {var test=&quot;&quot;; emit(&lt;/p&gt;
{hid:this.hid}
&lt;p&gt;, this.vt);}}&lt;/p&gt;</description>
                <environment></environment>
        <key id="12278">JAVA-125</key>
            <summary>issue reported where certain types of map functions can&apos;t be parsed by java driver</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="eliot">Eliot Horowitz</assignee>
                                    <reporter username="aaron">Aaron Staple</reporter>
                        <labels>
                    </labels>
                <created>Tue, 29 Jun 2010 13:12:21 +0000</created>
                <updated>Fri, 29 Oct 2010 02:49:58 +0000</updated>
                            <resolved>Tue, 20 Jul 2010 15:13:03 +0000</resolved>
                                                    <fixVersion>2.1</fixVersion>
                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="15970" author="auto" created="Tue, 20 Jul 2010 15:13:08 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;erh&apos;, &apos;name&apos;: &apos;Eliot Horowitz&apos;, &apos;email&apos;: &apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: cleanup Code and CodeWScope &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-125&quot; title=&quot;issue reported where certain types of map functions can&amp;#39;t be parsed by java driver&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-125&quot;&gt;&lt;del&gt;JAVA-125&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo-java-driver/commit/5d72a01ee890d55368708ed4fbd78b607e49da5a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo-java-driver/commit/5d72a01ee890d55368708ed4fbd78b607e49da5a&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|hrhd3j:</customfieldvalue>

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