Bug 2101435 - Major version fields should not accept negative integer values while creating/updating OS
Summary: Major version fields should not accept negative integer values while creating...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hosts
Version: 6.11.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-27 13:51 UTC by Vladimír Sedmík
Modified: 2023-08-14 08:51 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Vladimír Sedmík 2022-06-27 13:51:30 UTC
Description of problem:
In 6.11 it is possible to create or update an OS with a negative number used for major version using API, CLI or UI. It used to be forbidden since BZ#1120199.


Version-Release number of selected component (if applicable):
6.11.0 snap 26


How reproducible:
always


Steps to Reproduce:
1. Create or update an OS using API, CLI or UI and provide a negative number for the major version.


Actual results:
Operating system created (or updated) successfully.
[root@satellite ~]# hammer os info --id 2
Id:                 2
Title:              NegativeOS -99
Release name:       
Family:             
Name:               NegativeOS
Major version:      -99
Minor version:      


Expected results:
It should be banned to create negative OSes like it was in previous Satellite versions.


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