{"action":"opened","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/220","labels_url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/220/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/220/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/220/events","html_url":"https://github.com/aws/aws-sdk-ios/issues/220","id":96078981,"number":220,"title":"Amazon iOS Mobile SDK v2 Create empty folder","user":{"login":"daumantasversockas","id":6226689,"avatar_url":"https://avatars.githubusercontent.com/u/6226689?v=3","gravatar_id":"","url":"https://api.github.com/users/daumantasversockas","html_url":"https://github.com/daumantasversockas","followers_url":"https://api.github.com/users/daumantasversockas/followers","following_url":"https://api.github.com/users/daumantasversockas/following{/other_user}","gists_url":"https://api.github.com/users/daumantasversockas/gists{/gist_id}","starred_url":"https://api.github.com/users/daumantasversockas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daumantasversockas/subscriptions","organizations_url":"https://api.github.com/users/daumantasversockas/orgs","repos_url":"https://api.github.com/users/daumantasversockas/repos","events_url":"https://api.github.com/users/daumantasversockas/events{/privacy}","received_events_url":"https://api.github.com/users/daumantasversockas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-20T14:41:04Z","updated_at":"2015-07-20T14:41:04Z","closed_at":null,"body":"\r\n0\r\ndown vote\r\nfavorite\r\nI have a question related with Amazon iOS Mobile SDK v2. I have a task to create an empty folder inside provided bucket. To create an empty folder I am using method:\r\n\r\n- (void)createDirectory:(AWSS3Object *)directory inBucket:(AWSS3Bucket *)bucket success:(void (^)())success failure:(void (^)(NSError *error))failure\r\n{\r\n    NSString *configurationKey = [NSString string];\r\n\r\n    if (self.configurationType == AmazonServiceConfigurationTypeDefault)\r\n    {\r\n        configurationKey = S3ConfigurationKey;\r\n    }\r\n\r\n    else if (self.configurationType == AmazonServiceConfigurationTypeHUB)\r\n    {\r\n        configurationKey = S3HUBConfigurationKey;\r\n    }\r\n\r\n    else if (self.configurationType == AmazonServiceConfigurationTypeTemporary)\r\n    {\r\n        configurationKey = S3TemporaryConfigurationKey;\r\n    }\r\n\r\n    AWSS3 *s3 = [AWSS3 S3ForKey:configurationKey];\r\n\r\n    AWSS3PutObjectRequest *putObjectRequest = [AWSS3PutObjectRequest new];\r\n\r\n    putObjectRequest.key = directory.key;\r\n    putObjectRequest.bucket = bucket.name;\r\n    putObjectRequest.body = [NSString string];\r\n\r\n    [[s3 putObject:putObjectRequest] continueWithBlock:^id(AWSTask *task)\r\n    {\r\n        if (task.error)\r\n        {\r\n            NSError *error = task.error;\r\n\r\n            failure(error);\r\n        }\r\n\r\n        else\r\n        {\r\n            success();\r\n        }\r\n\r\n        return nil;\r\n    }];\r\n}\r\nWith this method I am always getting the error: The request signature we calculated does not match the signature you provided.\r\n\r\nMy access and secure keys are correct.\r\n\r\nFrom the previous experience, I was used to get this error because of incorrect parameters.\r\n\r\nMy key: AWS iOS SDK v2 Test/test/\r\n\r\nMy bucket: abc-test\r\n\r\nPreviously, when I was using AWS iOS Mobile SDK v1, practically the same code has been working like a charm."}}