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.
Updated by Alexis Mousset over 3 years ago
- Subject changed from When hostname is invalid the log message says the tag is missing to When hostname is invalid in an inventory the log message says the tag is missing
Updated by Vincent MEMBRÉ over 3 years ago
- Target version changed from 6.1.15 to 6.1.16
Updated by Vincent MEMBRÉ about 3 years ago
- Target version changed from 6.1.16 to 6.1.17
Updated by Vincent MEMBRÉ about 3 years ago
- Target version changed from 6.1.17 to 6.1.18
Updated by Vincent MEMBRÉ almost 3 years ago
- Target version changed from 6.1.18 to 6.1.19
Updated by François ARMAND almost 3 years ago
- Tracker changed from Bug to Enhancement
- Priority deleted (
0)
Updated by Vincent MEMBRÉ over 2 years ago
- Target version changed from 6.1.19 to 6.1.20
Updated by Vincent MEMBRÉ over 2 years ago
- Target version changed from 6.1.20 to 6.1.21
Updated by Vincent MEMBRÉ over 2 years ago
- Target version changed from 6.1.21 to old 6.1 issues to relocate
Updated by François ARMAND over 1 year ago
- Status changed from New to Resolved
- Regression set to No
So now, we are checking that the hostname in the certificate used for the signature is the same as the one in the inventory, so we get the "invalid signature" error. Then, if an user use a bad hostname (not rfc compatible), we get an error saying so. I consider it resolved in 7.2.
Actions