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

ViewCatalog::resolveView() may return invalid resolved view on encountering invalid namespace in view definition

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Gone away
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      Discovered via code inspection. Not sure if this can be reproduced externally.

      Show
      Discovered via code inspection. Not sure if this can be reproduced externally.
    • Sprint:
      Execution Team 2019-10-07

      Description

      The ViewCatalog::_lookup_inlock() method will return a null shared_ptr if either:

      1. A view definition is not found for the given namespace
      2. A view catalog reload is needed and the given namespace is not a valid collection name

      ViewCatalog::resolveView() however interprets the null shared_ptr as an indication that the namespace is a collection and returns the resolved view. This is incorrect in the case that ViewCatalog::_lookup_inlock() returns due to invalid collection name

        Attachments

          Activity

            People

            Assignee:
            haley.connelly Haley Connelly
            Reporter:
            james.wahlin James Wahlin
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: