Project

General

Profile

Bug #11805

Null pointer exception when restoring group archive.

Added by Nicolas CHARLES 14 days ago. Updated 1 day ago.

Status:
Released
Priority:
N/A
Category:
Web - Maintenance
Target version:
Target version (plugin):
Severity:
Major - prevents use of part of Rudder | no simple workaround
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Priority:
52

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

Related to Rudder - Bug #11244: Groups are not reloaded after restoring from archive Released

Associated revisions

Revision 0b0b1031
Added by Vincent MEMBRÉ 8 days ago

Fixes #11805: Null pointer exception when restoring group archive.

History

#1 Updated by Nicolas CHARLES 14 days ago

Note that the groups where correctly configured

#2 Updated by Benoît PECCATTE 9 days 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

#3 Updated by Vincent MEMBRÉ 8 days ago

  • Target version changed from 4.2.3 to 3.1.25

#4 Updated by Vincent MEMBRÉ 8 days ago

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

#5 Updated by Vincent MEMBRÉ 8 days 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

#6 Updated by Vincent MEMBRÉ 8 days ago

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

#7 Updated by Vincent MEMBRÉ 8 days ago

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

#8 Updated by Vincent MEMBRÉ 8 days ago

  • Status changed from Pending technical review to Pending release

#9 Updated by Vincent MEMBRÉ 1 day 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.

Also available in: Atom PDF