-
Notifications
You must be signed in to change notification settings - Fork 291
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
In the chunk merging method, special characters and Chinese characters are not handled, causing files containing special characters or Chinese characters to throw errors during the merging process. #1385
Open
Comments
Please share the trace error/details @Guohao0509 |
|
a valid reproducer code would help or a trace for this above scenario. |
Line 1454 in 2813 headers['x-amz-copy-source'] = `${sourceObj}` If the fileName has Chinese characters and is not escaped, an error will occur async compose (objectIds, fileName, bucket) {
const sourceList = objectIds.map((objId) => {
return new MinIOHelpers.CopySourceOptions({
Bucket: bucket,
Object: objId
})
})
const destOption = new MinIOHelpers.CopyDestinationOptions({
Bucket: bucket,
Object: fileName
})
try {
await this.app.minioClient.composeObject(destOption, sourceList)
} catch (error) {
throw new Exception(ErrorCode.COMPOSE_FILES_FAILED);
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
in there: composeObject ->> headers['x-amz-copy-source'] =
${sourceObj}
The text was updated successfully, but these errors were encountered: