-
Notifications
You must be signed in to change notification settings - Fork 549
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
Resolving issue #375 StorageClass header is not added to upload request #398
Conversation
…pload request Added possibility to set StorageClass in ObjectMetadata (setStorageClass(StorageClass storageClass)) Save value into DB (TransferRecord). Table adjusted. Adjusted tests to test also set StorageClass.
Hi @petra, Thank you for submitting a pull request. We are reviewing it. |
Sorry for the delayed response. Can you remove the unused import of |
Removed unused import from TransferRecord.java Reformatted all files changed by this pull request with built-in "AWS Mobile SDK for Android" formatter
@kvasukib I've removed the unused import and reformatted all touched classes with your "AWS Mobile SDK for Android" formatter. Seems like the code was not formatted properly before my changes thus some additional formatting was changed not only whitespaces. |
Codecov Report
@@ Coverage Diff @@
## master #398 +/- ##
==========================================
+ Coverage 6.01% 6.01% +<.01%
==========================================
Files 5910 5910
Lines 230145 230166 +21
Branches 54038 54041 +3
==========================================
+ Hits 13846 13852 +6
- Misses 215141 215156 +15
Partials 1158 1158
Continue to review full report at Codecov.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Does anybody care to merge the pull request after 4 months? |
Hi @padamuscinova, Sorry for the delay. I am working on it. |
I was able to reproduce the issue. The issue is that the S3 putObject method extracts the storage class from the put object request and adds it as an Http header to the underlying request object. However, the TransferUtility does not have a provision to accept the storage class directly and we rely on the custom user metadata which is added to the Special case for GLACIER: https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html#sc-glacier |
Approving the PR. Will merge it in the upcoming release. |
Added possibility to set StorageClass in ObjectMetadata (setStorageClass(StorageClass storageClass))
Save value into DB (TransferRecord). Table adjusted.
Adjusted tests to test also set StorageClass.