Bug 1105443
Summary: | using str value for "content host limit" while creating host-collection neither save the form nor raises any validation error | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Sachin Ghai <sghai> | ||||
Component: | WebUI | Assignee: | Walden Raines <walden> | ||||
WebUI sub component: | Katello | QA Contact: | Katello QA List <katello-qa-list> | ||||
Status: | CLOSED DUPLICATE | Docs Contact: | |||||
Severity: | medium | ||||||
Priority: | unspecified | CC: | bbuckingham, walden | ||||
Version: | 6.0.3 | Keywords: | Triaged | ||||
Target Milestone: | Unspecified | ||||||
Target Release: | Unused | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2014-07-02 15:51:31 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: | |||||||
Attachments: |
|
Since this issue was entered in Red Hat Bugzilla, the release flag has been set to ? to ensure that it is properly evaluated for this release. Duplicate of bug #1097054 *** This bug has been marked as a duplicate of bug 1097054 *** |
Created attachment 902785 [details] firebug throws error if I set the limit with some str on host-collection creation Description of problem: I've logged a similar defect #1096172 but that was for updating the limit. Now I'm facing similar issue while creating host-collection. If I use a str value for content-host-limit then UI should throw an error. But now UI neither throw any error nor saves the form. Version-Release number of selected component (if applicable): sat6 beta snap8 ((Satellite-6.0.3-RHEL-6-20140604.0) How reproducible: always Steps to Reproduce: 1. go to host-collection 2. create new --> unset limit and set limit with some str 3. save form Actual results: UI neither throws any error on UI nor saves the form. Expected results: a validation error should be raised. Additional info: production.log says: Processing by Katello::Api::V2::HostCollectionsController#create as JSON Parameters: {"unlimited"=>false, "max_content_hosts"=>nil, "name"=>"test", "organization_id"=>"1", "api_version"=>"v2", "host_collection"=>{"name"=>"test", "max_content_hosts"=>nil, "organization_id"=>"1"}} ActiveRecord::RecordInvalid content_host_limit: ["must be a positive integer value."] Completed 422 Unprocessable Entity in 54ms (Views: 0.9ms | ActiveRecord: 2.3ms)