Repository navigation
[release/6.0] Make UseUrls() override default hosting config - #39836
Merged
Merged
Conversation
|
Hi @halter73. If this is not a tell-mode PR, please make sure to follow the instructions laid out in the servicing process document. |
|
Hi @halter73. Please make sure you've updated the PR description to use the Shiproom Template. Also, make sure this PR is not marked as a draft and is ready-to-merge. To learn more about how to prepare a servicing PR click here. |
Member
|
/azp run |
Member
|
We can merge this once CI is green & reviewers have signed off |
|
Azure Pipelines successfully started running 2 pipeline(s). |
Member
Author
|
@davidfowl @Tratcher @captainsafia Can one of you give this a review? |
Tratcher
approved these changes
Feb 2, 2022
Member
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
BrennanConroy
approved these changes
Feb 2, 2022
Member
|
@halter73 this breaks in conjunction with dotnet/runtime#63816 - we're going to revert it for now to unblock builds. Can try again next month when there's more time to react. |
halter73
pushed a commit
that referenced
this pull request
Mar 5, 2022
…t-efcore dnceng/internal/dotnet-runtime - Revert "Make UseUrls() override default hosting config (#39836)"
halter73
added a commit
that referenced
this pull request
Mar 5, 2022
1 task done
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Prior to this change, default config (typically loaded from
DOTNET_/ASPNET_environment variables and command line arguments) could override the application-level configuration. This would preventGenericWebHostServicefrom seeing the latest configuration set byUseUrls()ofDOTNET_URLS,ASPNET_URLSor--urlswas set.Fixes #38185
Customer Impact
This is a big gotcha to customers using
WebApplicationBuilder(which is used in all the ASP.NET Core 6 templates) who expect the following to work:A comment on the issue suggesting we patch this has gotten 5 thumbs ups not counting mine.
Regression?
[If yes, specify the version the behavior has regressed from]
Risk
This is a small well tested change which only affects the loading of default config sources and those added via a HostFactoryResolver to host configuration.
Verification
Packaging changes reviewed?