Skip to content

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

New issue

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

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

Already on GitHub? # to your account

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 force-pushed the quote branch 2 times, most recently from 85aa742 to bb4dc28 Compare September 18, 2020 22:29
@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
Contributor

@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
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants