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

Fix hash string case #2094

Merged
merged 1 commit into from
Dec 21, 2022
Merged

Fix hash string case #2094

merged 1 commit into from
Dec 21, 2022

Conversation

mattjohnsonpint
Copy link
Contributor

In #2050 I refactored some code to consolidate the ToHexString internal extension method, and made it return the string in lower-case.

However, the existing GetHashString method was using upper case previously. Switching to lower case created a problem (observed on iOS) where the caching transport failed to create its directory because another directory cased differently already existed.

This PR adds an option for the casing. The default is lower-case, except for GetHashString where the default is upper-case to preserve previous behavior.

#skip-changelog because #2050 where the bug was introduced has not yet been released.

@mattjohnsonpint
Copy link
Contributor Author

FYI - I reported the error I got with the case mismatch here:
dotnet/runtime#79889

Appears to affect iOS only.

@mattjohnsonpint mattjohnsonpint enabled auto-merge (squash) December 21, 2022 19:50
@mattjohnsonpint mattjohnsonpint merged commit e827b76 into main Dec 21, 2022
@mattjohnsonpint mattjohnsonpint deleted the fix/hexstringcase branch December 21, 2022 20:57
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