Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-13253

Investigate changes in SERVER-44617: $regexFind crash when one of the capture group doesn't match the input but pattern matches

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.3, 4.2.2
    • Component/s: manual, Server
    • Labels:
      None

      Description

      Description

      Downstream Change Summary

      With this change, we will put a 'null' placeholder if there is a non-matching capture group. We should clarify this new semantics using an example in the docs.

      This is also backported to 4.2. We will need to update the docs for 4.2 as well.

      Description of Linked Ticket

      When running a simple regex query against 4.2.1 the mongod will crash with:

      2019-11-14T05:52:41.884-0500 F  -        [conn1] terminate() called. An exception is active; attempting to gather more information
      2019-11-14T05:52:41.982-0500 F  -        [conn1] std::exception::what(): out of range
      

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jeffrey.allen Jeffrey Allen
              Reporter:
              backlog-server-pm Backlog - DB Eng Program Management Team
              Participants:
              Last commenter:
              Githook User
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since reply:
                14 weeks, 6 days ago
                Date of 1st Reply: