Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad character in content type text / string value causes error on data or app export #1

Closed
prichards14 opened this issue Feb 6, 2024 · 1 comment

Comments

@prichards14
Copy link

A user copy/pasted bad data from a document into a custom 2sxc App Content Type Text / string value. When attempting to export this data row or when attempting to export the App, this error is displayed:

{"Message":"Bad Request","ExceptionType":"System.ArgumentException","ExceptionMessage":"'\u0002', hexadecimal value 0x02, is an invalid character."}

Users should not be allowed to create content that breaks core 2sxc functionality. A possible fix would be to use a RegEx to detect and report or filter out all special characters that are not allowed in the database. In this specific case, the character is HEX 0x02, STX, an obsolete "Start of Text" control character.

@prichards14
Copy link
Author

Issue added to wrong repository. See 2sic/2sxc#3286.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant