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

Escaped characters in XML or TeamCity reporters can be truncated incorrectly #164

Closed
cschreib opened this issue May 2, 2024 · 0 comments · Fixed by #163
Closed

Escaped characters in XML or TeamCity reporters can be truncated incorrectly #164

cschreib opened this issue May 2, 2024 · 0 comments · Fixed by #163
Labels
bug:confirmed Something isn't working (confirmed)
Milestone

Comments

@cschreib
Copy link
Member

cschreib commented May 2, 2024

Some reporters (e.g. the XML reporter) require some characters to be escaped (e.g., & -> &). Because messages have a finite length and can be truncated, there were cases where the truncation happened in the middle of an escape sequence.

For example:

Hello this is me & my friend

being truncated to

Hello this is me &am...

The escaping logic needs to account for this, and avoid truncating in the wrong place.

@cschreib cschreib added the bug:confirmed Something isn't working (confirmed) label May 2, 2024
@cschreib cschreib added this to the v1.x milestone May 2, 2024
@cschreib cschreib modified the milestones: v1.x, v1.2.5 May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:confirmed Something isn't working (confirmed)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant