[BUG] Mime decoder for attachment filename (Content-Disposition)
@kay-schecker is already working on this.
Since Dec 20, 2024.
Assessment
This issue has not been assessed yet.
Description
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!
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
<version>1.6.2</version>
</dependency>
filename = sanitizeFilename(MimeUtility.decodeText(matcher.group(1)));
This solution works fine!
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 208
- Avg merge
- 7h 12m
- Merged PRs (30d)
- 6
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OpenAPITools/openapi-generator-cli
-
[FEATURE] consider using caret ranges instead of pinned exact versions for runtime dependencies Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug
OpenAPITools/openapi-generator-cli#1213 · 1 assignee ·
-
bug
OpenAPITools/openapi-generator-cli#1190 · 1 assignee ·
-
bug
OpenAPITools/openapi-generator-cli#1138 · 1 comment · 1 assignee ·
-
bug
OpenAPITools/openapi-generator-cli#1094 · 1 comment · 1 assignee ·
All issues in OpenAPITools/openapi-generator-cli
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
bcgov/bc-wallet-mobile#4761 · 1 comment ·
-
external-issue to-triage
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
area-deployment area-integrations triage:bot-seen
Difficulty 2/5 Half a day Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
refactor
Difficulty 2/5 1-3 hours Newbie friendliness 84/100