Bug 1477161 - [REST]- Incorrect error message while creating network with name above 256 characters via REST API
Summary: [REST]- Incorrect error message while creating network with name above 256 ch...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Network
Version: 4.2.0
Hardware: x86_64
OS: Linux
high
low
Target Milestone: ovirt-4.1.6
: ---
Assignee: Leon Goldberg
QA Contact: Michael Burman
URL:
Whiteboard:
Depends On:
Blocks: 1458407
TreeView+ depends on / blocked
 
Reported: 2017-08-01 11:33 UTC by Ori Ben Sasson
Modified: 2017-09-19 10:03 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-09-19 10:03:06 UTC
oVirt Team: Network
Embargoed:
rule-engine: ovirt-4.1+


Attachments (Terms of Use)
logs (1.88 MB, application/zip)
2017-08-01 11:33 UTC, Ori Ben Sasson
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 80344 0 master MERGED backend: Add updated size validation to network names. 2017-08-17 08:44:07 UTC
oVirt gerrit 80694 0 master MERGED backend: Add updated size validation to vnic profile names. 2017-08-17 12:16:10 UTC
oVirt gerrit 80697 0 master MERGED frontend: Add updated size validation to vnic profile names. 2017-08-18 05:32:34 UTC
oVirt gerrit 80807 0 ovirt-engine-4.1 MERGED backend: Update business entitites definitions of network related sizes 2017-08-21 07:58:46 UTC
oVirt gerrit 80808 0 ovirt-engine-4.1 MERGED frontend: Add updated size validation to network names. 2017-08-21 07:59:49 UTC
oVirt gerrit 80809 0 ovirt-engine-4.1 MERGED backend: Add updated size validation to network names. 2017-08-21 07:59:56 UTC
oVirt gerrit 80837 0 ovirt-engine-4.1 MERGED frontend: Add updated size validation to vnic profile names. 2017-08-21 10:33:37 UTC
oVirt gerrit 80838 0 ovirt-engine-4.1 MERGED backend: Add updated size validation to vnic profile names. 2017-08-21 10:33:31 UTC

Description Ori Ben Sasson 2017-08-01 11:33:40 UTC
Created attachment 1307535 [details]
logs

Description of problem:
Incorrect error message while creating network with name above 256 characters via REST API 


Version-Release number of selected component (if applicable):
ovirt-engine-4.2.0-0.0.master.20170731224404.git1758643.el7.centos.noarc

How reproducible:
100

Steps to Reproduce:
1. create a network name with more than 256 characters via REST

Actual results:
<fault>
<detail>[Internal Engine Error]</detail>
<reason>Operation Failed</reason>
</fault>

Expected results:
We expect to correct error

Additional info:

We send:
<network>
    <name>     io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_ne
t__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_n
et__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_net__io_
   </name>
    <usages/>
    <vlan/>
    <data_center id="<dc id>"/>
</network>

Comment 1 Michael Burman 2017-08-27 05:19:11 UTC
Verified on - 4.1.6-0.1.el7

<fault>
<detail>[size must be between 0 and 256, Attribute: network.name]</detail>
<reason>Operation Failed</reason>
</fault>


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