Project

General

Profile

Actions

Bug #11805

closed

Null pointer exception when restoring group archive.

Added by Nicolas CHARLES over 6 years ago. Updated over 6 years ago.

Status:
Released
Priority:
N/A
Category:
Web - Maintenance
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Priority:
52
Name check:
Fix check:
Regression:

Description

When importing a group archiv in Rudder 4.2.2, I got the following error

[2017-11-29 11:31:30] INFO  com.normation.rudder.repository.xml.ItemArchiveManagerImpl - Importing groups archive with id 'HEAD'
[2017-11-29 11:31:31] ERROR net.liftweb.http.LiftRules - Exception being returned to browser when processing /lift/ajax/F1357350845189ZO1BYD-00/
java.lang.NullPointerException: null
        at com.normation.rudder.repository.xml.ItemArchiveManagerImpl.$anonfun$importGroupLibraryAndDeploy$3(ItemArchiveManagerImpl.scala:359)
        at net.liftweb.common.Full.map(Box.scala:806)
        at com.normation.rudder.repository.xml.ItemArchiveManagerImpl.$anonfun$importGroupLibraryAndDeploy$2(ItemArchiveManagerImpl.scala:357)
        at net.liftweb.common.Full.flatMap(Box.scala:808)
        at com.normation.rudder.repository.xml.ItemArchiveManagerImpl.importGroupLibraryAndDeploy(ItemArchiveManagerImpl.scala:356)
        at com.normation.rudder.repository.xml.ItemArchiveManagerImpl.importGroupLibrary(ItemArchiveManagerImpl.scala:346)
        at com.normation.rudder.web.snippet.administration.Archives.$anonfun$groupLibraryForm$5(Archives.scala:152)
        at com.normation.rudder.web.snippet.administration.Archives.$anonfun$groupLibraryForm$5$adapted(Archives.scala:152)
        at com.normation.rudder.web.snippet.administration.Archives.$anonfun$actionFormBuilder$14(Archives.scala:246)
        at net.liftweb.common.Full.flatMap(Box.scala:808)
        at com.normation.rudder.web.snippet.administration.Archives.restore$1(Archives.scala:245)
        at com.normation.rudder.web.snippet.administration.Archives.$anonfun$actionFormBuilder$26(Archives.scala:300)
        at net.liftweb.http.S$NFuncHolder.$anonfun$apply$3(S.scala:185)

May happen on earlier versions


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #11244: Groups are not reloaded after restoring from archiveReleasedFrançois ARMANDActions
Actions #1

Updated by Nicolas CHARLES over 6 years ago

Note that the groups where correctly configured

Actions #2

Updated by Benoît PECCATTE over 6 years ago

  • Assignee set to François ARMAND
  • Severity set to Major - prevents use of part of Rudder | no simple workaround
  • User visibility set to Operational - other Techniques | Technique editor | Rudder settings
  • Priority changed from 0 to 52
Actions #3

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.2.3 to 3.1.25
Actions #4

Updated by Vincent MEMBRÉ over 6 years ago

  • Status changed from New to In progress
  • Assignee changed from François ARMAND to Vincent MEMBRÉ
Actions #5

Updated by Vincent MEMBRÉ over 6 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Vincent MEMBRÉ to François ARMAND
  • Pull Request set to https://github.com/Normation/rudder/pull/1810
Actions #6

Updated by Vincent MEMBRÉ over 6 years ago

value used in appconfig may not be initialized at this time, use the lazy val instead ...

Actions #7

Updated by Vincent MEMBRÉ over 6 years ago

  • Related to Bug #11244: Groups are not reloaded after restoring from archive added
Actions #8

Updated by Vincent MEMBRÉ over 6 years ago

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

Updated by Vincent MEMBRÉ over 6 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 3.1.25, 4.1.9 and 4.2.3 which were released today.

Actions

Also available in: Atom PDF