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

[release/5.0-rc2] Make newline escaping logic more robust #22602

Merged
merged 1 commit into from
Sep 19, 2020

Conversation

bricelam
Copy link
Contributor

@bricelam bricelam commented Sep 18, 2020

Fixes #22553

Description

We added some code in 5.0 to escape newlines in generated migrations. Unfortunately, this code was a little naive and missed some important cases. Several customers have hit this using RC1.

Customer Impact

This will impact many customers, as indicated by the multiple reports we already have against RC1.

How found

Customer reported on RC1.

Test coverage

We were lacking test coverage for the escaping. Better test coverage is included in this PR.

Regression?

Yes, from 3.1.

cc @Pilchie

@bricelam bricelam requested a review from a team September 18, 2020 20:40
@bricelam bricelam changed the title Make newline escaping logic more robust [release/5.0-rc2] Make newline escaping logic more robust Sep 18, 2020
@bricelam
Copy link
Contributor Author

bricelam commented Sep 19, 2020

Added one more test string after reviewing code coverage of the new methods. Now they're 100% covered.

@ajcvickers
Copy link
Member

@bricelam Approved by Tactics.

@bricelam bricelam merged commit ac2b37f into dotnet:release/5.0-rc2 Sep 19, 2020
@bricelam bricelam deleted the quote branch September 19, 2020 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants