Bug 1323663 - the path of storage domain is not trimmed/missing warning about invalid path
Summary: the path of storage domain is not trimmed/missing warning about invalid path
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Frontend.WebAdmin
Version: 3.6.5
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.1.1
: 4.1.1
Assignee: Benny Zlotnik
QA Contact: Raz Tamir
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-04 11:42 UTC by Petr Kubica
Modified: 2017-04-21 09:32 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-21 09:32:21 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-4.1+
rule-engine: planning_ack+
rule-engine: devel_ack+
ratamir: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 67658 0 master MERGED webadmin: Prevent the usage of spaces in the NFS path 2016-12-22 12:06:17 UTC
oVirt gerrit 67843 0 master MERGED core: Prevent users from using spaces in NFS paths 2016-12-22 12:06:23 UTC
oVirt gerrit 71381 0 ovirt-engine-4.1 MERGED core: Prevent users from using spaces in NFS paths 2017-01-30 13:31:03 UTC
oVirt gerrit 71382 0 ovirt-engine-4.1 MERGED webadmin: Prevent the usage of spaces in the NFS path 2017-01-30 13:15:40 UTC

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"


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