Project

General

Profile

Actions

Bug #23482

closed

Error when trying to add a JSON property to node

Added by Michel BOUISSOU about 1 year ago. Updated about 1 year ago.

Status:
Released
Priority:
N/A
Category:
Web - Nodes & inventories
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
I hate Rudder for that
User visibility:
First impressions of Rudder
Effort required:
Priority:
128
Name check:
To do
Fix check:
To do
Regression:
No

Description

May be a duplicate of #23472, although #23472 is about groups.

Trying to add a JSON property to a node results in error as seen in attached screenshot.

rudder-agent/bullseye,now 8.0.0~beta3~git202309220211-debian11 amd64 [installed,automatic]
rudder-api-client/bullseye,now 8.0.0~beta3~git202309220211-debian11 amd64 [installed]
rudder-relay/bullseye,now 8.0.0~beta3~git202309220211-debian11 amd64 [installed,automatic]
rudder-server/bullseye,now 8.0.0~beta3~git202309210211-debian11 amd64 [installed]


Files

save_prop_error_230922a.png (55.6 KB) save_prop_error_230922a.png Michel BOUISSOU, 2023-09-22 14:44
save_prop_error_230922b.png (111 KB) save_prop_error_230922b.png Error displayed but save succeeded Michel BOUISSOU, 2023-09-22 15:00
save_prop_error_230922c.png (128 KB) save_prop_error_230922c.png Refuses names with _ but accepted zozo with same value Michel BOUISSOU, 2023-09-22 15:01

Related issues 2 (0 open2 closed)

Related to Rudder - Bug #23472: error when create, modify or delete a properties on groupReleasedVincent MEMBRÉActions
Related to Rudder - Bug #23454: Cannot override global property in Rudder 8.0 beta 3ReleasedVincent MEMBRÉActions
Actions #1

Updated by Michel BOUISSOU about 1 year ago

  • Related to Bug #23472: error when create, modify or delete a properties on group added

Updated by Michel BOUISSOU about 1 year ago

Some things look really inconsistent :

- Will fail with « Error when saving node properties, details: The server had a problem, try again later »
=> Apparently when the property name is somewhat long or contains "_" underscores

- May display a message : “JSON check is enabled but the value format is invalid” AND however succeed saving the property.

- May succeed if trying the same value with a property name shorter, without underscores.

Actions #3

Updated by Michel BOUISSOU about 1 year ago

  • Severity changed from Critical - prevents main use of Rudder | no workaround | data loss | security to Minor - inconvenience | misleading | easy workaround
  • Priority changed from 172 to 128

It appears that the root cause was pasting a property name containing an invisible leading space.

Removing the leading space, things are back in order.

However the produced error message is really misleading, so I leave the bug open and decrease its severity to “minor”.

Actions #4

Updated by Raphael GAUTHIER about 1 year ago

  • Related to Bug #23454: Cannot override global property in Rudder 8.0 beta 3 added
Actions #5

Updated by Raphael GAUTHIER about 1 year ago

  • Status changed from New to In progress
  • Assignee set to Raphael GAUTHIER
Actions #6

Updated by Raphael GAUTHIER about 1 year ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Raphael GAUTHIER to Vincent MEMBRÉ
  • Pull Request set to https://github.com/Normation/rudder/pull/5055
Actions #7

Updated by Raphael GAUTHIER about 1 year ago

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

Updated by Vincent MEMBRÉ about 1 year ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 8.0.0~beta3 which was released today.

Actions

Also available in: Atom PDF