platformplatform / PlatformPlatform

Alpha state. A platform designed for building enterprise-grade, multi-tenant products using Azure, .NET, React, TypeScript, Infrastructure as Code, etc.
https://platformplatform.github.io
MIT License
253 stars 26 forks source link

Fix tenantId is null bug when UserInfo has not been accessed #593

Closed BlueBasher closed 1 month ago

BlueBasher commented 1 month ago

Summary & Motivation

This fix resolves a bug where the TenantId in HttpExecutionContext would always be null if UserInfo was the first property accessed. The issue stemmed from internal logic in HttpExecutionContext, which only set the TenantId when UserInfo was accessed first. The fix ensures that both UserInfo and TenantId are correctly set, regardless of which property is accessed first on HttpExecutionContext.

Atomic Changes

Checklist

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud