[SERVER-42246] IDL configs break if strings contain \n. Created: 16/Jul/19 Updated: 06/Dec/22 Resolved: 09/Dec/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | IDL, Internal Code |
| Affects Version/s: | 4.3 Desired |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Billy Donahue | Assignee: | Backlog - Service Architecture |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Service Arch
|
| Operating System: | ALL |
| Participants: |
| Description |
|
The 'description' field above contains newlines because of the > block-quoting. This produces a C++ _gen.cpp file containing expressions like:
And the unescaped newlines inside the string literal are invalid C++.
It can be worked around with YAML >- quoting instead of >, as >- removes newlines. |