Actions
Bug #19651
closedBroken rules list in directive form
Status:
Released
Priority:
N/A
Assignee:
Category:
Web - Compliance & node report
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
Description
Fiber failed. An unchecked error was produced. net.liftweb.http.StateInStatelessException: Accessing function map information outside of a stateful session Fiber:Id(1627902718958,14753) was supposed to continue to: a future continuation at com.normation.rudder.web.components.RuleGrid.asyncDisplayAllRules(RuleGrid.scala:215) a future continuation at zio.ZIO$.zio$ZIO$$_succeedRight(ZIO.scala:4417) a future continuation at zio.ZIO.run(ZIO.scala:1730) a future continuation at zio.ZIO.bracket_(ZIO.scala:288) a future continuation at zio.ZIO.run(ZIO.scala:1730) a future continuation at zio.ZIO.bracket_(ZIO.scala:288) a future continuation at com.normation.zio$ZioRuntime$.runNow(ZioCommons.scala:413) Fiber:Id(1627902718958,14753) execution trace: at com.normation.rudder.web.components.RuleGrid.asyncDisplayAllRules(RuleGrid.scala:215) at com.normation.appconfig.ReadConfigService.rudder_global_policy_mode(ConfigService.scala:162) at com.normation.appconfig.GenericConfigService.get(ConfigService.scala:463) at zio.syntax$ToZio.succeed(syntax.scala:9) at com.normation.appconfig.GenericConfigService.get(ConfigService.scala:455) at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:160) at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:153) at zio.ZIO$.effectSuspendTotal(ZIO.scala:2791) at zio.ZIO$.bracketExit(ZIO.scala:2398) at zio.internal.FiberContext.evaluateNow(FiberContext.scala:559) at zio.ZIO$.effectSuspendTotal(ZIO.scala:2791) at zio.ZIO.bracket_(ZIO.scala:288) at zio.ZIO.run(ZIO.scala:1730) at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:153) at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:160) at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:153) at zio.ZIO$.effectSuspendTotal(ZIO.scala:2791) at zio.ZIO$.bracketExit(ZIO.scala:2398) at com.normation.ldap.sdk.PooledConnectionProvider.releaseInternalConnection(LDAPConnectionProvider.scala:254) at zio.ZIO$.effectSuspendTotal(ZIO.scala:2791) at com.normation.ldap.sdk.LDAPConnectionProvider.withCon(LDAPConnectionProvider.scala:117) at zio.ZIO.run(ZIO.scala:1730) at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:153) at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:160) at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:153) at zio.ZIO$.effectSuspendTotal(ZIO.scala:2791) at zio.ZIO$.bracketExit(ZIO.scala:2398) at zio.internal.FiberContext.evaluateNow(FiberContext.scala:559) at zio.ZIO$.effectSuspendTotal(ZIO.scala:2791) at zio.ZIO.bracket_(ZIO.scala:288) at zio.ZIO.run(ZIO.scala:1730) at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:153) at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:160) at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:153) at zio.ZIO$.effectSuspendTotal(ZIO.scala:2791) at zio.ZIO$.bracketExit(ZIO.scala:2398) at zio.ZIO$.effectSuspendTotal(ZIO.scala:2791) at zio.ZIO.bracket_(ZIO.scala:288) at zio.ZIO.run(ZIO.scala:1730) at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:153) at com.normation.appconfig.LdapConfigRepository.getConfigParameters(ConfigRepository.scala:87) at zio.ZIO$.foreach(ZIO.scala:2978) at zio.ZIO$.foreach(ZIO.scala:2977) at com.normation.errors$IOChainError$.chainError(ZioCommons.scala:203) at zio.ZIO$.fromEither(ZIO.scala:3280) at <unknown>.<unknown>(ZioCommons.scala:0) at zio.ZIO.zipWith(ZIO.scala:2257) at zio.ZIO$.foreach(ZIO.scala:2977) at com.normation.errors$IOChainError$.chainError(ZioCommons.scala:203) at zio.ZIO$.fromEither(ZIO.scala:3280) at <unknown>.<unknown>(ZioCommons.scala:0) at zio.ZIO.zipWith(ZIO.scala:2257) at zio.ZIO$.foreach(ZIO.scala:2977) at com.normation.errors$IOChainError$.chainError(ZioCommons.scala:203) at zio.ZIO$.fromEither(ZIO.scala:3280) at <unknown>.<unknown>(ZioCommons.scala:0) at zio.ZIO.zipWith(ZIO.scala:2257) at zio.ZIO$.foreach(ZIO.scala:2977) at com.normation.errors$IOChainError$.chainError(ZioCommons.scala:203) at zio.ZIO$.fromEither(ZIO.scala:3280) at <unknown>.<unknown>(ZioCommons.scala:0) at zio.ZIO.zipWith(ZIO.scala:2257) at zio.ZIO$.foreach(ZIO.scala:2977) at com.normation.errors$IOChainError$.chainError(ZioCommons.scala:203) at zio.ZIO$.fromEither(ZIO.scala:3280) at <unknown>.<unknown>(ZioCommons.scala:0) at zio.ZIO.zipWith(ZIO.scala:2257) at zio.ZIO$.foreach(ZIO.scala:2977) at com.normation.errors$IOChainError$.chainError(ZioCommons.scala:203) at zio.ZIO$.fromEither(ZIO.scala:3280) at <unknown>.<unknown>(ZioCommons.scala:0) at zio.ZIO.zipWith(ZIO.scala:2257) at zio.ZIO$.foreach(ZIO.scala:2977) at com.normation.errors$IOChainError$.chainError(ZioCommons.scala:203) at zio.ZIO$.fromEither(ZIO.scala:3280) at <unknown>.<unknown>(ZioCommons.scala:0) at zio.ZIO.zipWith(ZIO.scala:2257) at zio.ZIO$.foreach(ZIO.scala:2977) at com.normation.errors$IOChainError$.chainError(ZioCommons.scala:203) at zio.ZIO$.fromEither(ZIO.scala:3280) at <unknown>.<unknown>(ZioCommons.scala:0) at zio.ZIO.zipWith(ZIO.scala:2257) at zio.ZIO$.foreach(ZIO.scala:2977) at com.normation.errors$IOChainError$.chainError(ZioCommons.scala:203) at zio.ZIO$.fromEither(ZIO.scala:3280) at <unknown>.<unknown>(ZioCommons.scala:0) at zio.ZIO.zipWith(ZIO.scala:2257) at zio.ZIO$.foreach(ZIO.scala:2977) at com.normation.errors$IOChainError$.chainError(ZioCommons.scala:203) at zio.ZIO$.fromEither(ZIO.scala:3280) at <unknown>.<unknown>(ZioCommons.scala:0) at zio.ZIO.zipWith(ZIO.scala:2257) at zio.ZIO$.foreach(ZIO.scala:2977) at com.normation.errors$IOChainError$.chainError(ZioCommons.scala:203) at zio.ZIO$.fromEither(ZIO.scala:3280) at <unknown>.<unknown>(ZioCommons.scala:0) at zio.ZIO.zipWith(ZIO.scala:2257) at zio.ZIO$.foreach(ZIO.scala:2977) at com.normation.errors$IOChainError$.chainError(ZioCommons.scala:203) at zio.ZIO$.fromEither(ZIO.scala:3280) Fiber:Id(1627902718958,14753) was spawned by: <empty trace> [2021-08-02 13:11:59+0200] INFO net.liftweb.http.LiftServlet - Request for /rudder/lift/ajax/F438696845382D0W2TO-20/ failed Accessing function map information outside of a stateful session net.liftweb.http.StateInStatelessException: Accessing function map information outside of a stateful session 2021-08-02 13:11:59.326:WARN:oejs.HttpChannel:qtp1991294891-21: /rudder/lift/ajax/F438696845382D0W2TO-20/ net.liftweb.http.StateInStatelessException: Accessing function map information outside of a stateful session Fiber failed. An unchecked error was produced. net.liftweb.http.StateInStatelessException: Accessing function map information outside of a stateful session Fiber:Id(1627902741619,14889) was supposed to continue to: a future continuation at com.normation.rudder.web.components.RuleGrid.asyncDisplayAllRules(RuleGrid.scala:215) a future continuation at zio.ZIO$.zio$ZIO$$_succeedRight(ZIO.scala:4417) a future continuation at zio.ZIO.run(ZIO.scala:1730) a future continuation at zio.ZIO.bracket_(ZIO.scala:288) a future continuation at zio.ZIO.run(ZIO.scala:1730) a future continuation at zio.ZIO.bracket_(ZIO.scala:288) a future continuation at com.normation.zio$ZioRuntime$.runNow(ZioCommons.scala:413) Fiber:Id(1627902741619,14889) execution trace: at com.normation.rudder.web.components.RuleGrid.asyncDisplayAllRules(RuleGrid.scala:215) at com.normation.appconfig.ReadConfigService.rudder_global_policy_mode(ConfigService.scala:162) at com.normation.appconfig.GenericConfigService.get(ConfigService.scala:463) at zio.syntax$ToZio.succeed(syntax.scala:9) at com.normation.appconfig.GenericConfigService.get(ConfigService.scala:455) at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:160) at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:153) at zio.ZIO$.effectSuspendTotal(ZIO.scala:2791) at zio.ZIO$.bracketExit(ZIO.scala:2398) at zio.internal.FiberContext.evaluateNow(FiberContext.scala:559) at zio.ZIO$.effectSuspendTotal(ZIO.scala:2791) at zio.ZIO.bracket_(ZIO.scala:288) at zio.ZIO.run(ZIO.scala:1730) at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:153) at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:160) at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:153) at zio.ZIO$.effectSuspendTotal(ZIO.scala:2791) at zio.ZIO$.bracketExit(ZIO.scala:2398) at com.normation.ldap.sdk.PooledConnectionProvider.releaseInternalConnection(LDAPConnectionProvider.scala:254) at zio.ZIO$.effectSuspendTotal(ZIO.scala:2791) at com.normation.ldap.sdk.LDAPConnectionProvider.withCon(LDAPConnectionProvider.scala:117) at zio.ZIO.run(ZIO.scala:1730) at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:153) at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:160) at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:153) at zio.ZIO$.effectSuspendTotal(ZIO.scala:2791) at zio.ZIO$.bracketExit(ZIO.scala:2398) at zio.internal.FiberContext.evaluateNow(FiberContext.scala:559) at zio.ZIO$.effectSuspendTotal(ZIO.scala:2791) at zio.ZIO.bracket_(ZIO.scala:288) at zio.ZIO.run(ZIO.scala:1730) at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:153) at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:160) at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:153) at zio.ZIO$.effectSuspendTotal(ZIO.scala:2791) at zio.ZIO$.bracketExit(ZIO.scala:2398) at zio.ZIO$.effectSuspendTotal(ZIO.scala:2791) at zio.ZIO.bracket_(ZIO.scala:288) at zio.ZIO.run(ZIO.scala:1730) at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:153) at com.normation.appconfig.LdapConfigRepository.getConfigParameters(ConfigRepository.scala:87) at zio.ZIO$.foreach(ZIO.scala:2978) at zio.ZIO$.foreach(ZIO.scala:2977) at com.normation.errors$IOChainError$.chainError(ZioCommons.scala:203) at zio.ZIO$.fromEither(ZIO.scala:3280) at <unknown>.<unknown>(ZioCommons.scala:0) at zio.ZIO.zipWith(ZIO.scala:2257) at zio.ZIO$.foreach(ZIO.scala:2977) at com.normation.errors$IOChainError$.chainError(ZioCommons.scala:203) at zio.ZIO$.fromEither(ZIO.scala:3280) at <unknown>.<unknown>(ZioCommons.scala:0) at zio.ZIO.zipWith(ZIO.scala:2257) at zio.ZIO$.foreach(ZIO.scala:2977) at com.normation.errors$IOChainError$.chainError(ZioCommons.scala:203) at zio.ZIO$.fromEither(ZIO.scala:3280) at <unknown>.<unknown>(ZioCommons.scala:0) at zio.ZIO.zipWith(ZIO.scala:2257) at zio.ZIO$.foreach(ZIO.scala:2977) at com.normation.errors$IOChainError$.chainError(ZioCommons.scala:203) at zio.ZIO$.fromEither(ZIO.scala:3280) at <unknown>.<unknown>(ZioCommons.scala:0) at zio.ZIO.zipWith(ZIO.scala:2257) at zio.ZIO$.foreach(ZIO.scala:2977) at com.normation.errors$IOChainError$.chainError(ZioCommons.scala:203) at zio.ZIO$.fromEither(ZIO.scala:3280) at <unknown>.<unknown>(ZioCommons.scala:0) at zio.ZIO.zipWith(ZIO.scala:2257) at zio.ZIO$.foreach(ZIO.scala:2977) at com.normation.errors$IOChainError$.chainError(ZioCommons.scala:203) at zio.ZIO$.fromEither(ZIO.scala:3280) at <unknown>.<unknown>(ZioCommons.scala:0) at zio.ZIO.zipWith(ZIO.scala:2257) at zio.ZIO$.foreach(ZIO.scala:2977) at com.normation.errors$IOChainError$.chainError(ZioCommons.scala:203) at zio.ZIO$.fromEither(ZIO.scala:3280) at <unknown>.<unknown>(ZioCommons.scala:0) at zio.ZIO.zipWith(ZIO.scala:2257) at zio.ZIO$.foreach(ZIO.scala:2977) at com.normation.errors$IOChainError$.chainError(ZioCommons.scala:203) at zio.ZIO$.fromEither(ZIO.scala:3280) at <unknown>.<unknown>(ZioCommons.scala:0) at zio.ZIO.zipWith(ZIO.scala:2257) at zio.ZIO$.foreach(ZIO.scala:2977) at com.normation.errors$IOChainError$.chainError(ZioCommons.scala:203) at zio.ZIO$.fromEither(ZIO.scala:3280) at <unknown>.<unknown>(ZioCommons.scala:0) at zio.ZIO.zipWith(ZIO.scala:2257) at zio.ZIO$.foreach(ZIO.scala:2977) at com.normation.errors$IOChainError$.chainError(ZioCommons.scala:203) at zio.ZIO$.fromEither(ZIO.scala:3280) at <unknown>.<unknown>(ZioCommons.scala:0) at zio.ZIO.zipWith(ZIO.scala:2257) at zio.ZIO$.foreach(ZIO.scala:2977) at com.normation.errors$IOChainError$.chainError(ZioCommons.scala:203) at zio.ZIO$.fromEither(ZIO.scala:3280) at <unknown>.<unknown>(ZioCommons.scala:0) at zio.ZIO.zipWith(ZIO.scala:2257) at zio.ZIO$.foreach(ZIO.scala:2977) at com.normation.errors$IOChainError$.chainError(ZioCommons.scala:203) at zio.ZIO$.fromEither(ZIO.scala:3280) Fiber:Id(1627902741619,14889) was spawned by: <empty trace> [2021-08-02 13:12:21+0200] INFO net.liftweb.http.LiftServlet - Request for /rudder/lift/ajax/F438696845662INBEKJ-20/ failed Accessing function map information outside of a stateful session net.liftweb.http.StateInStatelessException: Accessing function map information outside of a stateful session 2021-08-02 13:12:21.682:WARN:oejs.HttpChannel:qtp1991294891-18: /rudder/lift/ajax/F438696845662INBEKJ-20/ net.liftweb.http.StateInStatelessException: Accessing function map information outside of a stateful session
Updated by Nicolas CHARLES over 3 years ago
this is a weird bug - it fails on getting the policy mode, but passing it in argument fails at the next step: getRootRuleCategory
this method doesn't have anything specific
and it seems the error is not there, with println I see getRootRuleCategory is evaluated
so error is somewhere else
Updated by Nicolas CHARLES over 3 years ago
error is with
val ajax = SHtml.ajaxCall(JsVar("checked"), bool => check (bool.toBoolean))
in RuleGrid, method getRuleData
Updated by Nicolas CHARLES over 3 years ago
method check works
error is really with `ajaxCall` that calls `ajaxCall_` that calls `fmapFunc` which does a `testFunctionMap` that looks for the session
so it cannot be in an IOResult
Updated by Nicolas CHARLES over 3 years ago
- Status changed from New to In progress
- Assignee set to Nicolas CHARLES
Updated by Nicolas CHARLES over 3 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Nicolas CHARLES to Elaad FURREEDAN
- Pull Request set to https://github.com/Normation/rudder/pull/3764
Updated by Nicolas CHARLES over 3 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|d7c538ce3a2071f3ec4b5a83bbfc35b8a70fef41.
Updated by Vincent MEMBRÉ over 3 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 7.0.0~beta1 which was released today.
Actions