Project

General

Profile

Actions

Bug #17597

closed

NPE when agent key is malformed

Added by François ARMAND almost 4 years ago. Updated almost 4 years ago.

Status:
Released
Priority:
N/A
Category:
Web - Maintenance
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:

Description

If agent key is malformed, we get an NPE:

java.lang.NullPointerException: null
    at com.normation.rudder.domain.nodes.CFEngineKey$.getCfengineDigest(NodeInfo.scala:287)
    at com.normation.rudder.domain.nodes.CFEngineKey$.$anonfun$getCfengineDigestFromCfeKey$3(NodeInfo.scala:273)
    at net.liftweb.common.Full.flatMap(Box.scala:858)
    at com.normation.rudder.domain.nodes.CFEngineKey$.$anonfun$getCfengineDigestFromCfeKey$1(NodeInfo.scala:272)
    at net.liftweb.common.Full.flatMap(Box.scala:858)
    at com.normation.rudder.domain.nodes.CFEngineKey$.getCfengineDigestFromCfeKey(NodeInfo.scala:270)
    at com.normation.rudder.domain.nodes.CFEngineKey$.getCfengineMD5Digest(NodeInfo.scala:233)
    at com.normation.rudder.domain.nodes.NodeInfo.securityTokenHash$lzycompute(NodeInfo.scala:124)
    at com.normation.rudder.domain.nodes.NodeInfo.securityTokenHash(NodeInfo.scala:104)
    at com.normation.rudder.services.policies.SystemVariableServiceImpl.$anonfun$getSystemVariables$20(SystemVariableService.scala:389)
    at scala.collection.immutable.List.map(List.scala:250)
Actions #1

Updated by François ARMAND almost 4 years ago

  • Status changed from New to In progress
Actions #2

Updated by François ARMAND almost 4 years ago

  • Target version changed from 5.0.18 to 6.1.0~rc3

It's actually in method which changed in 6.0.

Actions #3

Updated by François ARMAND almost 4 years 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/3034
Actions #4

Updated by François ARMAND almost 4 years ago

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

Updated by Vincent MEMBRÉ almost 4 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 6.1.0~rc3 which was released today.

Actions #6

Updated by François ARMAND almost 4 years ago

  • Fix check changed from To do to Checked
Actions

Also available in: Atom PDF