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

Bug 1102772

Summary: Missing link in usage_message
Product: Red Hat Enterprise Virtualization Manager Reporter: Petr Beňas <pbenas>
Component: ovirt-engine-restapiAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Kubica <pkubica>
Severity: unspecified Docs Contact:
Priority: low    
Version: 3.5.0CC: bazulay, gklein, iheim, juan.hernandez, oramraz, pstehlik, rbalakri, Rhev-m-bugs, yeylon
Target Milestone: ---   
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: vt2.2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-17 17:15:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1142923, 1156165    

Description Petr Beňas 2014-05-29 14:12:53 UTC
Description of problem:
<usage_message>
<message>
Request syntactically incorrect. See the link description below for the correct usage:
</message>
</usage_message>

Version-Release number of selected component (if applicable):
ovirt-engine-3.5.0-0.0.master.20140519181229.gitc6324d4.el6.noarch

How reproducible:


Steps to Reproduce:
1. post empty or incorrect string to /api/templates
2.
3.

Actual results:
no 'link description bellow'

Expected results:
message showing expected syntax

Additional info:

Comment 1 Juan Hernández 2014-06-03 13:52:46 UTC
I can't reproduce this posting empty or incorrect strings, for example:

#!/bin/sh -x

url="https://fedora.example.com/ovirt-engine/api"
user="admin@internal"
password="******"

curl \
--insecure \
--request POST \
--header "Accept: application/xml" \
--header "Content-Type: application/xml" \
--user "${user}:${password}" \
--data "" \
${url}/templates

This produces the correct link description. Can you provide an script similar to the above one that reproduces the issue?

Comment 2 Juan Hernández 2014-06-03 15:07:50 UTC
After checking with Petr I see that the issue reproduces when using the /api URL instead of /ovirt-engine/api.

Comment 3 Petr Beňas 2014-06-16 11:26:15 UTC
The requested informationi was clarified in an IRC chat, clearing the needinfo.

Comment 4 Petr Beňas 2014-07-29 08:56:46 UTC
Still reproducible in beta2 (3.5.0-0.0.master.20140722232058.git8e1babc.el6) with both /api and /ovirt-engine/api.

Comment 6 Petr Kubica 2014-09-10 10:45:41 UTC
Verified in 3.5.0-0.10.master.el6ev

Comment 8 Eyal Edri 2015-02-17 17:15:03 UTC
rhev 3.5.0 was released. closing.