Bug #26605
closed
CurrentUser.queryContext is null when used in a ZIO for
Added by François ARMAND 6 months ago.
Updated 5 months ago.
Category:
Architecture - Code maintenance
Description
As see in #26599, it seems that the pattern:
(for {
... IOResults things ...
_ <- someService(...)(CurrentUser.queryContext)
...
} yield (...)).runNow
Leads to having an empty context.
We need to weave-up the implicit context as a method parameter up to the root call site and call `CurrentUser.queryContext` out of the outer-most zio for loop.
- Related to Bug #26599: Missing Score pie charts on dashboard added
- Status changed from New to In progress
- Assignee set to François ARMAND
- Status changed from In progress to Pending technical review
- Assignee changed from François ARMAND to Clark ANDRIANASOLO
- Pull Request set to https://github.com/Normation/rudder/pull/6280
- Status changed from Pending technical review to Pending release
- Related to Bug #26625: Ubuntu 22.04 agent cannot be accepted on the server added
- Related to User story #26688: Initial page after Rudder installation should be the license tab at welcome step added
- Status changed from Pending release to Released
This bug has been fixed in Rudder 8.3.0~rc1 which was released today.
- Related to Bug #27085: Change validation acceptation and decline endpoints fail with permission issues added
- Related to Bug #27321: Plugin doesn't show anything added
Also available in: Atom
PDF