[SERVER-39023] Defining cpp_vartype in IDL results in confusing error with global in cpp_varname Created: 15/Jan/19 Updated: 06/Dec/22 Resolved: 09/Dec/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Code |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Spencer Jackson | Assignee: | Backlog - Security Team |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Server Security
|
| Participants: |
| 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. |