<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:01:38 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>[SERVER-2943] dotall flag &apos;s&apos; from PCRE is not supported</title>
                <link>https://jira.mongodb.org/browse/SERVER-2943</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;MongoDb does not support the dotall &apos;s&apos; flag from Perl Compatible Regular Expressions.&lt;br/&gt;
This flag makes the &apos;.&apos; dot character match really all characters including the newline character &apos;\n&apos;.&lt;/p&gt;

&lt;p&gt;Example in pseudo code :&lt;/p&gt;

&lt;p&gt;t = &quot;foo\nbar\nnil&quot;&lt;br/&gt;
r = &quot;foo.*nil&quot;&lt;br/&gt;
r.match(t, &apos;s&apos;) =&amp;gt; false;&lt;/p&gt;

&lt;p&gt;If the dotall &apos;s&apos; flag was supported then the regular expression would match.&lt;br/&gt;
There is a workaround for this : Instead of using the dot character in the regex we can use the &lt;span class=&quot;error&quot;&gt;&amp;#91;\s\S&amp;#93;&lt;/span&gt; pattern :&lt;/p&gt;

&lt;p&gt;r = &quot;foo&lt;span class=&quot;error&quot;&gt;&amp;#91;\s\S&amp;#93;&lt;/span&gt;*nil&quot;&lt;br/&gt;
r.match(t, &apos;s&apos;) =&amp;gt; true;&lt;/p&gt;

&lt;p&gt;Since the documentation mention that MongoDB supports PCRE I consider this as a bug, none critical since a workaround exists.&lt;br/&gt;
One could consider this as a feature request, I have no issue with that &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;The bug is trivial to fix. See attached patch below. However the patch does not solve potential issues with other drivers such the javascript shell.&lt;br/&gt;
Indeed Javascript does not support the &apos;s&apos; flag ...&lt;/p&gt;

&lt;p&gt;Since this is my first contact with the MongoDb community I would like to take the opportunity to thank you all for the amazing work around MongoDb &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;Cheers,&lt;br/&gt;
CH&lt;/p&gt;</description>
                <environment>All</environment>
        <key id="16100">SERVER-2943</key>
            <summary>dotall flag &apos;s&apos; from PCRE is not supported</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="5" iconUrl="https://jira.mongodb.org/images/icons/priorities/trivial.svg">Trivial - P5</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="mathias@mongodb.com">Mathias Stearn</assignee>
                                    <reporter username="cdadhemar">Charles-Henri d&amp;#39;Adh&#233;mar</reporter>
                        <labels>
                            <label>regex</label>
                    </labels>
                <created>Wed, 13 Apr 2011 15:06:07 +0000</created>
                <updated>Tue, 12 Jul 2016 00:20:18 +0000</updated>
                            <resolved>Thu, 14 Apr 2011 21:20:25 +0000</resolved>
                                    <version>1.8.0</version>
                    <version>1.8.1</version>
                                    <fixVersion>1.9.0</fixVersion>
                                    <component>Querying</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="29044" author="cdadhemar" created="Fri, 15 Apr 2011 08:01:33 +0000"  >&lt;p&gt;Ok, a big thank you for your support !&lt;/p&gt;</comment>
                            <comment id="29043" author="redbeard0531" created="Fri, 15 Apr 2011 07:45:51 +0000"  >&lt;p&gt;It looks like the python driver will do the right thing when you&lt;br/&gt;
specify the DOTALL option to compiled regex objects.&lt;/p&gt;

&lt;p&gt;On Fri, Apr 15, 2011 at 3:27 AM, Charles-Henri d&apos;Adhemar (JIRA)&lt;/p&gt;

</comment>
                            <comment id="29042" author="redbeard0531" created="Fri, 15 Apr 2011 07:44:50 +0000"  >&lt;p&gt;It looks like the python driver will do the right thing when you specify the DOTALL option to compiled regex objects.&lt;/p&gt;</comment>
                            <comment id="29041" author="cdadhemar" created="Fri, 15 Apr 2011 07:25:33 +0000"  >&lt;p&gt;Thanks a lot for having done so fast &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;br/&gt;
Also I did not know about the $options trick for Javascript. Any idea whether I have to use the $options with the pymongo driver too ? With pymongo you specify a regular expression object for which the flags are already set into it. I guess using the $options in pymongo will work in any case and is safer to use, am I right ?&lt;/p&gt;</comment>
                            <comment id="29014" author="redbeard0531" created="Thu, 14 Apr 2011 21:20:25 +0000"  >&lt;p&gt;Thanks for the patch. If you want to use the &apos;s&apos; flag from javascript you will need to use the following syntax:&lt;/p&gt;

&lt;p&gt;db.foo.find({fieldName: { $regex: &apos;asdf.*asdf&apos;, $options: &apos;is&apos;}})&lt;/p&gt;</comment>
                            <comment id="29013" author="auto" created="Thu, 14 Apr 2011 21:00:17 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;RedBeard0531&apos;, u&apos;name&apos;: u&apos;Mathias Stearn&apos;, u&apos;email&apos;: u&apos;mathias@10gen.com&apos;}
&lt;p&gt;Message: Add support for s (DOT_ALL) regex option &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2943&quot; title=&quot;dotall flag &amp;#39;s&amp;#39; from PCRE is not supported&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2943&quot;&gt;&lt;del&gt;SERVER-2943&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/07502672a2f8883081b20ec811fb86664d8ad3bb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/07502672a2f8883081b20ec811fb86664d8ad3bb&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="11678" name="dotall.patch" size="398" author="cdadhemar" created="Wed, 13 Apr 2011 15:06:07 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 14 Apr 2011 21:00:17 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 44 weeks, 5 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 44 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>cdadhemar</customfieldvalue>
            <customfieldvalue>mathias@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrp1e7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrieuv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>21059</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrnv8f:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>