Skip to content

Fix hash string case#2094

Merged
mattjohnsonpint merged 1 commit intomainfrom
fix/hexstringcase
Dec 21, 2022
Merged

Fix hash string case#2094
mattjohnsonpint merged 1 commit intomainfrom
fix/hexstringcase

Conversation

@mattjohnsonpint
Copy link
Copy Markdown
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
Copy Markdown
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