Project

General

Profile

Bug #10220

Inventories with fields containing only spaces/tabs/... may fail to be parsed due to invalid sanitization of entry

Added by Nicolas CHARLES 9 months ago. Updated 9 months ago.

Status:
Released
Priority:
N/A
Category:
Web - Nodes & inventories
Target version:
Target version (plugin):
Severity:
User visibility:
Effort required:
Priority:

Description

If a Storage/Manufacture tag contain only space or blank characters, inventory will fail to be processed by the web interface, with a nasty

java.lang.AssertionError: assertion failed
        at scala.Predef$.assert(Predef.scala:156)

Cause is function "optText" in FusionReportUnmarshaller that does not handle properly this case - it should sanitize entry first

Associated revisions

Revision b5cf10ca
Added by Nicolas CHARLES 9 months ago

Fixes #10220: Inventories with fields containing only spaces/tabs/... may fail to be parsed due to invalid sanitization of entry

History

#1 Updated by Nicolas CHARLES 9 months ago

  • Status changed from New to In progress
  • Assignee set to Nicolas CHARLES

#2 Updated by Nicolas CHARLES 9 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Nicolas CHARLES to François ARMAND
  • Pull Request set to https://github.com/Normation/ldap-inventory/pull/102

#3 Updated by Nicolas CHARLES 9 months ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100

#4 Updated by Vincent MEMBRÉ 9 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 3.1.18, 3.2.11, 4.0.3 and 4.1.0~beta3 which were released today.

Also available in: Atom PDF