Skip to content

Conversation

@HaoK
Copy link
Member

@HaoK HaoK commented Sep 2, 2021

CDN integrity checks require byte for byte exact, so line endings are currently causing our CDN checks to fail

I reupdated the files in my repo but it didn't generate any diffs, so hopefully this will fix on a new build

Fixes: https://github.com/aspnet/AspNetCore-ManualTests/issues/865

@HaoK HaoK requested a review from Pilchie as a code owner September 2, 2021 22:22
@HaoK
Copy link
Member Author

HaoK commented Sep 2, 2021

Verified that on disk SHA hash now matches expected SHA384 for bootstrap.bundle.js.min: U1DAWAznBHeqEIlVSCgzq+c9gqGAJn5c/t99JyeKa9xxaYpSvHU5awsuZVVFIhvj

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-U1DAWAznBHeqEIlVSCgzq+c9gqGAJn5c/t99JyeKa9xxaYpSvHU5awsuZVVFIhvj" crossorigin="anonymous"></script>

@HaoK
Copy link
Member Author

HaoK commented Sep 2, 2021

We have tests that verify the content is the same for our fallback/CDN content, but the test has logic to strip line endings, so it doesn't catch eol differences https://github.com/dotnet/aspnetcore/blob/main/src/Identity/test/Identity.Test/IdentityUIScriptsTest.cs#L45

@HaoK
Copy link
Member Author

HaoK commented Sep 3, 2021

/backport to release/6.0

@github-actions
Copy link
Contributor

github-actions bot commented Sep 3, 2021

@HaoK HaoK merged commit a46272f into main Sep 3, 2021
@HaoK HaoK deleted the haok/cdn branch September 3, 2021 03:01
@ghost ghost added this to the 7.0-preview1 milestone Sep 3, 2021
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

Successfully merging this pull request may close these issues.

3 participants