You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have MIME encoded filename in Content-Disposition header like "=?UTF-8?Q?Invoice_4.png?="
ApiClient does not decode it before sanitizing and fails on temporary file creation.
if (matcher.find()) { filename = sanitizeFilename(matcher.group(1)); }
ApiClient.prepareDownloadFile must decode filename!
I have MIME encoded filename in Content-Disposition header like "=?UTF-8?Q?Invoice_4.png?="
ApiClient does not decode it before sanitizing and fails on temporary file creation.
if (matcher.find()) { filename = sanitizeFilename(matcher.group(1)); }
ApiClient.prepareDownloadFile must decode filename!
filename = sanitizeFilename(MimeUtility.decodeText(matcher.group(1)));
This solution works fine!
The text was updated successfully, but these errors were encountered: