Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1323663

Summary: the path of storage domain is not trimmed/missing warning about invalid path
Product: [oVirt] ovirt-engine Reporter: Petr Kubica <pkubica>
Component: Frontend.WebAdminAssignee: Benny Zlotnik <bzlotnik>
Status: CLOSED CURRENTRELEASE QA Contact: Raz Tamir <ratamir>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.6.5CC: aaviram, acanan, amureini, bugs, gklein, ratamir, tnisan
Target Milestone: ovirt-4.1.1Keywords: EasyFix
Target Release: 4.1.1Flags: rule-engine: ovirt-4.1+
rule-engine: planning_ack+
rule-engine: devel_ack+
ratamir: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-21 09:32:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Kubica 2016-04-04 11:42:28 UTC
Description of problem:
storage path example:
"xx.xx.xx.xx:/nfs/storage/path "
                              ^
ui says: Error while executing action Add Storage Connection: Problem while trying to mount target

so users (like me) will look for error with nfs-server because users didn't notice the space at the end of entered path. (for example when using copy-paste method)

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

How reproducible:
always

Steps to Reproduce:
1. Add a storage domain with leading space

Actual results:
Confusing error

Expected results:
Trimmed path or warning about invalid path

Comment 1 Kevin Alon Goldblatt 2017-01-29 10:12:35 UTC
Verified with the following code:
--------------------------------------------
ovirt-engine-4.1.1-0.0.master.20170126161333.git83fd7e0.el7.centos.noarch
vdsm-4.19.3-1.gitdfa4d67.el7.centos.x86_64


Steps to Reproduce:
1. Add a storage domain with leading space

Actual results:
Confusing error
Error still reads:


Operation Canceled


Error while executing action Add Storage Connection: Problem while trying to mount target



Expected results:
Trimmed path or warning about invalid path

Comment 2 Raz Tamir 2017-02-13 15:30:38 UTC
Verified on rhevm-4.1.1-0.1.el7

It is impossible to create nfs SD with path that contains spaces. 
When hovering over the problematic path, a popup msg appears: "The filed can't contain spaces"