Project

General

Profile

Actions

Bug #3198

closed

Sometimes, accepting a new version of a Policy Template fails in Rudder 2.3

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

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

Description

As in http://www.rudder-project.org/redmine/issues/3039, I created a new version for a Policy Template of checkGenericFileContent, accepted it within Rudder, and then I have the following stacktrace when trying to access the directive

18:56:34.260 [qtp1706427008-62] ERROR net.liftweb.http.LiftRules - Exception being returned to browser when processing Req(List(F1156367130962LYEQ2E, F1156367130
951NMU3MR, F1156367130956QMYWSC, F1156367130967EHLQ53, F1156367130943UYB5BX, F1156367130968UA5EO5, F1156367130963R0Y4EI, F1156367130971GWWOJZ, F1156367130953XULA
DC, F1156367130950SHGYDF, F1156367130945QE41RC, F1156367130972J0LRCS, F1156367130964WKPFFJ, F11563671309582GDLQT, F11563671309650HTWLC, F1156367130947NK5NZN, F11
563671309664E4PSU, F1156367130952ASR4BL, F1156367130960CEL5K2, F1156367130957DS4MTQ, F1156367130961JGOY5T, F1156367130970BFXSLJ, F1156367130955AI1Q2T, F115636713
0954T45TXW, F1156367130959OJMHYL, F1156367130973V0EIKL, F1156367130969MFBBMP, zF1156367130976UYRZVN, F1156367130949KKQCMM), Map(F11563671309582GDLQT -> List(^Hel
lo World), F1156367130952ASR4BL -> List(false), F1156367130957DS4MTQ -> List(deleteme.*), F1156367130970BFXSLJ -> List(false), F1156367130960CEL5K2 -> List(false
), F1156367130964WKPFFJ -> List(true, false), F1156367130955AI1Q2T -> List(true, false), F1156367130950SHGYDF -> List(/tmp/bug2819.txt), F1156367130951NMU3MR ->
List(false), F1156367130945QE41RC -> List(), F1156367130969MFBBMP -> List(true, false), F1156367130954T45TXW -> List(false), F1156367130953XULADC -> List(true, f
alse), F1156367130947NK5NZN -> List(Quality & Assurance on Techniques: Bug reported on Enforce a file content.

It seems that replacing a line with this one is bogus.), F1156367130973V0EIKL > List(), F1156367130968UA5EO5 -> List(false), F1156367130949KKQCMM -> List(PPWVBZ
CBOWDWJFGK303U), F1156367130943UYB5BX -> List(QA - Bug 2819: Replacing line using regexp fails), F11563671309664E4PSU -> List(true, false), F1156367130956QMYWSC
> List(I'm a bug.

O RLY ?), zF1156367130976UYRZVN -> List(_), F1156367130971GWWOJZ -> List(false), F1156367130962LYEQ2E -> List(root), F1156367130963R0Y4EI -> List(true, false), F
1156367130961JGOY5T -> List(root), F1156367130959OJMHYL -> List(), F11563671309650HTWLC -> List(false), F1156367130967EHLQ53 -> List(false), F1156367130972J0LRCS
-> List(false)), ParsePath(List(ajax_request, F1156367130208CTJTP2, index),,true,true), /rudder, PostRequest, Full(application/x-www-form-urlencoded; charset=UT
F-8))
java.util.NoSuchElementException: key not found: GENERIC_FILE_CONTENT_ENFORCE_CREATE_ONLY_BOOLEAN
at scala.collection.MapLike$class.default(MapLike.scala:224) ~[scala-library-2.9.0-1.jar:na]
at scala.collection.immutable.HashMap.default(HashMap.scala:36) ~[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.HashMap.apply(HashMap.scala:36) ~[scala-library-2.9.0-1.jar:na]
at com.normation.rudder.domain.policies.SectionVal$$anonfun$2.apply(PolicyInstance.scala:155) ~[rudder-core-0.10.1-SNAPSHOT.jar:na]
at com.normation.rudder.domain.policies.SectionVal$$anonfun$2.apply(PolicyInstance.scala:154) ~[rudder-core-0.10.1-SNAPSHOT.jar: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.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59) ~[scala-library-2.9.0-1.jar:na]
at scala.collection.immutable.List.foreach(List.scala:45) ~[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.immutable.List.map(List.scala:45) ~[scala-library-2.9.0-1.jar:na]
at com.normation.rudder.domain.policies.SectionVal$.buildMonoSectionWithMultivaluedParent$1(PolicyInstance.scala:154) ~[rudder-core-0.10.1-SNAPSHOT.jar:n
a]
at com.normation.rudder.domain.policies.SectionVal$$anonfun$9$$anonfun$apply$3.apply(PolicyInstance.scala:200) ~[rudder-core-0.10.1-SNAPSHOT.jar:na]
at com.normation.rudder.domain.policies.SectionVal$$anonfun$9$$anonfun$apply$3.apply(PolicyInstance.scala:199) ~[rudder-core-0.10.1-SNAPSHOT.jar: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.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59) ~[scala-library-2.9.0-1.jar:na]
at scala.collection.immutable.List.foreach(List.scala:45) ~[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.immutable.List.map(List.scala:45) ~[scala-library-2.9.0-1.jar:na]
at com.normation.rudder.domain.policies.SectionVal$$anonfun$9.apply(PolicyInstance.scala:199) ~[rudder-core-0.10.1-SNAPSHOT.jar:na]
at com.normation.rudder.domain.policies.SectionVal$$anonfun$9.apply(PolicyInstance.scala:197) ~[rudder-core-0.10.1-SNAPSHOT.jar: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.immutable.Range.foreach(Range.scala:78) ~[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.immutable.Range.map(Range.scala:43) ~[scala-library-2.9.0-1.jar:na]
at com.normation.rudder.domain.policies.SectionVal$.buildMultiSectionWithoutMultiParent$1(PolicyInstance.scala:197) ~[rudder-core-0.10.1-SNAPSHOT.jar:na]
at com.normation.rudder.domain.policies.SectionVal$$anonfun$12.apply(PolicyInstance.scala:222) ~[rudder-core-0.10.1-SNAPSHOT.jar:na]
at com.normation.rudder.domain.policies.SectionVal$$anonfun$12.apply(PolicyInstance.scala:220) ~[rudder-core-0.10.1-SNAPSHOT.jar:na]
18:56:41.753 [qtp1706427008-65] ERROR net.liftweb.http.LiftRules - Exception being returned to browser when processing Req(List(F1156367130238CXRXUN), Map(F1156367130238CXRXUN -> List(true)), ParsePath(List(ajax_request, F1156367130208CTJTP2, index),,true,true), /rudder, PostRequest, Full(application/x-www-form-urlencoded; charset=UTF-8))

There was no migration occuring, and something strange happened

Francois, could you have a look at this ?


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #3039: This is not possible to edit an Services management Directive after a migration from 2.4.0~beta4 to 2 4.0~rc1ReleasedNicolas PERRONActions
Actions

Also available in: Atom PDF