Bug 1300350 - creating/updating host collection with long integer value under content-host limit raises "must be a positive integer value" error
Summary: creating/updating host collection with long integer value under content-host ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.1.6
Hardware: x86_64
OS: Linux
unspecified
medium vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-20 14:26 UTC by Oleksandr Shtaier
Modified: 2019-09-26 13:57 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-23 20:26:07 UTC
Target Upstream Version:


Attachments (Terms of Use)
6.2.8 page (217.68 KB, image/png)
2017-03-23 20:28 UTC, Bryan Kearney
no flags Details

Description Oleksandr Shtaier 2016-01-20 14:26:28 UTC
Description of problem:
Trying to create new host collection entity with long integer value (e.g. '123121231231231231231231232132132131237') passed into content host limit field. After pushing 'Save' button - nothing happened and get no errors in UI, but error is present in log file:
[E] ActiveRecord::RecordInvalid
[E] content_host_limit: ["must be a positive integer value."]

Same happened for edit operation, but next error present WebUI:
"An error occurred saving the Host Collection: Validation failed: Content host limit must be a positive integer value."

Version-Release number of selected component (if applicable):
6.1.6

How reproducible:
Always

Steps to Reproduce:
1. Try to create new host collection or edit existing one with long integer value for content host limit field

Actual results:
Error is present

Expected results:
Correct validation is performed and corresponding message is present on UI and no exceptions errors in log file

Additional info:

Comment 1 Oleksandr Shtaier 2016-01-20 14:33:17 UTC
Pretty similar to
https://bugzilla.redhat.com/show_bug.cgi?id=1139576
and
https://bugzilla.redhat.com/show_bug.cgi?id=1192356

but operations performed not from activation key, but from host collection point of view.

Anyway, try to fix that issue as mentioned in 'expected results', because functionality was fixed for activation key not so accurately and exception is still present in logs and message on UI is duplicated due some unknown reasons

Comment 3 Bryan Kearney 2016-07-26 15:25:24 UTC
Moving 6.2 bugs out to sat-backlog.

Comment 4 Bryan Kearney 2016-07-26 15:37:03 UTC
Moving 6.2 bugs out to sat-backlog.

Comment 6 Bryan Kearney 2017-03-23 20:26:07 UTC
I created a new collection, and added the value in a 6.2.8 machine. This was fixed. Closing this out.

Comment 7 Bryan Kearney 2017-03-23 20:28:19 UTC
Created attachment 1265884 [details]
6.2.8 page


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