{"action":"created","issue":{"url":"https://api.github.com/repos/mulesoft/s3-connector/issues/14","labels_url":"https://api.github.com/repos/mulesoft/s3-connector/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/mulesoft/s3-connector/issues/14/comments","events_url":"https://api.github.com/repos/mulesoft/s3-connector/issues/14/events","html_url":"https://github.com/mulesoft/s3-connector/issues/14","id":40758684,"number":14,"title":"incorrect content length for string ","user":{"login":"vake","id":192383,"avatar_url":"https://avatars.githubusercontent.com/u/192383?v=3","gravatar_id":"","url":"https://api.github.com/users/vake","html_url":"https://github.com/vake","followers_url":"https://api.github.com/users/vake/followers","following_url":"https://api.github.com/users/vake/following{/other_user}","gists_url":"https://api.github.com/users/vake/gists{/gist_id}","starred_url":"https://api.github.com/users/vake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vake/subscriptions","organizations_url":"https://api.github.com/users/vake/orgs","repos_url":"https://api.github.com/users/vake/repos","events_url":"https://api.github.com/users/vake/events{/privacy}","received_events_url":"https://api.github.com/users/vake/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-08-21T00:01:03Z","updated_at":"2015-06-08T02:40:05Z","closed_at":"2015-06-08T02:40:05Z","body":"In S3ContentUtils.java,\r\n\r\n    private static S3ObjectContent createContent(String contentMd5, String stringContent)\r\n    {\r\n        return new InputStreamS3ObjectContent(new ByteArrayInputStream(stringContent.getBytes()),\r\n             (long) stringContent.length(), contentMd5);\r\n    }\r\n\r\nIf a string is wrapped in an inputstream object, the actual byte length should be used, otherwise the last few bytes might get truncated by s3. \"stringContent.length()\" only gives you the character count, while \"stringContent.getBytes().length\" gives you you the actual size.\r\n"},"comment":{"url":"https://api.github.com/repos/mulesoft/s3-connector/issues/comments/109839348","html_url":"https://github.com/mulesoft/s3-connector/issues/14#issuecomment-109839348","issue_url":"https://api.github.com/repos/mulesoft/s3-connector/issues/14","id":109839348,"user":{"login":"karthikanantha","id":6471369,"avatar_url":"https://avatars.githubusercontent.com/u/6471369?v=3","gravatar_id":"","url":"https://api.github.com/users/karthikanantha","html_url":"https://github.com/karthikanantha","followers_url":"https://api.github.com/users/karthikanantha/followers","following_url":"https://api.github.com/users/karthikanantha/following{/other_user}","gists_url":"https://api.github.com/users/karthikanantha/gists{/gist_id}","starred_url":"https://api.github.com/users/karthikanantha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karthikanantha/subscriptions","organizations_url":"https://api.github.com/users/karthikanantha/orgs","repos_url":"https://api.github.com/users/karthikanantha/repos","events_url":"https://api.github.com/users/karthikanantha/events{/privacy}","received_events_url":"https://api.github.com/users/karthikanantha/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T02:40:05Z","updated_at":"2015-06-08T02:40:05Z","body":"The bug has been fixed and will be available once the current v3.0.0 is released."}}