Respose header for content type is not properly set up when asked a report execution output.
For example, when we ask an execution for XLS output format, we get the response:
{
"status": "ready",
"totalPages": 1,
"currentPage": null,
"errorDescriptor": null,
"requestId": "1901846579_1404312812586_5",
"reportURI": "/reports/EDB/live_assignments",
"exports": [
{
"status": "ready",
"errorDescriptor": null,
"outputResource": {
"contentType": "application/xls",
"fileName": null
},
"id": "xls"
}
]
}
As we can see, contentType is set up as "application/xls" and should be "application/vnd.ms-excel" for XLS output according to IANA (http://www.iana.org/assignments/media-types/media-types.xhtml) or Microsoft (http://technet.microsoft.com/en-us/library/ee309278%28office.12%29.aspx).
The other types we found out to be wrong were XLSX ("application/xlsx" is set up when should be "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet") and DOCX ("application/docx" is set up when should be "application/vnd.openxmlformats-officedocument.wordprocessingml.document").
Recommended Comments