Bug 1466424
| Summary: | Upgrading to EAP 7.0.5-3 breaks integration with CFME | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Juan Hernández <juan.hernandez> |
| Component: | ovirt-engine | Assignee: | Juan Hernández <juan.hernandez> |
| Status: | CLOSED NOTABUG | QA Contact: | meital avital <mavital> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.0.7 | CC: | bodnopoz, lsurette, masayag, oourfali, rbalakri, Rhev-m-bugs, srevivo, ykaul |
| Target Milestone: | --- | Keywords: | Regression |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-07-03 12:02:16 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
Juan Hernández
2017-06-29 14:34:55 UTC
The workaround should be for the 'Content-Type' and 'Accept' headers: RequestHeader Content-Type edit ... RequestHeader Accept edit ... Verified that the suggested workaround works correctly:
# cat >> /etc/httpd/conf.d/fix-api-content-type.conf <<.
<Location /ovirt-engine/api>
RequestHeader edit Content-Type ^xml$ application/xml
RequestHeader edit Accept ^xml$ application/xml
</Location>
.
# systemctl restart httpd
There is no change in behaviour in EAP 7, it has always rejected 'xml' as a valid content type. The change in behaviour is caused by the replacement in CFME of the 'mime-types' gem with 'mini_mime': Stub mini-mime in for mime-types https://github.com/ManageIQ/manageiq/pull/14525 The difference is that 'mime_types' doesn't convert 'xml' to 'application/xml', which is expected by 'rest-client' and also by the 'ovirt' gem: # Produces nil: require 'mini_mime' MiniMime.lookup_by_filename('xml') # Produces application/xml: MIME::Types.type_for('xml')[0] This has been merged only to the CFME master branch, and not backported, so it won't affect released versions of CFME. I think that this can now be closed. We will still need to modify the 'ovirt' gem to explicitly use 'application/xml', but only for the master branch of CFME. |