Skip to content

The presence of an escape character in a text file causes a 422 from the back-end #279

Description

@joanise

If you have a text file which contains the escape character (\x1b / 27), and use that as the text file in Studio-Web step 1, you get this error from the GUI:

Image

Doctoring the back-end to print the offending exception, I got this additional info:

PCDATA invalid Char value 27, line 492, column 24 (, line 492)

(My file only had 447 lines, but the last line had just char 27)

This means that Studio/readalongs/web_api.py gets invalid XML from create_ras_from_text() in the presence of an escape character in the text input.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions