Improve exception when HTTP.sys can't register a prefix#20718
Conversation
|
I can't ... I don't have access ... but @Rick-Anderson might help or advise. |
824f8cf to
9f4b507
Compare
There was a problem hiding this comment.
Is Environment.UserName in the right format to insert directly into the command?
There was a problem hiding this comment.
@halter73 I added a test in 52c0eff.
@Tratcher I included both the domain + user in DOMAIN\User format, as documented on Configuring namespace reservations, also in 52c0eff.
9f4b507 to
6e43a83
Compare
9a0943f to
8784857
Compare
Propose an actionable solution and include a link to the documentation.
8784857 to
52c0eff
Compare
|
I addressed the concerns raised by @shirhatti, @halter73 and @Tratcher, rebased onto master and force-pushed 52c0eff. |
|
The new test failed on helix. You wouldn't get AccessDenied if the test were run as admin, right? I wonder if Helix does that. @HaoK ? |
|
You could change the hostname in the test to localhost though? You wouldn't need elevation for that |
|
The point is that the test wants AccessDenied and isn't getting it. |
|
So this is failing because of a sudo issue? |
|
Yeah so our helix jobs do run as admin, so if the tests were expecting admin access failures, you might need to skip this test on helix |
|
Hello @Tratcher! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
| } | ||
|
|
||
| [ConditionalFact] | ||
| [SkipOnHelix("https://github.com/dotnet/aspnetcore/pull/20718#issuecomment-618758634")] |
There was a problem hiding this comment.
You can target specific queues, if this only is an issue on Windows queues, it might be best to use the OS skip on windows
There was a problem hiding this comment.
All HttpSys tests only run on Windows.
|
Unrelated broken test: #21191 |
Propose an actionable solution and include a link to the documentation.
@guardrex Can you create an aka.ms link to https://docs.microsoft.com/aspnet/core/fundamentals/servers/httpsys#configure-windows-server that I could use in the exception message?