Project

General

Profile

Actions

Bug #11689

closed

Hidden value checkbox on global parameter form doesn't replace editor

Added by Dominic Cleal over 8 years ago. Updated almost 6 years ago.

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

Description

When editing a global parameter, the "Hidden value" checkbox doesn't replace the full editor (added in #11625) when checked, and the new textbox stays there when unchecked.

1. Edit a non-hidden parameter, check the "Hidden value" box and a new textbox appears between the editor toolbar and textarea. The old non-hidden value is still shown in the textarea.

2. Untick the "Hidden value" box and the new textbox remains.

3. Create a hidden parameter, untick the "Hidden value" box and the password field is replaced by a textbox and not the editor.


Files


Related issues 2 (0 open2 closed)

Related to Foreman - Refactor #11625: Make foreman ace editor reusableClosedWalden Raines08/31/2015Actions
Related to Foreman - Bug #11845: Hiding and then unhiding a parameter value breaks on host[group] parametersClosedWalden Raines09/16/2015Actions
Actions #1

Updated by Dominic Cleal over 8 years ago

Actions #2

Updated by Walden Raines over 8 years ago

  • Status changed from New to Assigned
  • Assignee set to Walden Raines

What's the expected behavior when the hidden value checkbox is checked?

It looks like it used to turn the text field into a password input which is grotesquely unsemantic and could even automatically be populated by a password via the browser or some plugin.

Does it really make sense to mask the input on the edit page? I understand not showing it on the list page but if you are going to edit a value, aren't you likely to want to see it?

Actions #3

Updated by Dominic Cleal over 8 years ago

Yes, the previous behaviour is the expected behaviour - to swap the text box for a password/hidden field and back.

Actions #4

Updated by Walden Raines over 8 years ago

Dominic Cleal wrote:

Yes, the previous behaviour is the expected behaviour - to swap the text box for a password/hidden field and back.

Okay, but I will mask the value using something other than a password field.

Actions #5

Updated by The Foreman Bot over 8 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2706 added
  • Pull request deleted ()
Actions #6

Updated by Walden Raines over 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #7

Updated by Tomer Brisker over 8 years ago

  • Related to Bug #11845: Hiding and then unhiding a parameter value breaks on host[group] parameters added
Actions

Also available in: Atom PDF