<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52:59 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-751] JSON.parse(sql)   error  </title>
                <link>https://jira.mongodb.org/browse/JAVA-751</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;String sql=&quot;{aggregate:\&quot;cms_article\&quot;,pipeline:[{$match:{$and:&lt;span class=&quot;error&quot;&gt;&amp;#91;{\&amp;quot;_id\&amp;quot;:{$ne:\&amp;quot;\&amp;quot;}},{\&amp;quot;editor\&amp;quot;:{$regex:/sys/}}&amp;#93;&lt;/span&gt;}},{$sort:{\&quot;ctrolTime\&quot;:1}},{$limit:1}]}&quot;;&lt;/p&gt;

&lt;p&gt; BasicDBObject bdr=(BasicDBObject)JSON.parse(sql);&lt;/p&gt;

&lt;p&gt;there is error .&lt;br/&gt;
            {aggregate:&quot;cms_article&quot;,pipeline:[{$match:{$and:&lt;span class=&quot;error&quot;&gt;&amp;#91;{&amp;quot;_id&amp;quot;:{$ne:&amp;quot;&amp;quot;}},{&amp;quot;editor&amp;quot;:{$regex:/sys/}}&amp;#93;&lt;/span&gt;}},{$sort:{&quot;ctrolTime&quot;:1}},{$limit:1}]}&lt;br/&gt;
                                                                                     ^&lt;br/&gt;
	at com.mongodb.util.JSONParser.parse(JSON.java:381)&lt;br/&gt;
	at com.mongodb.util.JSONParser.parseObject(JSON.java:414)&lt;br/&gt;
	at com.mongodb.util.JSONParser.parse(JSON.java:378)&lt;br/&gt;
	at com.mongodb.util.JSONParser.parseObject(JSON.java:414)&lt;br/&gt;
	at com.mongodb.util.JSONParser.parse(JSON.java:378)&lt;br/&gt;
	at com.mongodb.util.JSONParser.parseArray(JSON.java:718)&lt;br/&gt;
	at com.mongodb.util.JSONParser.parse(JSON.java:374)&lt;br/&gt;
	at com.mongodb.util.JSONParser.parseObject(JSON.java:414)&lt;br/&gt;
	at com.mongodb.util.JSONParser.parse(JSON.java:378)&lt;br/&gt;
	at com.mongodb.util.JSONParser.parseObject(JSON.java:414)&lt;br/&gt;
	at com.mongodb.util.JSONParser.parse(JSON.java:378)&lt;br/&gt;
	at com.mongodb.util.JSONParser.parseArray(JSON.java:718)&lt;br/&gt;
	at com.mongodb.util.JSONParser.parse(JSON.java:374)&lt;br/&gt;
	at com.mongodb.util.JSONParser.parseObject(JSON.java:414)&lt;br/&gt;
	at com.mongodb.util.JSONParser.parse(JSON.java:378)&lt;br/&gt;
	at com.mongodb.util.JSONParser.parse(JSON.java:328)&lt;br/&gt;
	at com.mongodb.util.JSON.parse(JSON.java:287)&lt;br/&gt;
	at com.mongodb.util.JSON.parse(JSON.java:272)&lt;br/&gt;
	at com.gold169.mongodb.util.MongoDbUtil.reverseJsonFromOri(MongoDbUtil.java:267)&lt;br/&gt;
	at test.Testt.main(Testt.java:97)&lt;/p&gt;</description>
                <environment>myexclipse ,win7 ,tomcat6.0</environment>
        <key id="64175">JAVA-751</key>
            <summary>JSON.parse(sql)   error  </summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="1" iconUrl="https://jira.mongodb.org/images/icons/priorities/blocker.svg">Blocker - P1</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="-1">Unassigned</assignee>
                                    <reporter username="fyddaben">fanyongdong</reporter>
                        <labels>
                    </labels>
                <created>Mon, 4 Feb 2013 03:37:04 +0000</created>
                <updated>Wed, 11 Sep 2019 19:10:45 +0000</updated>
                            <resolved>Fri, 8 Feb 2013 22:13:24 +0000</resolved>
                                    <version>2.7.2</version>
                                                    <component>API</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="264748" author="fyddaben" created="Wed, 13 Feb 2013 03:08:00 +0000"  >&lt;p&gt;i modifyed like this:&lt;br/&gt;
String sql=&quot;{aggregate:\&quot;cms_article\&quot;,pipeline:[{$match:{$and:&lt;span class=&quot;error&quot;&gt;&amp;#91;{\&amp;quot;_id\&amp;quot;:{$ne:\&amp;quot;\&amp;quot;}},{\&amp;quot;editor\&amp;quot;:{$regex:&amp;#39;sys&amp;#39;,$options: &amp;#39;s&amp;#39;} }&amp;#93;&lt;/span&gt;}},{$sort:{\&quot;ctrolTime\&quot;:1}},{$limit:1}]}&quot;;&lt;br/&gt;
it worked;&lt;/p&gt;</comment>
                            <comment id="261394" author="jeff.yemin" created="Fri, 8 Feb 2013 22:13:09 +0000"  >&lt;p&gt;It will work if you use Java&apos;s regular expression syntax, rather than Javascript&apos;s /sys/ syntax.  Try something like:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;    String sql = &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;{aggregate:\&quot;cms_article\&quot;,pipeline:[{$match:{$and:[{\&quot;_id\&quot;:{$ne:\&quot;\&quot;}},{\&quot;editor\&quot; : { $regex: \&quot;sys\&quot; } } ] } }, {$sort:{\&quot;ctrolTime\&quot;:1}},{$limit:1}]}&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&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|hrlz8v:</customfieldvalue>

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