Actions
Enhancement #19512
closedWhen hostname is invalid in an inventory the log message says the tag is missing
Status:
Resolved
Priority:
N/A
Assignee:
-
Category:
Web - Nodes & inventories
Target version:
Pull Request:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
To do
Fix check:
To do
Regression:
No
Description
Modify share/fusioninventory/lib/FusionInventory/Agent/Task/Inventory/Generic/Rudder.pm
with:
HOSTNAME => 'toto<b>truc</b>',
Then the inventory is refused but the log does not really explain why:
[2021-07-07 09:23:28+0000] INFO inventory-processing - Watch new inventory file 'server-root.ocs' with signature available: process. [2021-07-07 09:23:28+0000] ERROR inventory-processing - Error when trying to process inventory 'server-root.ocs'; cause was: Can't parse the input inventory, aborting; cause was: Error when post processing report with 'post_process_inventory:check_consistency', abort; cause was: Inconsistency: Missing hostname tags (RUDDER∕HOSTNAME and OPERATINGSYSTEM/FQDN) in report. Having at least one of Those tags is mandatory.
Actions