Project

General

Profile

Actions

Bug #23632

open

POST to /hosts/puppetclass_parameters escapes array and hash entries

Added by Bastian Blank about 6 years ago. Updated about 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

A smart class parameter specified as array or hash is escaped while requesting the parameter page again via POST to /hosts/puppetclass_parameters.

The form data of the request contains:

host[lookup_values_attributes][372][value]: ["test"]

The HTML reply then contains another layer of escaping:

<textarea name="host[lookup_values_attributes][372][value]">&quot;[\&quot;test\&quot;]&quot;</textarea>

Actions #1

Updated by Bastian Blank about 6 years ago

The same does not happen if the parameter is specified as string.

Actions #2

Updated by The Foreman Bot about 6 years ago

  • Pull request https://github.com/theforeman/foreman/pull/5590 added
Actions

Also available in: Atom PDF