Actions
Bug #23305
closedWhen custom role permission list is empty, reload lead to stack trace
Status:
Released
Priority:
N/A
Assignee:
Category:
Architecture - Code maintenance
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:
No
Description
It looks like a user-management
plugin error, but the whole stack trace is in Rudder core, so I'm opening it here:
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> <title>Error 500 Exception in thread "zio-fiber-11419" java.lang.IllegalArgumentException: requirement failed: At least one AuthorizationType must be include in a Rights object at scala.Predef$.require(Predef.scala:337) at com.normation.rudder.Rights.<init>(Authorizations.scala:298) at com.normation.rudder.Role$NamedCustom.rights(Authorizations.scala:378) at com.normation.rudder.rest.RoleApiMapping.$anonfun$getApiAclFromRoles$1(RoleApiMapping.scala:240) at scala.collection.immutable.List.flatMap(List.scala:293) at scala.collection.immutable.List.flatMap(List.scala:79) at com.normation.rudder.rest.RoleApiMapping.getApiAclFromRoles(RoleApiMapping.scala:240) at bootstrap.liftweb.ValidatedUserList$.$anonfun$fromRudderAccountList$1(RudderUserDetailsFile.scala:241) at scala.collection.StrictOptimizedIterableOps.map(StrictOptimizedIterableOps.scala:100) at scala.collection.StrictOptimizedIterableOps.map$(StrictOptimizedIterableOps.scala:87) at scala.collection.immutable.HashMap.map(HashMap.scala:39) at bootstrap.liftweb.ValidatedUserList$.fromRudderAccountList(RudderUserDetailsFile.scala:235) at bootstrap.liftweb.UserFileProcessing$.$anonfun$parseXml$5(RudderUserDetailsFile.scala:482) at zio.ZIO.$anonfun$map$2(ZIO.scala:960) at bootstrap.liftweb.UserFileProcessing.parseXml(RudderUserDetailsFile.scala:472) at bootstrap.liftweb.UserFileProcessing.parseUsers(RudderUserDetailsFile.scala:444) at bootstrap.liftweb.FileUserDetailListProvider.reloadPure(RudderUserDetailsFile.scala:318) at com.normation.errors.IOChainError.chainError(ZioCommons.scala:200) at com.normation.box.IOToBox.toBox(ZioCommons.scala:483) at com.normation.zio.ZioRuntime.unsafeRun(ZioCommons.scala:445)</title>
Updated by François ARMAND over 1 year ago
- Status changed from New to In progress
Updated by François ARMAND over 1 year ago
- Status changed from In progress to Pending technical review
- Assignee changed from François ARMAND to Vincent MEMBRÉ
- Pull Request set to https://github.com/Normation/rudder/pull/4990
Updated by Anonymous over 1 year ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|ba3e72ae00e8e15e6c9dbdbb163fdff245820a35.
Updated by Elaad FURREEDAN about 1 year ago
- Fix check changed from To do to Checked
Updated by Vincent MEMBRÉ about 1 year ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 7.3.6 and 8.0.0~beta2 which were released today.
Actions