Bug 1280358 - Disk Alias and Description maximum size isn't restricted to max size
Summary: Disk Alias and Description maximum size isn't restricted to max size
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Frontend.WebAdmin
Version: 3.6.0.2
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ovirt-4.0.0-alpha
: 4.0.0
Assignee: Idan Shaby
QA Contact: Natalie Gavrielov
URL:
Whiteboard:
: 1289855 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-11 14:39 UTC by Eyal Shenitzky
Modified: 2016-07-05 07:46 UTC (History)
4 users (show)

Fixed In Version: ovirt 4.0.0 alpha1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-05 07:46:52 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-4.0.0+
rule-engine: planning_ack+
amureini: devel_ack+
acanan: testing_ack+


Attachments (Terms of Use)
engine log (63.72 KB, application/x-bzip)
2015-11-11 14:41 UTC, Eyal Shenitzky
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 50691 0 master MERGED engine: limit disk alias and description length 2015-12-21 15:16:37 UTC

Description Eyal Shenitzky 2015-11-11 14:39:26 UTC
Description of problem:

Disk alias maximum size is 255 characters, and description is 500 characters.
When entering long values into these fields,
For the alias, above 255 characters.
For the alias, above 500 characters.
Wrong Error massage received.
Verification of name size should be in the UI and not moved to the PostgreSQL.  

Version-Release number of selected component (if applicable):
3.6.0.3-0.1.el6

How reproducible:
Always

Steps to Reproduce:
1. Create disk with alias of 250-300 ascii characters,
   or description of more than 500 ascii characters.

Actual results:
Error massage recived -
Error while executing action Add Disk to VM: Internal Engine Error


Expected results:
Error massage should be - 
Error while executing action Add Disk to VM: alias or description is to long

Additional info:

Engine log attached

Comment 1 Eyal Shenitzky 2015-11-11 14:41:37 UTC
Created attachment 1092783 [details]
engine log

Comment 2 Red Hat Bugzilla Rules Engine 2015-11-11 15:10:40 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 3 Idan Shaby 2015-12-10 06:38:22 UTC
*** Bug 1289855 has been marked as a duplicate of this bug. ***

Comment 4 Natalie Gavrielov 2016-04-10 16:05:20 UTC
Verified,
ovirt-engine-4.0.0-0.0.master.20160406161747.gita4ecba2.el7.centos.noarch

a. For more than 255 characters in the alias field the following message appears:
   Field content must not exceed 255 characters.

b. Fore more than 500 characters in the description field the following message 
   appears:
   Field content must not exceed 500 characters.

c. For 255 characters in the alias field - disk is created

d. For 500 characters in the description field - disk is created

e. For 255 characters in the alias field and 500 characters in the description 
   field - disk is created.

Comment 5 Sandro Bonazzola 2016-07-05 07:46:52 UTC
oVirt 4.0.0 has been released, closing current release.


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