Bug 1914256

Summary: unable to clear http_proxy_except_list setting ones set.
Product: Red Hat Satellite Reporter: Jameer Pathan <jpathan>
Component: SettingsAssignee: Ondřej Pražák <oprazak>
Status: CLOSED ERRATA QA Contact: Jameer Pathan <jpathan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.9.0CC: aagrawal, apatel, mhulan, oprazak
Target Milestone: 6.9.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: foreman-2.3.1.8-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-21 13:25:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1925193    
Attachments:
Description Flags
screenshot of issue none

Description Jameer Pathan 2021-01-08 13:08:38 UTC
Created attachment 1745583 [details]
screenshot of issue

Description of problem:
unable to clear http_proxy_except_list setting ones set.

Version-Release number of selected component (if applicable):
- Satellite 6.9.0 snap 8

How reproducible:
- Always

Steps to Reproduce:
1. Go to Administer > Settings
2. Update "HTTP(S) proxy except hosts" field. (Add anything)
3. Try to clear "HTTP(S) proxy except hosts" field.

Actual results:
Oh no! Something went wrong while submitting the form, the server returned the following error: Error: Request failed with status code 422

Expected results:
- No error, successfully able to clear the field data.

Additional info:

2021-01-08T07:54:53 [I|app|d3f36969] Started PUT "/api/settings/93" for 127.0.0.1 at 2021-01-08 07:54:53 -0500
2021-01-08T07:54:53 [I|app|d3f36969] Processing by Api::V2::SettingsController#update as JSON
2021-01-08T07:54:53 [I|app|d3f36969]   Parameters: {"setting"=>{"value"=>"[FILTERED]"}, "apiv"=>"v2", "id"=>"93"}
2021-01-08T07:54:53 [D|tax|d3f36969] Current location set to BJISZOkXIn
2021-01-08T07:54:53 [D|tax|d3f36969] Current organization set to woJnlPH
2021-01-08T07:54:53 [E|app|d3f36969] Unprocessable entity Setting::General (id: 93):
 d3f36969 |   Value must be comma separated
 d3f36969 | 
2021-01-08T07:54:53 [I|app|d3f36969]   Rendering api/v2/errors/unprocessable_entity.json.rabl within api/v2/layouts/error_layout
2021-01-08T07:54:53 [I|app|d3f36969]   Rendered api/v2/errors/unprocessable_entity.json.rabl within api/v2/layouts/error_layout (Duration: 4.3ms | Allocations: 6685)
2021-01-08T07:54:53 [D|app|d3f36969] Body: {
 d3f36969 |   "error": {"id":93,"errors":{"value":["must be comma separated"]},"full_messages":["Value must be comma separated"]}
 d3f36969 | }
 d3f36969 | 
2021-01-08T07:54:53 [I|app|d3f36969] Completed 422 Unprocessable Entity in 19ms (Views: 7.3ms | ActiveRecord: 1.4ms | Allocations: 19654)

Comment 1 Ondřej Pražák 2021-01-25 15:05:43 UTC
Created redmine issue https://projects.theforeman.org/issues/31719 from this bug

Comment 2 Bryan Kearney 2021-01-26 14:31:58 UTC
Upstream bug assigned to oprazak

Comment 3 Bryan Kearney 2021-01-26 14:32:00 UTC
Upstream bug assigned to oprazak

Comment 4 Bryan Kearney 2021-02-02 15:40:53 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/31719 has been resolved.

Comment 5 Brad Buckingham 2021-02-08 14:18:11 UTC
*** Bug 1925190 has been marked as a duplicate of this bug. ***

Comment 7 Jameer Pathan 2021-02-22 09:53:25 UTC
Verified 

Verified with:
- Satellite 6.9.0 snap 14

Test steps:
1. Go to Administer > Settings
2. Update "HTTP(S) proxy except hosts" field. (Add anything)
3. Clear "HTTP(S) proxy except hosts" field.

Observation:
- No error while Updating "HTTP(S) proxy except hosts" field.

Comment 10 errata-xmlrpc 2021-04-21 13:25:02 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Satellite 6.9 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:1313