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

Defining cpp_vartype in IDL results in confusing error with global in cpp_varname

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Internal Code
    • None
    • Server Security

    Description

      A developer using IDL configuration parameters wrote a IDL file with a bug in it, which resulted in a C++ compiler error that did not clearly direct them toward the source of their problem.

      The compiler had tried to declare an extern variable with a name like "globalvariable.subvariable". The IDL file declared a cpp_vartype of "long long", but also declared a cpp_varname of "globalvariable.subvariable". Removing the cpp_vartype resolved the issue.

      Attachments

        Activity

          People

            backlog-server-security Backlog - Security Team
            spencer.jackson@mongodb.com Spencer Jackson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: