{"action":"opened","number":95,"pull_request":{"url":"https://api.github.com/repos/mendersoftware/mender-artifact/pulls/95","id":139496451,"html_url":"https://github.com/mendersoftware/mender-artifact/pull/95","diff_url":"https://github.com/mendersoftware/mender-artifact/pull/95.diff","patch_url":"https://github.com/mendersoftware/mender-artifact/pull/95.patch","issue_url":"https://api.github.com/repos/mendersoftware/mender-artifact/issues/95","number":95,"state":"open","locked":false,"title":"MEN-1412 Fix broken header checksum verification.","user":{"login":"pasinskim","id":6329055,"avatar_url":"https://avatars1.githubusercontent.com/u/6329055?v=4","gravatar_id":"","url":"https://api.github.com/users/pasinskim","html_url":"https://github.com/pasinskim","followers_url":"https://api.github.com/users/pasinskim/followers","following_url":"https://api.github.com/users/pasinskim/following{/other_user}","gists_url":"https://api.github.com/users/pasinskim/gists{/gist_id}","starred_url":"https://api.github.com/users/pasinskim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pasinskim/subscriptions","organizations_url":"https://api.github.com/users/pasinskim/orgs","repos_url":"https://api.github.com/users/pasinskim/repos","events_url":"https://api.github.com/users/pasinskim/events{/privacy}","received_events_url":"https://api.github.com/users/pasinskim/received_events","type":"User","site_admin":false},"body":"For reading and verifying header checksum we are using checksum.Reader.\r\nInternal inplementation of checksum.Reader is using io.TeeReader for\r\ncalculating checksum and reading the stream at the same time.\r\nAfter receiving EOF checksum should be checked automatically inside\r\nchecksum.Reader, but if we are inside tar archive error is not passed up\r\nthe stack to tar.Reader.\r\nThe workaround is to check the sum again after the whole header is read.\r\n\r\nChangelog: Title\r\n\r\n\r\nSigned-off-by: Marcin Pasinski <marcin.pasinski@mender.io>","created_at":"2017-09-06T08:07:51Z","updated_at":"2017-09-06T08:07:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/mendersoftware/mender-artifact/pulls/95/commits","review_comments_url":"https://api.github.com/repos/mendersoftware/mender-artifact/pulls/95/comments","review_comment_url":"https://api.github.com/repos/mendersoftware/mender-artifact/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mendersoftware/mender-artifact/issues/95/comments","statuses_url":"https://api.github.com/repos/mendersoftware/mender-artifact/statuses/2dc7624760473b3f50ebe72ee70b719f202d216f","head":{"label":"pasinskim:master","ref":"master","sha":"2dc7624760473b3f50ebe72ee70b719f202d216f","user":{"login":"pasinskim","id":6329055,"avatar_url":"https://avatars1.githubusercontent.com/u/6329055?v=4","gravatar_id":"","url":"https://api.github.com/users/pasinskim","html_url":"https://github.com/pasinskim","followers_url":"https://api.github.com/users/pasinskim/followers","following_url":"https://api.github.com/users/pasinskim/following{/other_user}","gists_url":"https://api.github.com/users/pasinskim/gists{/gist_id}","starred_url":"https://api.github.com/users/pasinskim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pasinskim/subscriptions","organizations_url":"https://api.github.com/users/pasinskim/orgs","repos_url":"https://api.github.com/users/pasinskim/repos","events_url":"https://api.github.com/users/pasinskim/events{/privacy}","received_events_url":"https://api.github.com/users/pasinskim/received_events","type":"User","site_admin":false},"repo":{"id":66545656,"name":"artifacts","full_name":"pasinskim/artifacts","owner":{"login":"pasinskim","id":6329055,"avatar_url":"https://avatars1.githubusercontent.com/u/6329055?v=4","gravatar_id":"","url":"https://api.github.com/users/pasinskim","html_url":"https://github.com/pasinskim","followers_url":"https://api.github.com/users/pasinskim/followers","following_url":"https://api.github.com/users/pasinskim/following{/other_user}","gists_url":"https://api.github.com/users/pasinskim/gists{/gist_id}","starred_url":"https://api.github.com/users/pasinskim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pasinskim/subscriptions","organizations_url":"https://api.github.com/users/pasinskim/orgs","repos_url":"https://api.github.com/users/pasinskim/repos","events_url":"https://api.github.com/users/pasinskim/events{/privacy}","received_events_url":"https://api.github.com/users/pasinskim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pasinskim/artifacts","description":null,"fork":true,"url":"https://api.github.com/repos/pasinskim/artifacts","forks_url":"https://api.github.com/repos/pasinskim/artifacts/forks","keys_url":"https://api.github.com/repos/pasinskim/artifacts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pasinskim/artifacts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pasinskim/artifacts/teams","hooks_url":"https://api.github.com/repos/pasinskim/artifacts/hooks","issue_events_url":"https://api.github.com/repos/pasinskim/artifacts/issues/events{/number}","events_url":"https://api.github.com/repos/pasinskim/artifacts/events","assignees_url":"https://api.github.com/repos/pasinskim/artifacts/assignees{/user}","branches_url":"https://api.github.com/repos/pasinskim/artifacts/branches{/branch}","tags_url":"https://api.github.com/repos/pasinskim/artifacts/tags","blobs_url":"https://api.github.com/repos/pasinskim/artifacts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pasinskim/artifacts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pasinskim/artifacts/git/refs{/sha}","trees_url":"https://api.github.com/repos/pasinskim/artifacts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pasinskim/artifacts/statuses/{sha}","languages_url":"https://api.github.com/repos/pasinskim/artifacts/languages","stargazers_url":"https://api.github.com/repos/pasinskim/artifacts/stargazers","contributors_url":"https://api.github.com/repos/pasinskim/artifacts/contributors","subscribers_url":"https://api.github.com/repos/pasinskim/artifacts/subscribers","subscription_url":"https://api.github.com/repos/pasinskim/artifacts/subscription","commits_url":"https://api.github.com/repos/pasinskim/artifacts/commits{/sha}","git_commits_url":"https://api.github.com/repos/pasinskim/artifacts/git/commits{/sha}","comments_url":"https://api.github.com/repos/pasinskim/artifacts/comments{/number}","issue_comment_url":"https://api.github.com/repos/pasinskim/artifacts/issues/comments{/number}","contents_url":"https://api.github.com/repos/pasinskim/artifacts/contents/{+path}","compare_url":"https://api.github.com/repos/pasinskim/artifacts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pasinskim/artifacts/merges","archive_url":"https://api.github.com/repos/pasinskim/artifacts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pasinskim/artifacts/downloads","issues_url":"https://api.github.com/repos/pasinskim/artifacts/issues{/number}","pulls_url":"https://api.github.com/repos/pasinskim/artifacts/pulls{/number}","milestones_url":"https://api.github.com/repos/pasinskim/artifacts/milestones{/number}","notifications_url":"https://api.github.com/repos/pasinskim/artifacts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pasinskim/artifacts/labels{/name}","releases_url":"https://api.github.com/repos/pasinskim/artifacts/releases{/id}","deployments_url":"https://api.github.com/repos/pasinskim/artifacts/deployments","created_at":"2016-08-25T09:42:20Z","updated_at":"2016-10-27T09:44:56Z","pushed_at":"2017-09-06T08:06:31Z","git_url":"git://github.com/pasinskim/artifacts.git","ssh_url":"git@github.com:pasinskim/artifacts.git","clone_url":"https://github.com/pasinskim/artifacts.git","svn_url":"https://github.com/pasinskim/artifacts","homepage":null,"size":460,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mendersoftware:master","ref":"master","sha":"290038733f67c5bb46f848012f81b378fd3b32e7","user":{"login":"mendersoftware","id":15040539,"avatar_url":"https://avatars1.githubusercontent.com/u/15040539?v=4","gravatar_id":"","url":"https://api.github.com/users/mendersoftware","html_url":"https://github.com/mendersoftware","followers_url":"https://api.github.com/users/mendersoftware/followers","following_url":"https://api.github.com/users/mendersoftware/following{/other_user}","gists_url":"https://api.github.com/users/mendersoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/mendersoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mendersoftware/subscriptions","organizations_url":"https://api.github.com/users/mendersoftware/orgs","repos_url":"https://api.github.com/users/mendersoftware/repos","events_url":"https://api.github.com/users/mendersoftware/events{/privacy}","received_events_url":"https://api.github.com/users/mendersoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":66545284,"name":"mender-artifact","full_name":"mendersoftware/mender-artifact","owner":{"login":"mendersoftware","id":15040539,"avatar_url":"https://avatars1.githubusercontent.com/u/15040539?v=4","gravatar_id":"","url":"https://api.github.com/users/mendersoftware","html_url":"https://github.com/mendersoftware","followers_url":"https://api.github.com/users/mendersoftware/followers","following_url":"https://api.github.com/users/mendersoftware/following{/other_user}","gists_url":"https://api.github.com/users/mendersoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/mendersoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mendersoftware/subscriptions","organizations_url":"https://api.github.com/users/mendersoftware/orgs","repos_url":"https://api.github.com/users/mendersoftware/repos","events_url":"https://api.github.com/users/mendersoftware/events{/privacy}","received_events_url":"https://api.github.com/users/mendersoftware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mendersoftware/mender-artifact","description":"Library for managing Mender artifact files","fork":false,"url":"https://api.github.com/repos/mendersoftware/mender-artifact","forks_url":"https://api.github.com/repos/mendersoftware/mender-artifact/forks","keys_url":"https://api.github.com/repos/mendersoftware/mender-artifact/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mendersoftware/mender-artifact/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mendersoftware/mender-artifact/teams","hooks_url":"https://api.github.com/repos/mendersoftware/mender-artifact/hooks","issue_events_url":"https://api.github.com/repos/mendersoftware/mender-artifact/issues/events{/number}","events_url":"https://api.github.com/repos/mendersoftware/mender-artifact/events","assignees_url":"https://api.github.com/repos/mendersoftware/mender-artifact/assignees{/user}","branches_url":"https://api.github.com/repos/mendersoftware/mender-artifact/branches{/branch}","tags_url":"https://api.github.com/repos/mendersoftware/mender-artifact/tags","blobs_url":"https://api.github.com/repos/mendersoftware/mender-artifact/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mendersoftware/mender-artifact/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mendersoftware/mender-artifact/git/refs{/sha}","trees_url":"https://api.github.com/repos/mendersoftware/mender-artifact/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mendersoftware/mender-artifact/statuses/{sha}","languages_url":"https://api.github.com/repos/mendersoftware/mender-artifact/languages","stargazers_url":"https://api.github.com/repos/mendersoftware/mender-artifact/stargazers","contributors_url":"https://api.github.com/repos/mendersoftware/mender-artifact/contributors","subscribers_url":"https://api.github.com/repos/mendersoftware/mender-artifact/subscribers","subscription_url":"https://api.github.com/repos/mendersoftware/mender-artifact/subscription","commits_url":"https://api.github.com/repos/mendersoftware/mender-artifact/commits{/sha}","git_commits_url":"https://api.github.com/repos/mendersoftware/mender-artifact/git/commits{/sha}","comments_url":"https://api.github.com/repos/mendersoftware/mender-artifact/comments{/number}","issue_comment_url":"https://api.github.com/repos/mendersoftware/mender-artifact/issues/comments{/number}","contents_url":"https://api.github.com/repos/mendersoftware/mender-artifact/contents/{+path}","compare_url":"https://api.github.com/repos/mendersoftware/mender-artifact/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mendersoftware/mender-artifact/merges","archive_url":"https://api.github.com/repos/mendersoftware/mender-artifact/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mendersoftware/mender-artifact/downloads","issues_url":"https://api.github.com/repos/mendersoftware/mender-artifact/issues{/number}","pulls_url":"https://api.github.com/repos/mendersoftware/mender-artifact/pulls{/number}","milestones_url":"https://api.github.com/repos/mendersoftware/mender-artifact/milestones{/number}","notifications_url":"https://api.github.com/repos/mendersoftware/mender-artifact/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mendersoftware/mender-artifact/labels{/name}","releases_url":"https://api.github.com/repos/mendersoftware/mender-artifact/releases{/id}","deployments_url":"https://api.github.com/repos/mendersoftware/mender-artifact/deployments","created_at":"2016-08-25T09:36:28Z","updated_at":"2017-07-02T15:48:40Z","pushed_at":"2017-09-01T10:07:51Z","git_url":"git://github.com/mendersoftware/mender-artifact.git","ssh_url":"git@github.com:mendersoftware/mender-artifact.git","clone_url":"https://github.com/mendersoftware/mender-artifact.git","svn_url":"https://github.com/mendersoftware/mender-artifact","homepage":"https://mender.io","size":474,"stargazers_count":8,"watchers_count":8,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":1,"forks":9,"open_issues":1,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mendersoftware/mender-artifact/pulls/95"},"html":{"href":"https://github.com/mendersoftware/mender-artifact/pull/95"},"issue":{"href":"https://api.github.com/repos/mendersoftware/mender-artifact/issues/95"},"comments":{"href":"https://api.github.com/repos/mendersoftware/mender-artifact/issues/95/comments"},"review_comments":{"href":"https://api.github.com/repos/mendersoftware/mender-artifact/pulls/95/comments"},"review_comment":{"href":"https://api.github.com/repos/mendersoftware/mender-artifact/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mendersoftware/mender-artifact/pulls/95/commits"},"statuses":{"href":"https://api.github.com/repos/mendersoftware/mender-artifact/statuses/2dc7624760473b3f50ebe72ee70b719f202d216f"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":28,"deletions":8,"changed_files":2}}
{"actor":{"display_login":"pasinskim"}}