Project

General

Profile

Actions

Bug #23809

closed

Unable to save overridden Array class smart parameters

Added by Ola O. over 6 years ago. Updated about 6 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Web Interface
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

When editing a class' smart parameters an array's Default Value will come out in a format quoted in a way that does not allow the smart parameters to be saved without manual intervention.

Example:

Using the snmp class, editing the agentaddress variable Foreman presents the Default Value as "[\"0.0.0.0\"]" . However, when trying to save the form this error message pops up: "The class could not be saved because of an error in one of the class parameters."

Upon editing the value to ["0.0.0.0"] one is able to save the form. The other problem is you have to edit ALL the parameters that are arrays.

Same problem with all other classes I checked, so a general error not only related to the snmp class.


Related issues 1 (0 open1 closed)

Is duplicate of Foreman - Bug #24640: 1.17 migration causes array/hash values for parameters to turn into strings with escaped quotesClosedTomer BriskerActions
Actions #1

Updated by Tomer Brisker about 6 years ago

  • Is duplicate of Bug #24640: 1.17 migration causes array/hash values for parameters to turn into strings with escaped quotes added
Actions #2

Updated by Tomer Brisker about 6 years ago

  • Status changed from New to Duplicate

Closing as duplicate of a newer bug because that one has a workaround in it.

Actions

Also available in: Atom PDF