Project

General

Profile

Actions

Bug #2187

closed

If a new version PT is present on the filesystem, but not loaded in Rudder, there are error on display

Added by Nicolas CHARLES almost 13 years ago. Updated about 12 years ago.

Status:
Rejected
Priority:
1 (highest)
Category:
Web - Config management
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

(the title may be wrong or misleading)

For the PT rpmPackageInstallation, there are 3 version on the filesystem and on the git:
1.0
2.0
2.1

The ldap tree contains only version 1.0 and 2.0, and a PI is based on PT 2.0
When showing the PI, I have the following error
16:11:53.351 [qtp746169063-71] ERROR net.liftweb.http.LiftRules - Exception being returned to browser when processing Req(List(F54839448872HJKK1Y), Map(F54839448872HJKK1Y -> List
(true)), ParsePath(List(ajax_request, F54839448857NWJHWV, index),,true,true), /rudder, PostRequest, Full(application/x-www-form-urlencoded; charset=UTF-8))
java.util.NoSuchElementException: key not found: 2.1
at scala.collection.MapLike$class.default(MapLike.scala:224) ~[scala-library-2.9.0-1.jar:na]
at scala.collection.immutable.Map$Map2.default(Map.scala:122) ~[scala-library-2.9.0-1.jar:na]
at scala.collection.MapLike$class.apply(MapLike.scala:135) ~[scala-library-2.9.0-1.jar:na]
at scala.collection.immutable.Map$Map2.apply(Map.scala:122) ~[scala-library-2.9.0-1.jar:na]
at com.normation.rudder.web.snippet.PolicyInstanceManagement$$anonfun$com$normation$rudder$web$snippet$PolicyInstanceManagement$$showVersions$1.apply(PolicyInstanceManage
ment.scala:213) ~[classes/:na]
at com.normation.rudder.web.snippet.PolicyInstanceManagement$$anonfun$com$normation$rudder$web$snippet$PolicyInstanceManagement$$showVersions$1.apply(PolicyInstanceManage
ment.scala:212) ~[classes/:na]
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:194) ~[scala-library-2.9.0-1.jar:na]
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:194) ~[scala-library-2.9.0-1.jar:na]
at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:60) ~[scala-library-2.9.0-1.jar:na]
at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:44) ~[scala-library-2.9.0-1.jar:na]
at scala.collection.TraversableLike$class.map(TraversableLike.scala:194) ~[scala-library-2.9.0-1.jar:na]
at scala.collection.mutable.ArrayBuffer.map(ArrayBuffer.scala:44) ~[scala-library-2.9.0-1.jar:na]
at com.normation.rudder.web.snippet.PolicyInstanceManagement.com$normation$rudder$web$snippet$PolicyInstanceManagement$$showVersions(PolicyInstanceManagement.scala:212) ~
[classes/:na]
at com.normation.rudder.web.snippet.PolicyInstanceManagement$$anonfun$policyTemplateDetails$1.apply(PolicyInstanceManagement.scala:180) ~[classes/:na]
at com.normation.rudder.web.snippet.PolicyInstanceManagement$$anonfun$policyTemplateDetails$1.apply(PolicyInstanceManagement.scala:164) ~[classes/:na]
at net.liftweb.http.SHtml$$anon$8.applyAgain(SHtml.scala:285) ~[lift-webkit_2.9.0-1-2.4-M3.1.jar:2.4-M3.1]
at com.normation.rudder.web.snippet.PolicyInstanceManagement.com$normation$rudder$web$snippet$PolicyInstanceManagement$$displayPolicyInstanceDetails(PolicyInstanceManagem
ent.scala:333) ~[classes/:na]
at com.normation.rudder.web.snippet.PolicyInstanceManagement$$anon$2.com$normation$rudder$web$snippet$PolicyInstanceManagement$$anon$$onClickNode(PolicyInstanceManagement
.scala:394) ~[classes/:na]
at com.normation.rudder.web.snippet.PolicyInstanceManagement$$anon$2$$anonfun$body$2.apply(PolicyInstanceManagement.scala:400) ~[classes/:na]
at com.normation.rudder.web.snippet.PolicyInstanceManagement$$anon$2$$anonfun$body$2.apply(PolicyInstanceManagement.scala:400) ~[classes/:na]
at net.liftweb.http.SHtml$$anonfun$a$1.apply(SHtml.scala:488) ~[lift-webkit_2.9.0-1-2.4-M3.1.jar:2.4-M3.1]
at net.liftweb.http.SHtml$$anonfun$a$1.apply(SHtml.scala:488) ~[lift-webkit_2.9.0-1-2.4-M3.1.jar:2.4-M3.1]
at net.liftweb.http.S$LFuncHolder.apply(S.scala:175) ~[lift-webkit_2.9.0-1-2.4-M3.1.jar:2.4-M3.1]
at net.liftweb.http.S$ProxyFuncHolder.apply(S.scala:115) ~[lift-webkit_2.9.0-1-2.4-M3.1.jar:2.4-M3.1]
at net.liftweb.http.LiftSession$$anon$3.net$liftweb$http$LiftSession$$anon$$super$apply(LiftSession.scala:1456) ~[lift-webkit_2.9.0-1-2.4-M3.1.jar:2.4-M3.1]
at net.liftweb.http.LiftSession$$anon$3$$anonfun$apply$67$$anonfun$apply$68$$anonfun$apply$69.apply(LiftSession.scala:1456) ~[lift-webkit_2.9.0-1-2.4-M3.1.jar:2.4-M3.1]
at net.liftweb.util.AnyVarTrait$class.doWith(AnyVar.scala:233) ~[lift-util_2.9.0-1-2.4-M3.1.jar:2.4-M3.1]
at net.liftweb.util.AnyVar.doWith(AnyVar.scala:89) ~[lift-util_2.9.0-1-2.4-M3.1.jar:2.4-M3.1]
at net.liftweb.http.LiftSession$$anon$3$$anonfun$apply$67$$anonfun$apply$68.apply(LiftSession.scala:1455) ~[lift-webkit_2.9.0-1-2.4-M3.1.jar:2.4-M3.1]
at net.liftweb.util.AnyVarTrait$class.doWith(AnyVar.scala:233) ~[lift-util_2.9.0-1-2.4-M3.1.jar:2.4-M3.1]
at net.liftweb.util.AnyVar.doWith(AnyVar.scala:89) ~[lift-util_2.9.0-1-2.4-M3.1.jar:2.4-M3.1]


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #2188: Reloading the Policy Template Library doesn't always reload everythingRejectedFrançois ARMAND2012-01-23Actions
Actions

Also available in: Atom PDF