From cbe9da128aad2e1477fabb219b408169ae0c8f55 Mon Sep 17 00:00:00 2001 From: Charles Reitz Date: Mon, 9 Dec 2024 07:45:27 -0800 Subject: [PATCH] Fix reading content_length from DB in getTransferTaskDataFromDB (#5471) * Fix reading content_length from DB in getTransferTaskDataFromDB * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md --------- Co-authored-by: Harsh <6162866+harsh62@users.noreply.github.com> --- AWSS3/AWSS3TransferUtilityDatabaseHelper.m | 2 +- CHANGELOG.md | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/AWSS3/AWSS3TransferUtilityDatabaseHelper.m b/AWSS3/AWSS3TransferUtilityDatabaseHelper.m index 76e80a64226..5ac548ef8d6 100644 --- a/AWSS3/AWSS3TransferUtilityDatabaseHelper.m +++ b/AWSS3/AWSS3TransferUtilityDatabaseHelper.m @@ -326,7 +326,7 @@ + (NSMutableArray *) getTransferTaskDataFromDB:(NSString *)nsURLSessionID [transfer setObject:[rs stringForColumn:@"etag"] forKey:@"etag"]; [transfer setObject:[AWSS3TransferUtilityDatabaseHelper absolutePathFromRelativePath:[rs stringForColumn:@"file"]] forKey:@"file"]; [transfer setObject:@([rs intForColumn:@"temporary_file_created"]) forKey:@"temporary_file_created"]; - [transfer setObject:@([rs intForColumn:@"content_length"]) forKey:@"content_length"]; + [transfer setObject:@([rs longForColumn:@"content_length"]) forKey:@"content_length"]; [transfer setObject:@([rs intForColumn:@"retry_count"]) forKey:@"retry_count"]; [transfer setObject:[rs stringForColumn:@"request_headers"] forKey:@"request_headers"]; [transfer setObject:[rs stringForColumn:@"request_parameters"] forKey:@"request_parameters"]; diff --git a/CHANGELOG.md b/CHANGELOG.md index 1899e762b51..004e3409f4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ - `setSignInProviders(_:)` - `getCredentialsProvider()` +### Bug Fixes +- **AWSS3** + - Fix reading content_length from DB in AWSS3TransferUtilityDatabaseHelper.m `getTransferTaskDataFromDB` + ## 2.37.2 ### Bug Fixes