Project

General

Profile

Actions

Bug #26605

closed

CurrentUser.queryContext is null when used in a ZIO for

Added by François ARMAND 25 days ago. Updated 8 days ago.

Status:
Released
Priority:
N/A
Category:
Architecture - Code maintenance
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No

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.


Subtasks 2 (0 open2 closed)

Rudder plugins - Bug #26608: CurrentUser.queryContext is null when used in a ZIO for (public plugins)ReleasedClark ANDRIANASOLOActions
Rudder plugins - Bug #26609: CurrentUser.queryContext is null when used in a ZIO for (private plugin)ReleasedClark ANDRIANASOLOActions

Related issues 3 (0 open3 closed)

Related to Rudder - Bug #26599: Missing Score pie charts on dashboardReleasedFrançois ARMANDActions
Related to Rudder - Bug #26625: Ubuntu 22.04 agent cannot be accepted on the serverReleasedClark ANDRIANASOLOActions
Related to Rudder - User story #26688: Initial page after Rudder installation should be the license tab at welcome stepReleasedFrançois ARMANDActions
Actions #1

Updated by François ARMAND 25 days ago

  • Related to Bug #26599: Missing Score pie charts on dashboard added
Actions #2

Updated by François ARMAND 25 days ago

  • Status changed from New to In progress
  • Assignee set to François ARMAND
Actions #3

Updated by François ARMAND 25 days ago

  • Subtask #26608 added
Actions #4

Updated by François ARMAND 25 days ago

  • Subtask #26609 added
Actions #5

Updated by François ARMAND 25 days ago

  • 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
Actions #6

Updated by Anonymous 25 days ago

  • Status changed from Pending technical review to Pending release
Actions #7

Updated by François ARMAND 23 days ago

  • Related to Bug #26625: Ubuntu 22.04 agent cannot be accepted on the server added
Actions #8

Updated by Clark ANDRIANASOLO 14 days ago

  • Related to User story #26688: Initial page after Rudder installation should be the license tab at welcome step added
Actions #9

Updated by Vincent MEMBRÉ 8 days ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 8.3.0~rc1 which was released today.

Actions

Also available in: Atom PDF