Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-22939

A regular expression with an escaped pipe '|' character is treated as non-simple

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical - P2
    • Resolution: Duplicate
    • 3.2.3
    • None
    • Querying
    • None
    • ALL
    • Hide

      See the referenced issues. Note that I see this as critical because this breaks functionality that has worked for years. We depend on this functionality.

      Show
      See the referenced issues. Note that I see this as critical because this breaks functionality that has worked for years. We depend on this functionality.

    Description

      This seems to be a regression from the fix of SERVER-15235.

      The problem with this fix is that, even when I have a regular expression that has a left-anchor and an escaped '|' character, that query is recognized as being "non-simple".

      This is wrong, and it causes unnecessarily that backwards compatibility is broken and performance is significantly degraded. See SERVER-22872 and SERVER-22890.

      Attachments

        Issue Links

          Activity

            People

              ramon.fernandez@mongodb.com Ramon Fernandez Marina
              itwebtf@saxobank.com ITWEBTF SAXOBANK
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: