-
Notifications
You must be signed in to change notification settings - Fork 514
Download Chinese filenames bug fix #1366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
portal-ui/src/screens/Console/Buckets/ListBuckets/Objects/ListObjects/ListObjects.tsx
Outdated
Show resolved
Hide resolved
a558b10 to
d531482
Compare
portal-ui/src/screens/Console/Buckets/ListBuckets/Objects/utils.ts
Outdated
Show resolved
Hide resolved
prakashsvmx
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comment.
otherwise
Tested. Changes look good to me. 👍
9353cef to
a5a46bb
Compare
|
Strange unrelated test failure |
|
@harshavardhana that test started failing today, also on other PRs that didn't had go changes |
Well the stored license in the test has expired Expired @dvaldivia |
|
NOTE we don't have JWT based license anymore and this test is meaningless.. |
|
First step lets remove the test as it's not meaningful and then also remove the JWT parsing code - this is not valid anymore. |
|
@jinapurapu An Example: |
|
Please rebase @adfost your PR. |
prakashsvmx
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
|
|
||
| if (rspHeader) { | ||
| filename = rspHeader.split('"')[1]; | ||
| let rspHeaderDecoded = decodeURIComponent(rspHeader); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| let rspHeaderDecoded = decodeURIComponent(rspHeader); | |
| let rspHeaderDecoded = decodeFileName(rspHeader); |
Please use the decodeFileName function located at portal-ui/src/common/utils.ts, that function will handle the error when a string cannot be decoded
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried that that doesn't work
a5a46bb to
b1aea92
Compare
bexsoft
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM




Fixes a bug where Chinese filenames would be messed up when being downloaded.
Fixes https://github.com/minio/console/issues/1351