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