Remove boost::none default for RP::forAnyNormalResource() calls

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Security 2023-06-26
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, the `ResourcePattern::forAnyNormalResource()` API provides a default argument value of `boost::none` for its tenantId parameter.  This must be removed as a default and all callsites must be updated to provide an appropriate tenantId based on their local context.  This will usually come from a NamespaceString or DatabaseName being active examined.

      For example, here: the privilege check is relative to the `dbname` extracted from the `request` object, so we'd change the call to:  `ResourcePattern::forAnyNormalResource(dbname.tenantId())`. 

            Assignee:
            Gabriel Marks
            Reporter:
            Sara Golemon (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: