-
Notifications
You must be signed in to change notification settings - Fork 9
Fixed upload/download encrypted file API #383
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
When file is encrypted "application/octet-stream" data format is enforced regardless of original file type (image/jpeg, video/mp4, text/plain) or server's suggested Content-Type from generateUploadUrl
|
|
||
| @Test | ||
| fun uploadListDownloadDeleteWithCipherUseFileWithLegacyCryptoModule(){ | ||
| fun uploadListDownloadDeleteWithCipherUseFileWithLegacyCryptoModule() { |
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.
What does this test case cover? Have you considered other names for it?
uploadListDownloadDeleteWithCipherUseFileWithLegacyCryptoModule is quite long, and the same applies to uploadListDownloadDeleteWithCipherUseFileWithAesCbcCryptoModule below
EDIT: I see it uploads an encrypted File, then downloads a File from the remote server and compares their contents. If so, what do you think of the following, or something similar?
aesCbcEncryptedFileTransfer
legacyEncryptedFileTransfer
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.
These tests: upload, then list, then delete file using aesCbc/legacy cryptoModule.
I like proposed names. I will use them.
|
@pubnub-release-bot release kotlin as v12.0.1 |
|
🚀 Release successfully completed 🚀 |
fix: Fixed upload/download encrypted file API.
Fixed upload/download encrypted file API. When file is encrypted application/octet-stream data format is enforced regardless of original file type (image/jpeg, video/mp4, text/plain) or server's suggested Content-Type from generateUploadUrl.
fix: Removed redundant buffering when parsing encrypted data.