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

Also available in: Atom PDF