Skip to content

Commit b552002

Browse files
committed
Merge in 'release/7.0-rc1' changes
2 parents dd0db8b + ee2161b commit b552002

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/Program.Main.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@ public static void Main(string[] args)
153153

154154
app.UseRouting();
155155

156+
#if (IndividualAuth)
157+
app.UseAuthorization();
158+
159+
#endif
156160
#if (OrganizationalAuth || IndividualAuth)
157161
app.MapControllers();
158162
#endif

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/Program.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@
147147

148148
app.UseRouting();
149149

150+
#if (IndividualAuth)
151+
app.UseAuthorization();
152+
153+
#endif
150154
#if (OrganizationalAuth || IndividualAuth)
151155
app.MapControllers();
152156
#endif

src/Servers/Kestrel/Core/src/Internal/Http3/Http3ControlStream.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public void Abort(ConnectionAbortedException abortReason, Http3ErrorCode errorCo
9292
return;
9393
}
9494

95-
Log.Http3StreamAbort(_context.ConnectionId, errorCode, abortReason);
95+
Log.Http3StreamAbort(TraceIdentifier, errorCode, abortReason);
9696

9797
_errorCodeFeature.Error = (long)errorCode;
9898
_frameWriter.Abort(abortReason);

src/Servers/Kestrel/test/Interop.FunctionalTests/Http3/Http3RequestTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,7 @@ private static Version GetProtocol(HttpProtocols protocol)
651651
}
652652

653653
[ConditionalFact]
654+
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/43374")]
654655
[MsQuicSupported]
655656
public async Task GET_ConnectionsMakingMultipleRequests_AllSuccess()
656657
{
@@ -659,7 +660,7 @@ public async Task GET_ConnectionsMakingMultipleRequests_AllSuccess()
659660

660661
var builder = CreateHostBuilder(context =>
661662
{
662-
requestCount++;
663+
Interlocked.Increment(ref requestCount);
663664
return Task.CompletedTask;
664665
});
665666

src/Shared/CertificateGeneration/MacOSCertificateManager.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ protected override IList<X509Certificate2> GetCertificatesToRemove(StoreName sto
375375

376376
protected override void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates)
377377
{
378-
if (store.Name! == StoreName.My.ToString() && store.Location == store.Location && Directory.Exists(MacOSUserHttpsCertificateLocation))
378+
if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation))
379379
{
380380
var certsFromDisk = GetCertsFromDisk();
381381

@@ -388,7 +388,10 @@ protected override void PopulateCertificatesFromStore(X509Store store, List<X509
388388
// Certs created (or "upgraded") by .NET 7+.
389389
// .NET 7+ installs the certificate on disk as well as on the user keychain (for backwards
390390
// compatibility with pre-.NET 7).
391-
var onDiskAndKeychain = certsFromDisk.Intersect(certsFromStore, ThumbprintComparer.Instance);
391+
// Note that the actual certs we populate need to be the ones from the store location, and
392+
// not the version from disk, since we may do other operations with these certs later (such
393+
// as exporting) which would fail with crypto errors otherwise.
394+
var onDiskAndKeychain = certsFromStore.Intersect(certsFromDisk, ThumbprintComparer.Instance);
392395

393396
// The only times we can find a certificate on the keychain and a certificate on keychain+disk
394397
// are when the certificate on disk and keychain has expired and a pre-.NET 7 SDK has been

0 commit comments

Comments
 (0)