Bug 1255334
Summary: | [REST] response of DELETE watchdog is not in xml format | ||
---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Shira Maximov <mshira> |
Component: | ovirt-engine | Assignee: | Juan Hernández <juan.hernandez> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Shira Maximov <mshira> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.6.0 | CC: | bazulay, gklein, lsurette, mgoldboi, pstehlik, rbalakri, Rhev-m-bugs, srevivo, ykaul |
Target Milestone: | ovirt-3.6.0-rc | Keywords: | Automation |
Target Release: | 3.6.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | 3.6.0-10 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-04-20 01:30:09 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: |
Description
Shira Maximov
2015-08-20 10:12:10 UTC
This happens because the request doesn't include an "Accept" header, thus the application server is free to select whatever it likes. In this particular case it decides to send YAML. Not sure why, seems like the server selects randomly the response content type, and that the presence of headers like "Content-Type" have some influence. Ideally we should solve this making "application/xml" the default for all responses, but I couldn't find yet a way to configure the default response type in Resteasy. As a workaround include the "Accept: application/xml" header explicitly, that will force the server to use the expected media type. The fix for bug 1250046 also solves this issue. verified on 3.6.0-10 |