Bug 1378352

Summary: ovirt-engine-rename allows setting an empty new name using the command line option --newname='
Product: [oVirt] ovirt-engine Reporter: Tareq Alayan <talayan>
Component: Tools.RenameAssignee: Yedidyah Bar David <didi>
Status: CLOSED WONTFIX QA Contact: Pavel Stehlik <pstehlik>
Severity: low Docs Contact:
Priority: low    
Version: 4.0.4.4CC: bugs, ylavi
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-25 07:30:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1377758    

Description Tareq Alayan 2016-09-22 08:51:28 UTC
Description of problem:
there is no validation on input

Version-Release number of selected component (if applicable):
rhevm-4.0.4.3-0.1.el7ev.noarch
ovirt-engine-setup-base-4.0.4.3-0.1.el7ev.noarch

How reproducible:
always

Steps to Reproduce:
1. /ovirt-engine-rename --newname= --otopi-environment="OSETUP_RENAME/forceIgnoreAIAInCA=bool:'True' OVESETUP_CORE/engineStop=bool:'True' OSETUP_RENAME/confirmForceOverwrite=bool:'False'
2.
3.

Actual results:
caused an empty fqdn

Expected results:
fail with proper error message

Additional info:

Comment 1 Yaniv Lavi 2018-06-25 07:30:25 UTC
Closing old bugs.
Please reopen if still relevant.
Patches are welcomed.