Bug 1353104
| Summary: | Validation for Domain and OS Parameters tab stopped to work | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Oleksandr Shtaier <oshtaier> | ||||||
| Component: | WebUI | Assignee: | orabin | ||||||
| Status: | CLOSED ERRATA | QA Contact: | Renzo Nuccitelli <rnuccite> | ||||||
| Severity: | high | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 6.2.0 | CC: | bbuckingham, bkearney, inecas, jcallaha, rnuccite | ||||||
| Target Milestone: | Unspecified | Keywords: | Regression, Triaged | ||||||
| Target Release: | Unused | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2018-02-21 16:44:36 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: | 1296662 | ||||||||
| Bug Blocks: | |||||||||
| Attachments: |
|
||||||||
|
Description
Oleksandr Shtaier
2016-07-06 06:26:29 UTC
Regression is introduced in latest SNAP (don't see any errors like that in automation runs for SNAP 17) The error is shown in production.log, but doesn't make it to the UI.
2016-07-07 13:53:36 [app] [I] Parameters: {"utf8"=>"✓", "authenticity_token"=>"54c/rNIrD587VYgQAS9monLcGJIf+vwrkafz3n+oKp0=", "domain"=>{"name"=>"google.com", "fullname"=>"", "dns_id"=>"", "domain_parameters_attributes"=>{"1467914013432"=>{"name"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "value"=>"[FILTERED]", "hidden_value"=>"[FILTERED]", "_destroy"=>"false"}}, "location_ids"=>[""], "organization_ids"=>["", "1"]}, "id"=>"2-google-com"}
2016-07-07 13:53:36 [app] [I] Failed to save: Name is too long (maximum is 255 characters)
This beahaviour was introduced by https://bugzilla.redhat.com/show_bug.cgi?id=1296662 and is caused by the fact, that we check the permissions in the form, which causes the data from form not survive the reload in form. Created redmine issue http://projects.theforeman.org/issues/15629 from this bug Upstream bug component is Provisioning Upstream bug component is WebUI Upstream bug assigned to orabin Upstream bug assigned to orabin Replacing this with the simpllified version from https://bugzilla.redhat.com/show_bug.cgi?id=1354572. In 6.3 we should re-apply this bug. Moving to POST since upstream bug http://projects.theforeman.org/issues/15629 has been closed Created attachment 1219050 [details]
Large domain validation on sat 6.3 snap 6
While verifying this bug the validation is ok. Inputs are red and user is redirected to parameters tab when submitting form. But there is no message explaining what the error actually is. Important noticing the error message appear on log: [root@foo ~]# grep "Name is too long" /var/log/foreman/production.log 2016-11-09 20:20:46 0a17d5b6 [app] [I] Failed to save: Name is too long (maximum is 255 characters) So am setting it back to assigned. In time: the validation worked on both 6.2.4 and 6.3 snap 6 versions, but without error messages as mentioned on comment 20 Created attachment 1219241 [details]
Domain with invalid parameter
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, 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-2018:0336 |