Skip to content

Conversation

@akoeplinger
Copy link
Member

@akoeplinger akoeplinger commented Apr 14, 2023

They started failing after #84426 because we now throw an exception when xslt is used.

That exception gets hidden in CryptoHelpers.CreateFromName() though and you only see "Unknown transform has been encountered" so it is hard to figure out what happened.

Throwing the NotSupported exception to make this easier and fixed the tests.

…y.Xml on iOS/tvOS

They started failing after dotnet#84426 because we now throw an exception when xslt is used.
That exception gets hidden in CryptoHelpers.CreateFromName() though since you only see "Unknown transform has been encountered" so it is hard to figure out what happened. Added a more specific error message that mentions the algorithm name.
@akoeplinger akoeplinger requested a review from eerhardt April 14, 2023 12:14
@ghost ghost assigned akoeplinger Apr 14, 2023
@ghost ghost added the area-System.Security label Apr 14, 2023
@ghost
Copy link

ghost commented Apr 14, 2023

Tagging subscribers to this area: @dotnet/area-system-security, @bartonjs, @vcsjones
See info in area-owners.md if you want to be subscribed.

Issue Details

They started failing after #84426 because we now throw an exception when xslt is used.

That exception gets hidden in CryptoHelpers.CreateFromName() though since you only see "Unknown transform has been encountered" so it is hard to figure out what happened.

Added a more specific error message that mentions the algorithm name.

Author: akoeplinger
Assignees: akoeplinger
Labels:

area-System.Security

Milestone: -

@akoeplinger akoeplinger requested a review from eerhardt April 14, 2023 15:32
@akoeplinger akoeplinger requested a review from eerhardt April 14, 2023 20:41
Copy link
Member

@eerhardt eerhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for fixing this up!

@akoeplinger akoeplinger merged commit 631c0d9 into dotnet:main Apr 14, 2023
@akoeplinger akoeplinger deleted the fix-crypto-xml-test branch April 14, 2023 23:20
@ghost ghost locked as resolved and limited conversation to collaborators May 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants