Bug 988051 - We get enum message instead of a text one when putting a negative number in "Maximum number of VMs per user"
Summary: We get enum message instead of a text one when putting a negative number in "...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-core
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Martin Betak
QA Contact:
URL:
Whiteboard: virt
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-24 15:38 UTC by Maor
Modified: 2013-08-01 21:17 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-01 21:17:12 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)
engine log (1.02 MB, text/x-log)
2013-07-24 15:38 UTC, Maor
no flags Details

Description Maor 2013-07-24 15:38:06 UTC
Created attachment 777846 [details]
engine log

Description of problem:
Try to put a negative number in the "Maximum number of VMs per user" through the API

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


How reproducible:
100%

Steps to Reproduce: ( It can be reproduced through rest Although I succeeded to reproduce this from the GUI due to another issue I encountered)
1. Put negative in "Maximum number of VMs per user"
2.
3.

Actual results:
VALIDATION_VM_POOLS_NUMBER_OF_MAX_ASSIGNED_VMS_OUT_OF_RANGE

Expected results:
There should be a text message

Additional info:
The enum should be added to VdcBllMessages

Comment 1 Martin Betak 2013-08-01 18:49:39 UTC
The enum value VALIDATION_VM_POOLS_NUMBER_OF_MAX_ASSIGNED_VMS_OUT_OF_RANGE was replaced by VALIDATION.VM_POOLS.NUMBER_OF_MAX_ASSIGNED_VMS_OUT_OF_RANGE in 9e029f322b13409243f814c98159a8a676dd3ef5 and since this patch it also returns correct message when trying to set negative value via REST api.


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