Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1919565 - Error: Request failed with status code 422 if you miss adding HTTP or HTTPS before proxy IP or hostname
Summary: Error: Request failed with status code 422 if you miss adding HTTP or HTTPS b...
Keywords:
Status: CLOSED DUPLICATE of bug 1911228
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Settings
Version: 6.9.0
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: 6.9.0
Assignee: satellite6-bugs
QA Contact: Devendra Singh
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-23 17:39 UTC by Ganesh Payelkar
Modified: 2021-02-17 14:32 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-17 14:32:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ganesh Payelkar 2021-01-23 17:39:28 UTC
Description of problem:

Error: Request failed with status code 422 if you miss adding HTTP or HTTPS before proxy IP or hostname 

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


Version-Release number of selected component (if applicable):
satellite-6.9 Beta


How reproducible:
New installation

Steps to Reproduce:
1. Go to Administer --> Settings --> General 
2. Update "HTTP(S) proxy without HTTP:// or https://
3. 

Actual results:

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

==> /var/log/foreman/production.log <==
2021-01-23T22:52:15 [I|app|9072d123] Started PUT "/api/settings/92" for 127.0.0.1 at 2021-01-23 22:52:15 +0530
2021-01-23T22:52:15 [I|app|9072d123] Processing by Api::V2::SettingsController#update as JSON
2021-01-23T22:52:15 [I|app|9072d123]   Parameters: {"setting"=>{"value"=>"[FILTERED]"}, "apiv"=>"v2", "id"=>"92"}
2021-01-23T22:52:15 [E|app|9072d123] Unprocessable entity Setting::General (id: 92):
 9072d123 |   Not a valid URL for a HTTP Proxy
 9072d123 | 
2021-01-23T22:52:15 [I|app|9072d123]   Rendering api/v2/errors/unprocessable_entity.json.rabl within api/v2/layouts/error_layout
2021-01-23T22:52:15 [I|app|9072d123]   Rendered api/v2/errors/unprocessable_entity.json.rabl within api/v2/layouts/error_layout (Duration: 5.8ms | Allocations: 6602)
2021-01-23T22:52:15 [I|app|9072d123] Completed 422 Unprocessable Entity in 24ms (Views: 10.1ms | ActiveRecord: 2.2ms | Allocations: 17527)



Expected results:

Please print/show user-friendly error like  "Not a valid URL for a HTTP Proxy" instead of current {Oh no! Something went wrong while submitting the form, the server returned the following error: Error: Request failed with status code 422}

Additional info:

Any example on the popup would be helpful to understand the requirement, who are new to satellite

Comment 1 Brad Buckingham 2021-01-25 15:21:45 UTC
Is this a regression from 6.8?

Comment 2 Ganesh Payelkar 2021-01-25 15:51:05 UTC
6.8 just show:  "Not a valid URL for a HTTP Proxy"  on WebUI


Note You need to log in before you can comment on or make changes to this bug.