A pending storage switch reports requestedBy as "unknown" for a signed-in administrator #449

Closed
opened 2026-11-14 03:20:10 -05:00 by claude · 0 comments
Owner

Found while the wiki storage page (#435) was checked against a live run.

pendingSwitch.requestedBy in the storage status reads "unknown" after a signed-in administrator requests an engine switch. StorageController.cs (about line 84) reads ClaimTypes.Name, and the access token carries no such claim. The schema describes the field as the user name.

Wanted

  • Read the user name the way the other controllers and the audit trail do (find the existing helper; do not add a second way).
  • A test in Ninlil.Web.Tests that requests a switch as a named user and reads that name back.
  • Grep for other reads of ClaimTypes.Name with the same flaw.
Found while the wiki storage page (#435) was checked against a live run. `pendingSwitch.requestedBy` in the storage status reads `"unknown"` after a signed-in administrator requests an engine switch. `StorageController.cs` (about line 84) reads `ClaimTypes.Name`, and the access token carries no such claim. The schema describes the field as the user name. **Wanted** - Read the user name the way the other controllers and the audit trail do (find the existing helper; do not add a second way). - A test in `Ninlil.Web.Tests` that requests a switch as a named user and reads that name back. - Grep for other reads of `ClaimTypes.Name` with the same flaw.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lantea-one/ninlil#449
No description provided.