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

    • ALL
    • 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.
    • Execution Team 2019-10-07

      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

            Assignee:
            haley.connelly@mongodb.com Haley Connelly
            Reporter:
            james.wahlin@mongodb.com James Wahlin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: