{"action":"created","issue":{"url":"https://api.github.com/repos/localstack/localstack/issues/380","repository_url":"https://api.github.com/repos/localstack/localstack","labels_url":"https://api.github.com/repos/localstack/localstack/issues/380/labels{/name}","comments_url":"https://api.github.com/repos/localstack/localstack/issues/380/comments","events_url":"https://api.github.com/repos/localstack/localstack/issues/380/events","html_url":"https://github.com/localstack/localstack/issues/380","id":263641688,"number":380,"title":"Bug: S3 get-bucket-location returning invalid value for LocationConstraint","user":{"login":"vangorra","id":1752370,"avatar_url":"https://avatars1.githubusercontent.com/u/1752370?v=4","gravatar_id":"","url":"https://api.github.com/users/vangorra","html_url":"https://github.com/vangorra","followers_url":"https://api.github.com/users/vangorra/followers","following_url":"https://api.github.com/users/vangorra/following{/other_user}","gists_url":"https://api.github.com/users/vangorra/gists{/gist_id}","starred_url":"https://api.github.com/users/vangorra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vangorra/subscriptions","organizations_url":"https://api.github.com/users/vangorra/orgs","repos_url":"https://api.github.com/users/vangorra/repos","events_url":"https://api.github.com/users/vangorra/events{/privacy}","received_events_url":"https://api.github.com/users/vangorra/received_events","type":"User","site_admin":false},"labels":[{"id":468888567,"url":"https://api.github.com/repos/localstack/localstack/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-07T13:30:29Z","updated_at":"2017-10-08T06:15:43Z","closed_at":null,"author_association":"NONE","body":"When running with the node aws-sdk, requesting getBucketLocation results in a improperly formatted value for LocationConstraint.\r\n\r\nNode Code:\r\n``` javascript\r\nconst s3 = new AWS.S3({\r\n  acessKeyId: 'A',\r\n  secretAccessKey: 'B',\r\n  region: 'us-east-1',\r\n});\r\ns3\r\n  .getBucketLocation({\r\n    Bucket: 'myBucket-us-east-1',\r\n  })\r\n  .promise()\r\n  .then((data) => {\r\n    console.log('RETURNED DATA', data);\r\n  });\r\n```\r\n\r\nReturned Value: \r\n``` \r\n{ LocationConstraint: '<LocationConstraint xmlns=\"http://s3.amazonaws.com/doc/2006-03-01/\">us-east-1' }\r\n```\r\n\r\nAffects:\r\nv0.7.0 through v0.8.1 \r\n\r\nWorks with: \r\nv0.6.2\r\n\r\n\r\nSide note: \r\nRunning get location via the aws cli returns the proper value.\r\n```\r\naws --endpoint-url=http://localstack:4572 s3api get-bucket-location --bucket myBucket-us-east-1\r\n```\r\n```\r\n{\r\n    \"LocationConstraint\": \"us-east-1\"\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/localstack/localstack/issues/comments/334985968","html_url":"https://github.com/localstack/localstack/issues/380#issuecomment-334985968","issue_url":"https://api.github.com/repos/localstack/localstack/issues/380","id":334985968,"user":{"login":"whummer","id":2807888,"avatar_url":"https://avatars0.githubusercontent.com/u/2807888?v=4","gravatar_id":"","url":"https://api.github.com/users/whummer","html_url":"https://github.com/whummer","followers_url":"https://api.github.com/users/whummer/followers","following_url":"https://api.github.com/users/whummer/following{/other_user}","gists_url":"https://api.github.com/users/whummer/gists{/gist_id}","starred_url":"https://api.github.com/users/whummer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whummer/subscriptions","organizations_url":"https://api.github.com/users/whummer/orgs","repos_url":"https://api.github.com/users/whummer/repos","events_url":"https://api.github.com/users/whummer/events{/privacy}","received_events_url":"https://api.github.com/users/whummer/received_events","type":"User","site_admin":false},"created_at":"2017-10-08T06:15:43Z","updated_at":"2017-10-08T06:15:43Z","author_association":"COLLABORATOR","body":"Thanks for reporting @vangorra , this should be fixed in #386 . Can you please give it a try with the latest version (the Docker image is currently being built: https://travis-ci.org/localstack/localstack/builds/284954545). Thanks"}}
{"actor":{"display_login":"whummer"}}