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

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
      None
    • Server Security

      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.

            Assignee:
            backlog-server-security [DO NOT USE] Backlog - Security Team
            Reporter:
            spencer.jackson@mongodb.com Spencer Jackson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: