You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
HashAlgorithm.Create throws PNSE on .NET Core 2 #22929
It just got missed when CryptoConfig finally made it back. If @Petermarcu wants to take it this late I don't have an objection. But I can't, with a straight face, say it's necessary.
@Petermarcu as a library author, how do I know where the fix is and how to set baseline requirements? I can target netstandard2.0, but then what? There's no way for me to force that it needs netcoreapp2.0.1 on that platform?
Basically, the question/issue is around how long should a workaround stay in place for? (it's a more general topic), but doing feature-detection and then having both code-paths seems really redundant (for this).
@Petermarcu may have a better answer, but I think you're right that if you target netstandard2.0 the only safe approach is to leave the workaround in. The purpose of servicing is to at least help folks who fully deploy the servicing release: they don't need the workaround in their own code.
There are always going to be bugs in the platform implementations of .NET Standard that may require workarounds.
Yes, as long as you want to behave well on 2.0.0 you will have to use the workaround. The lifespan of 2.0.0 should be fairly short as support for it will die off quickly once we ship a 2.0.1 which I expect will only be a month or two out. Apps will automatically roll forward to it, all the download links will be updated, and servicing releases will have security fixes in them where we will strongly encourage people to get the latest.
@Petermarcu one thing that'll help are regular telemetry releases that show the % of users who have what version deployed -- ideally would love a time-series chart to see as new versions are introduced and watch it exceed the current version.
I agree. I think that would help everyone. We currently don't have any telemetry at runtime which would be the most accurate way to get this info but should be able to get a better understanding of the trend of which SDK they are using which also tells us all which runtime people are running on at dev time at least.
live inside System.Security.Cryptography.Primitives while CryptoConfig (which is needed to implement Create(string)) lives inside System.Security.Cryptography.Algorithms which depends on System.Security.Cryptography.Primitives. Fixing this would create dependency problem.
Given that we have decided NOT to add this back for now as there is not much requests for this and the workaround is straightforward.
For anyone interested in adding this back please comment and upvote this issue. Closing for now.
Reacted by Victor Salgado, Bruno Mulinari and James O'Cull
Activity
workaround for https://github.com/dotnet/corefx/issues/22626
danmoseley commentedon Jul 27, 2017
Hm, I don't remember the rationale for this one. @bartonjs @ianhays why isn't it like desktop:
If the caller just has to do exactly that, it seems perverse for us to not do it. There's no string in the PNSE either.
danmoseley commentedon Jul 27, 2017
This method has non trivial usage.
bartonjs commentedon Jul 27, 2017
It just got missed when CryptoConfig finally made it back. If @Petermarcu wants to take it this late I don't have an objection. But I can't, with a straight face, say it's necessary.
Petermarcu commentedon Jul 27, 2017
We should get it fixed in 2.0.1
clairernovotny commentedon Jul 27, 2017
@Petermarcu as a library author, how do I know where the fix is and how to set baseline requirements? I can target
netstandard2.0, but then what? There's no way for me to force that it needsnetcoreapp2.0.1on that platform?Basically, the question/issue is around how long should a workaround stay in place for? (it's a more general topic), but doing feature-detection and then having both code-paths seems really redundant (for this).
danmoseley commentedon Jul 27, 2017
@Petermarcu may have a better answer, but I think you're right that if you target netstandard2.0 the only safe approach is to leave the workaround in. The purpose of servicing is to at least help folks who fully deploy the servicing release: they don't need the workaround in their own code.
Petermarcu commentedon Jul 27, 2017
There are always going to be bugs in the platform implementations of .NET Standard that may require workarounds.
Yes, as long as you want to behave well on 2.0.0 you will have to use the workaround. The lifespan of 2.0.0 should be fairly short as support for it will die off quickly once we ship a 2.0.1 which I expect will only be a month or two out. Apps will automatically roll forward to it, all the download links will be updated, and servicing releases will have security fixes in them where we will strongly encourage people to get the latest.
Petermarcu commentedon Jul 27, 2017
Lets make sure we leave this in the 2.0.0 milestone so we don't lose track of it for the first update.
clairernovotny commentedon Jul 27, 2017
@Petermarcu one thing that'll help are regular telemetry releases that show the % of users who have what version deployed -- ideally would love a time-series chart to see as new versions are introduced and watch it exceed the current version.
Petermarcu commentedon Jul 27, 2017
I agree. I think that would help everyone. We currently don't have any telemetry at runtime which would be the most accurate way to get this info but should be able to get a better understanding of the trend of which SDK they are using which also tells us all which runtime people are running on at dev time at least.
Petermarcu commentedon Jul 27, 2017
@richlander do we have the datapoint in the sdk to tell us which runtime they are running on and/or which runtime they are deploying with their SCD?
danmoseley commentedon Jul 27, 2017
@ianhays can you please document this in https://github.com/dotnet/corefx/wiki/ApiCompat.
ianhays commentedon Jul 27, 2017
@danmosemsft sure thing :)
danmoseley commentedon Jul 27, 2017
This needs fixing in more places:
5 remaining items
danmoseley commentedon Aug 11, 2017
@krwq please get a fix for this into master, anything we might want to service, I would like to have baking in master.
danmoseley commentedon Aug 11, 2017
(leave the issue open)
krwq commentedon Aug 14, 2017
It seems that we missed that:
live inside System.Security.Cryptography.Primitives while CryptoConfig (which is needed to implement Create(string)) lives inside System.Security.Cryptography.Algorithms which depends on System.Security.Cryptography.Primitives. Fixing this would create dependency problem.
Given that we have decided NOT to add this back for now as there is not much requests for this and the workaround is straightforward.
For anyone interested in adding this back please comment and upvote this issue. Closing for now.
bartonjs commentedon Mar 21, 2018
Reopening due to activity on dotnet/standard#530.
jocull commentedon Mar 22, 2018
I appreciate you taking action on this @bartonjs - thank you!
HashAlgorithm.Create() now throws PNSE.