Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Thread principal unauthenticated #35112

Merged
merged 6 commits into from
Feb 11, 2019

Conversation

ViktorHofer
Copy link
Member

@ViktorHofer ViktorHofer commented Feb 5, 2019

Fixing an oversight that results in an exception on uapaot in AppDomain: #30765 (comment). I did not add the PNSE as I don't think it is needed?

Disabling a reflection blocked test and a thread pool test where a condition for uapaot is missing.

cc @danmosemsft @jkotas @Anipik

@ViktorHofer ViktorHofer self-assigned this Feb 5, 2019
@ViktorHofer ViktorHofer force-pushed the ThreadPrincipalUnauthenticated branch 2 times, most recently from 8ca2e65 to b70ef22 Compare February 5, 2019 19:42
Volatile.Write(ref s_getUnauthenticatedPrincipal, (Func<IPrincipal>)Delegate.CreateDelegate(typeof(Func<IPrincipal>), type, "GetDefaultInstance"));
// Don't throw PNSE if null like for WindowsPrincipal as UnauthenticatedPrincipal should
// be available on all platforms.
Volatile.Write(ref s_getUnauthenticatedPrincipal,
Copy link
Member

Choose a reason for hiding this comment

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

You should also delete ignoreCase: false, throwOnBindFailure: false and keep it as it used to be so that it throws exception when things go wrong.

Copy link
Member

@stephentoub stephentoub left a comment

Choose a reason for hiding this comment

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

LGTM other than Jan's feedback.

@ViktorHofer ViktorHofer merged commit 0424e9d into dotnet:master Feb 11, 2019
@ViktorHofer ViktorHofer deleted the ThreadPrincipalUnauthenticated branch February 11, 2019 23:14
@karelz karelz added this to the 3.0 milestone Mar 18, 2019
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
* Remove bind error for thread principal

* Disable threadpool test for uapaot

* Disable MailMessage reflection test on uapaot

* Disable ValueTask reflection tests on uapaot

* Guard System.TestEnvironment against ILC

* Revert AppDomain UnauthenticatedPrincipal change


Commit migrated from dotnet/corefx@0424e9d
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants