{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/980","repository_url":"https://api.github.com/repos/aws/aws-sdk-ios","labels_url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/980/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/980/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/980/events","html_url":"https://github.com/aws/aws-sdk-ios/issues/980","id":338498100,"node_id":"MDU6SXNzdWUzMzg0OTgxMDA=","number":980,"title":"AWSS3TransferUtility Acceleration not working when deleting and installing the app.","user":{"login":"shashank-rps","id":16534263,"node_id":"MDQ6VXNlcjE2NTM0MjYz","avatar_url":"https://avatars3.githubusercontent.com/u/16534263?v=4","gravatar_id":"","url":"https://api.github.com/users/shashank-rps","html_url":"https://github.com/shashank-rps","followers_url":"https://api.github.com/users/shashank-rps/followers","following_url":"https://api.github.com/users/shashank-rps/following{/other_user}","gists_url":"https://api.github.com/users/shashank-rps/gists{/gist_id}","starred_url":"https://api.github.com/users/shashank-rps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shashank-rps/subscriptions","organizations_url":"https://api.github.com/users/shashank-rps/orgs","repos_url":"https://api.github.com/users/shashank-rps/repos","events_url":"https://api.github.com/users/shashank-rps/events{/privacy}","received_events_url":"https://api.github.com/users/shashank-rps/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-07-05T09:36:08Z","updated_at":"2018-07-10T13:10:29Z","closed_at":null,"author_association":"NONE","body":"### To help us solve your problem better, please answer the following list of questions.\r\n\r\n* What service are you using?\r\nAWSCore | AWSCognito | AWSS3\r\n\r\n* In what version of SDK are you facing the problem?\r\n2.6.22\r\n\r\n* Is the issue limited to Simulators / Actual Devices?\r\nNO\r\n\r\n* Can your problem be resolved if you bump to a higher version of SDK?\r\nNO\r\n\r\n* Is this problem related to specific iOS version?\r\nNO\r\n\r\n* How are you consuming the SDK? CocoaPods / Carthage / Prebuilt frameworks?\r\nCocoapods\r\n\r\n* Can you give us steps to reproduce with a minimal, complete, and verifiable example? Please include any specific network conditions that might be required to reproduce the problem.\r\n\r\nThe issue is with Amazon `AWSS3TransferUtility` acceleration. If I enable acceleration in the existing app everything works fine. Now if I uninstall the app and install again then the video upload to the bucket does not work. If I relaunch the app again with same configurations everything works fine.\r\n\r\nOn debugging the issue I found out that the first time after reinstalling the app, the secretKey and accessKey is new (which does not work and fails the upload) and when I launch again the secretKey and accessKey are different from the previous one and it remains same for the rest of the sessions (with this new secretKey and accessKey combination, upload is fine).\r\n\r\n I guess the issue is with the **secretKey** and **accessKey** which gets stored in AWSKeyChain.  \r\n\r\nThe code I am using in `didFinsihLaunchingWithOptions:`  \r\n``` AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1 identityPoolId:AMAZON_POOL_ID];\r\n    AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionAPSoutheast1 credentialsProvider:credentialsProvider];\r\n    AWSServiceManager.defaultServiceManager.defaultServiceConfiguration = configuration;  \r\n    AWSS3TransferUtilityConfiguration *transferConfig = [[AWSS3TransferUtilityConfiguration alloc] init];\r\n    transferConfig.accelerateModeEnabled = YES;\r\n    transferConfig.bucket = AMAZON_UPLOAD_BUCKETNAME;\r\n    [AWSS3TransferUtility registerS3TransferUtilityWithConfiguration:configuration transferUtilityConfiguration:transferConfig forKey:kUSEast1S3TransferUtility];\r\n```\r\n\r\nThis issue is reproducible every time. (Currently using - iPhone X, iOS- 11.3.1)"},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/comments/403816162","html_url":"https://github.com/aws/aws-sdk-ios/issues/980#issuecomment-403816162","issue_url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/980","id":403816162,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzgxNjE2Mg==","user":{"login":"cbommas","id":5359504,"node_id":"MDQ6VXNlcjUzNTk1MDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/5359504?v=4","gravatar_id":"","url":"https://api.github.com/users/cbommas","html_url":"https://github.com/cbommas","followers_url":"https://api.github.com/users/cbommas/followers","following_url":"https://api.github.com/users/cbommas/following{/other_user}","gists_url":"https://api.github.com/users/cbommas/gists{/gist_id}","starred_url":"https://api.github.com/users/cbommas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbommas/subscriptions","organizations_url":"https://api.github.com/users/cbommas/orgs","repos_url":"https://api.github.com/users/cbommas/repos","events_url":"https://api.github.com/users/cbommas/events{/privacy}","received_events_url":"https://api.github.com/users/cbommas/received_events","type":"User","site_admin":false},"created_at":"2018-07-10T13:10:29Z","updated_at":"2018-07-10T13:10:29Z","author_association":"NONE","body":"@shashank-rps \r\n\r\nThank you. Everything looks good in the code snippet. Can you post logs that contain the error you are seeing?\r\n\r\nAlso, are you setting up acceleration on the bucket programmatically or are you using the AWS console to do it? Setting accelerateModeEnabled = YES in the transfer utility config just tells the TransferUtility that the bucket has acceleration turned on; it doesn't change the actual bucket configuration on S3."}}
{"actor":{"display_login":"cbommas"}}