Closed Mekk closed 4 years ago
Naively grep-ping around the code, I suppose this function may be related to the problem: https://github.com/elastic/kibana/blob/7a8301e43bee0ff9cab88b39147365f33c5a4501/x-pack/plugins/reporting/server/routes/lib/get_document_payload.ts#L29 (probably title can't be used as filename straight away)
I just upgraded to kibana 7.0.0 and it seems that the problem is resolved, I generated some reports with ąęł in name and they download properly.
So this case can be closed (maybe it would make sense to verify whether there exist some testcase for the behaviour).
I think the problem is still there. Kibana version:
Steps to reproduce: After saving search with japanese title such as "csvテスト", 500 error would appear in the download response.
Pinging @elastic/kibana-reporting-services (Team:Reporting Services)
I checked in 7.8.1 and can not reproduce this issue. If this needs to be re-opened, let's get more details about the server OS.
I just observed this problem in Kibana 8.6.2:
Podgląd złożonych zleceń
.reporting-*
index, all data are properly there, output.content
contains proper report body)…Stack Management / Reporting
or from popup notification) end up in download of
{"statusCode":500,"error":"Internal Server Error","message":"An internal server error occurred"}
Changing query name helps (after renaming query to Podglad zlozonych zlecen
everything works fine).
Not sure whether it is relevant, but kibana runs on Debian 9.13 and system is generally set to en_US.UTF-8 locale.
Kibana version: 6.6.2
Describe the bug:
Attempt to make CSV export from query which has non-ascii (in my case: Polish accented) character in it's name results in report which generates Internal Server Error on download.
According to logs content dispositon header is incorrectly generated - from kibana.log:
Steps to reproduce:
Define some query and save it using non-english accented character in the query name. In my case I observed problem while exporting queries named
Niedawne ślady
orWyszukiwanie błędu
, where presence of letters likeś
,ł
orę
triggers the problem, but i also googled some chinese page mentioning the same error: https://elasticsearch.cn/question/7213 )Click Share / CSV Reports / Generate CSV
Try downloading the report (from popup notification or from Management/Reporting)
As a result, I get
on every download attempt.
Changing query name to ascii-only resolves the issue.
Expected behavior:
Allow proper download whatever the query name is. This probably means escaping or mayhaps ASCII-izing Content disposition header.