{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-java/issues/627","repository_url":"https://api.github.com/repos/aws/aws-sdk-java","labels_url":"https://api.github.com/repos/aws/aws-sdk-java/issues/627/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-java/issues/627/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-java/issues/627/events","html_url":"https://github.com/aws/aws-sdk-java/issues/627","id":131317457,"number":627,"title":"Different handling of null content-type in putObject() and TransferManager::upload()","user":{"login":"BluelivSecurity","id":9880805,"avatar_url":"https://avatars.githubusercontent.com/u/9880805?v=3","gravatar_id":"","url":"https://api.github.com/users/BluelivSecurity","html_url":"https://github.com/BluelivSecurity","followers_url":"https://api.github.com/users/BluelivSecurity/followers","following_url":"https://api.github.com/users/BluelivSecurity/following{/other_user}","gists_url":"https://api.github.com/users/BluelivSecurity/gists{/gist_id}","starred_url":"https://api.github.com/users/BluelivSecurity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BluelivSecurity/subscriptions","organizations_url":"https://api.github.com/users/BluelivSecurity/orgs","repos_url":"https://api.github.com/users/BluelivSecurity/repos","events_url":"https://api.github.com/users/BluelivSecurity/events{/privacy}","received_events_url":"https://api.github.com/users/BluelivSecurity/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-04T11:20:09Z","updated_at":"2016-02-04T16:44:02Z","closed_at":null,"body":"Using the method ``putObject`` of ``AmazonS3Client`` without providing it with a content-type in the ``ObjectMetadata`` doesn't crash because at some point it sets it accordingly.\r\nHowever, when using the method ``TransferManager::upload()`` using the exact same ``AmazonS3Client`` and the exact same ``ObjectMetadata``, it seems to throw a ``NullPointerException`` coming from [this point](https://github.com/aws/aws-sdk-java/blob/master/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java#L3189) in ``AmazonS3Client``, because in this case it doesn't set it, contrary to the previous case.\r\nIt feels like it's either a bug or odd undocumented behavior, which makes it confusing."},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-java/issues/comments/179938072","html_url":"https://github.com/aws/aws-sdk-java/issues/627#issuecomment-179938072","issue_url":"https://api.github.com/repos/aws/aws-sdk-java/issues/627","id":179938072,"user":{"login":"shorea","id":11096681,"avatar_url":"https://avatars.githubusercontent.com/u/11096681?v=3","gravatar_id":"","url":"https://api.github.com/users/shorea","html_url":"https://github.com/shorea","followers_url":"https://api.github.com/users/shorea/followers","following_url":"https://api.github.com/users/shorea/following{/other_user}","gists_url":"https://api.github.com/users/shorea/gists{/gist_id}","starred_url":"https://api.github.com/users/shorea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shorea/subscriptions","organizations_url":"https://api.github.com/users/shorea/orgs","repos_url":"https://api.github.com/users/shorea/repos","events_url":"https://api.github.com/users/shorea/events{/privacy}","received_events_url":"https://api.github.com/users/shorea/received_events","type":"User","site_admin":false},"created_at":"2016-02-04T16:44:02Z","updated_at":"2016-02-04T16:44:02Z","body":"@BluelivSecurity I am having trouble reproducing. Can you provide some sample code?"}}