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

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: 3.2.3
    • Component/s: 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.

      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.

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

              Created:
              Updated:
              Resolved: