NASA-AMMOS / aerie-ui

The client application for Aerie.
https://nasa-ammos.github.io/aerie-docs/
MIT License
28 stars 4 forks source link

Phoenix Editor doesn't escape quotes in strings #1311

Closed cartermak closed 3 weeks ago

cartermak commented 1 month ago

Checked for duplicates

Yes - I've already checked

Is this a regression?

No - This is a new bug

Version

2.11.0

Describe the bug

When uploading a SeqJSON that has a string argument containing escaped quotes, the generated SeqN has spaces in place of the escape backslash characters.

Reproduction

Upload SeqJSON with escaped quotes in a string:

{
  "id": "escaped_quotes",
  "metadata": {},
  "steps": [
    {
      "args": [
        {
          "type": "string",
          "value": "Can this handle \" Escaped\" quotes??",
          "name": "string_echo"
        }
      ],
      "stem": "SEQ_ECHO",
      "time": {
        "type": "COMMAND_COMPLETE"
      },
      "type": "command"
    }
  ]
}

Expect the generated SeqN:

@ID "escaped_quotes"

C SEQ_ECHO "Can this handle " Escaped" quotes??"

Logs

No response

System Info

Local Aerie 2.11.0, Clipper sequencing adaptation, Firefox on MacOS.

Severity

Moderate