<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:51:36 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-143] ObjectID.isValid(String) only checks lower bounds on String </title>
                <link>https://jira.mongodb.org/browse/JAVA-143</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;ObjectID.isValid(String) will return true for Strings that are longer than are used for building the ObjectID.   ObjectID.isValid(String) checks that a String is at least 18 characters long and looks like hex encoding.  For hex Strings that are longer than 18 it will also return true.  But when constructing the ObjectId(String) it will only use the first 18 characters.&lt;/p&gt;

&lt;p&gt;I am expecting that a String that is longer than 18 characters will not be valid as per ObjectID.isValid(String).&lt;/p&gt;

&lt;p&gt;This comes up in the context of the Morphia ORM utility that uses ObjectID.isValid(String) when mapping an _id for a DBObject.  An exception is thrown when the toString() of the stored ObjectID does not match the String with which the ObjectID was built.&lt;/p&gt;</description>
                <environment></environment>
        <key id="12679">JAVA-143</key>
            <summary>ObjectID.isValid(String) only checks lower bounds on String </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="clintpells">Clint Pells</reporter>
                        <labels>
                    </labels>
                <created>Thu, 5 Aug 2010 17:08:28 +0000</created>
                <updated>Fri, 29 Oct 2010 02:49:59 +0000</updated>
                            <resolved>Thu, 5 Aug 2010 17:17:09 +0000</resolved>
                                    <version>2.0</version>
                                    <fixVersion>2.1</fixVersion>
                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="16513" author="scotthernandez" created="Thu, 5 Aug 2010 17:14:10 +0000"  >&lt;p&gt;That is funny. I patches both morphia and the driver &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;It will be in the 2.1 release: &lt;a href=&quot;http://github.com/mongodb/mongo-java-driver/commits/master&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo-java-driver/commits/master&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="16512" author="clintpells" created="Thu, 5 Aug 2010 17:13:28 +0000"  >&lt;p&gt;Also as morphia bug:&lt;br/&gt;
&lt;a href=&quot;http://code.google.com/p/morphia/issues/detail?id=85&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://code.google.com/p/morphia/issues/detail?id=85&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="10335" name="ObjectIDTest.java" size="501" author="clintpells" created="Thu, 5 Aug 2010 17:08:28 +0000"/>
                    </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|hrhczr:</customfieldvalue>

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