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

distinct IDL always parses command with hardcoded apiStrict == false. It should probably be looked up from opCtx instead

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Query Execution
    • ALL

    Description

      https://github.com/10gen/mongo/blob/2911056b7f0e849fc1f5ba7e816744bb54654398/src/mongo/db/query/parsed_distinct.cpp#L275C3-L275C3 

       

      Replace

      IDLParserContext ctx("distinct", false /* apiStrict */, nss.tenantId(), sc); 

      with

      const bool apiStrict = APIParameters::get(opCtx).getAPIStrict().value_or(false);
      IDLParserContext ctx("distinct", apiStrict, nss.tenantId(), sc); 

       

       

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            serhii.lysenko@mongodb.com Serhii Lysenko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: