{"action":"opened","number":3323,"pull_request":{"url":"https://api.github.com/repos/DIRACGrid/DIRAC/pulls/3323","id":117801051,"html_url":"https://github.com/DIRACGrid/DIRAC/pull/3323","diff_url":"https://github.com/DIRACGrid/DIRAC/pull/3323.diff","patch_url":"https://github.com/DIRACGrid/DIRAC/pull/3323.patch","issue_url":"https://api.github.com/repos/DIRACGrid/DIRAC/issues/3323","number":3323,"state":"open","locked":false,"title":"Fixing checksum to be 8 char long in Core/Utilities/Adler.py","user":{"login":"vbpnl","id":20481081,"avatar_url":"https://avatars1.githubusercontent.com/u/20481081?v=3","gravatar_id":"","url":"https://api.github.com/users/vbpnl","html_url":"https://github.com/vbpnl","followers_url":"https://api.github.com/users/vbpnl/followers","following_url":"https://api.github.com/users/vbpnl/following{/other_user}","gists_url":"https://api.github.com/users/vbpnl/gists{/gist_id}","starred_url":"https://api.github.com/users/vbpnl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbpnl/subscriptions","organizations_url":"https://api.github.com/users/vbpnl/orgs","repos_url":"https://api.github.com/users/vbpnl/repos","events_url":"https://api.github.com/users/vbpnl/events{/privacy}","received_events_url":"https://api.github.com/users/vbpnl/received_events","type":"User","site_admin":false},"body":"Sometimes a file can have a checksum with less than 6 char\r\ne.g.\r\nintAdler = 198772\r\nhex( intAdler & 0xffffffff ).lower()\r\n'0x30874'\r\n\r\nNotice only 5 char after 0x\r\n\r\nNow current code gives\r\n\r\nhex( intAdler & 0xffffffff ).lower().replace( 'l', '' ).replace( 'x', '0' )[-8:]\r\n\r\n0030874\r\n\r\ni.e. 7 char instead of 8 char\r\n\r\nThis line gives desired 8 char long string by pre pending extra 0\r\n \r\nhex( intAdler & 0xffffffff ).lower().replace( 'l', '' ).replace( 'x', '0000' )[-8:]\r\n'00030874'\r\n\r\n8 char is important because gfal-sum returns 8 char long string in this case.\r\n\r\n","created_at":"2017-04-26T20:20:29Z","updated_at":"2017-04-26T20:20:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/DIRACGrid/DIRAC/pulls/3323/commits","review_comments_url":"https://api.github.com/repos/DIRACGrid/DIRAC/pulls/3323/comments","review_comment_url":"https://api.github.com/repos/DIRACGrid/DIRAC/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DIRACGrid/DIRAC/issues/3323/comments","statuses_url":"https://api.github.com/repos/DIRACGrid/DIRAC/statuses/9bb8f010368eb9e3981ee73d7b899ea3f2cd0aa6","head":{"label":"vbpnl:integration","ref":"integration","sha":"9bb8f010368eb9e3981ee73d7b899ea3f2cd0aa6","user":{"login":"vbpnl","id":20481081,"avatar_url":"https://avatars1.githubusercontent.com/u/20481081?v=3","gravatar_id":"","url":"https://api.github.com/users/vbpnl","html_url":"https://github.com/vbpnl","followers_url":"https://api.github.com/users/vbpnl/followers","following_url":"https://api.github.com/users/vbpnl/following{/other_user}","gists_url":"https://api.github.com/users/vbpnl/gists{/gist_id}","starred_url":"https://api.github.com/users/vbpnl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbpnl/subscriptions","organizations_url":"https://api.github.com/users/vbpnl/orgs","repos_url":"https://api.github.com/users/vbpnl/repos","events_url":"https://api.github.com/users/vbpnl/events{/privacy}","received_events_url":"https://api.github.com/users/vbpnl/received_events","type":"User","site_admin":false},"repo":{"id":89515164,"name":"DIRAC","full_name":"vbpnl/DIRAC","owner":{"login":"vbpnl","id":20481081,"avatar_url":"https://avatars1.githubusercontent.com/u/20481081?v=3","gravatar_id":"","url":"https://api.github.com/users/vbpnl","html_url":"https://github.com/vbpnl","followers_url":"https://api.github.com/users/vbpnl/followers","following_url":"https://api.github.com/users/vbpnl/following{/other_user}","gists_url":"https://api.github.com/users/vbpnl/gists{/gist_id}","starred_url":"https://api.github.com/users/vbpnl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbpnl/subscriptions","organizations_url":"https://api.github.com/users/vbpnl/orgs","repos_url":"https://api.github.com/users/vbpnl/repos","events_url":"https://api.github.com/users/vbpnl/events{/privacy}","received_events_url":"https://api.github.com/users/vbpnl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vbpnl/DIRAC","description":"DIRAC Grid","fork":true,"url":"https://api.github.com/repos/vbpnl/DIRAC","forks_url":"https://api.github.com/repos/vbpnl/DIRAC/forks","keys_url":"https://api.github.com/repos/vbpnl/DIRAC/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vbpnl/DIRAC/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vbpnl/DIRAC/teams","hooks_url":"https://api.github.com/repos/vbpnl/DIRAC/hooks","issue_events_url":"https://api.github.com/repos/vbpnl/DIRAC/issues/events{/number}","events_url":"https://api.github.com/repos/vbpnl/DIRAC/events","assignees_url":"https://api.github.com/repos/vbpnl/DIRAC/assignees{/user}","branches_url":"https://api.github.com/repos/vbpnl/DIRAC/branches{/branch}","tags_url":"https://api.github.com/repos/vbpnl/DIRAC/tags","blobs_url":"https://api.github.com/repos/vbpnl/DIRAC/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vbpnl/DIRAC/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vbpnl/DIRAC/git/refs{/sha}","trees_url":"https://api.github.com/repos/vbpnl/DIRAC/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vbpnl/DIRAC/statuses/{sha}","languages_url":"https://api.github.com/repos/vbpnl/DIRAC/languages","stargazers_url":"https://api.github.com/repos/vbpnl/DIRAC/stargazers","contributors_url":"https://api.github.com/repos/vbpnl/DIRAC/contributors","subscribers_url":"https://api.github.com/repos/vbpnl/DIRAC/subscribers","subscription_url":"https://api.github.com/repos/vbpnl/DIRAC/subscription","commits_url":"https://api.github.com/repos/vbpnl/DIRAC/commits{/sha}","git_commits_url":"https://api.github.com/repos/vbpnl/DIRAC/git/commits{/sha}","comments_url":"https://api.github.com/repos/vbpnl/DIRAC/comments{/number}","issue_comment_url":"https://api.github.com/repos/vbpnl/DIRAC/issues/comments{/number}","contents_url":"https://api.github.com/repos/vbpnl/DIRAC/contents/{+path}","compare_url":"https://api.github.com/repos/vbpnl/DIRAC/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vbpnl/DIRAC/merges","archive_url":"https://api.github.com/repos/vbpnl/DIRAC/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vbpnl/DIRAC/downloads","issues_url":"https://api.github.com/repos/vbpnl/DIRAC/issues{/number}","pulls_url":"https://api.github.com/repos/vbpnl/DIRAC/pulls{/number}","milestones_url":"https://api.github.com/repos/vbpnl/DIRAC/milestones{/number}","notifications_url":"https://api.github.com/repos/vbpnl/DIRAC/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vbpnl/DIRAC/labels{/name}","releases_url":"https://api.github.com/repos/vbpnl/DIRAC/releases{/id}","deployments_url":"https://api.github.com/repos/vbpnl/DIRAC/deployments","created_at":"2017-04-26T18:44:52Z","updated_at":"2017-04-26T18:44:58Z","pushed_at":"2017-04-26T20:11:47Z","git_url":"git://github.com/vbpnl/DIRAC.git","ssh_url":"git@github.com:vbpnl/DIRAC.git","clone_url":"https://github.com/vbpnl/DIRAC.git","svn_url":"https://github.com/vbpnl/DIRAC","homepage":"http://diracgrid.org","size":44696,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"integration"}},"base":{"label":"DIRACGrid:integration","ref":"integration","sha":"efb57b11cc86fde6c42044a50cb48fbf9c7ad671","user":{"login":"DIRACGrid","id":694842,"avatar_url":"https://avatars3.githubusercontent.com/u/694842?v=3","gravatar_id":"","url":"https://api.github.com/users/DIRACGrid","html_url":"https://github.com/DIRACGrid","followers_url":"https://api.github.com/users/DIRACGrid/followers","following_url":"https://api.github.com/users/DIRACGrid/following{/other_user}","gists_url":"https://api.github.com/users/DIRACGrid/gists{/gist_id}","starred_url":"https://api.github.com/users/DIRACGrid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DIRACGrid/subscriptions","organizations_url":"https://api.github.com/users/DIRACGrid/orgs","repos_url":"https://api.github.com/users/DIRACGrid/repos","events_url":"https://api.github.com/users/DIRACGrid/events{/privacy}","received_events_url":"https://api.github.com/users/DIRACGrid/received_events","type":"Organization","site_admin":false},"repo":{"id":1576831,"name":"DIRAC","full_name":"DIRACGrid/DIRAC","owner":{"login":"DIRACGrid","id":694842,"avatar_url":"https://avatars3.githubusercontent.com/u/694842?v=3","gravatar_id":"","url":"https://api.github.com/users/DIRACGrid","html_url":"https://github.com/DIRACGrid","followers_url":"https://api.github.com/users/DIRACGrid/followers","following_url":"https://api.github.com/users/DIRACGrid/following{/other_user}","gists_url":"https://api.github.com/users/DIRACGrid/gists{/gist_id}","starred_url":"https://api.github.com/users/DIRACGrid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DIRACGrid/subscriptions","organizations_url":"https://api.github.com/users/DIRACGrid/orgs","repos_url":"https://api.github.com/users/DIRACGrid/repos","events_url":"https://api.github.com/users/DIRACGrid/events{/privacy}","received_events_url":"https://api.github.com/users/DIRACGrid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DIRACGrid/DIRAC","description":"DIRAC Grid","fork":false,"url":"https://api.github.com/repos/DIRACGrid/DIRAC","forks_url":"https://api.github.com/repos/DIRACGrid/DIRAC/forks","keys_url":"https://api.github.com/repos/DIRACGrid/DIRAC/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DIRACGrid/DIRAC/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DIRACGrid/DIRAC/teams","hooks_url":"https://api.github.com/repos/DIRACGrid/DIRAC/hooks","issue_events_url":"https://api.github.com/repos/DIRACGrid/DIRAC/issues/events{/number}","events_url":"https://api.github.com/repos/DIRACGrid/DIRAC/events","assignees_url":"https://api.github.com/repos/DIRACGrid/DIRAC/assignees{/user}","branches_url":"https://api.github.com/repos/DIRACGrid/DIRAC/branches{/branch}","tags_url":"https://api.github.com/repos/DIRACGrid/DIRAC/tags","blobs_url":"https://api.github.com/repos/DIRACGrid/DIRAC/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DIRACGrid/DIRAC/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DIRACGrid/DIRAC/git/refs{/sha}","trees_url":"https://api.github.com/repos/DIRACGrid/DIRAC/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DIRACGrid/DIRAC/statuses/{sha}","languages_url":"https://api.github.com/repos/DIRACGrid/DIRAC/languages","stargazers_url":"https://api.github.com/repos/DIRACGrid/DIRAC/stargazers","contributors_url":"https://api.github.com/repos/DIRACGrid/DIRAC/contributors","subscribers_url":"https://api.github.com/repos/DIRACGrid/DIRAC/subscribers","subscription_url":"https://api.github.com/repos/DIRACGrid/DIRAC/subscription","commits_url":"https://api.github.com/repos/DIRACGrid/DIRAC/commits{/sha}","git_commits_url":"https://api.github.com/repos/DIRACGrid/DIRAC/git/commits{/sha}","comments_url":"https://api.github.com/repos/DIRACGrid/DIRAC/comments{/number}","issue_comment_url":"https://api.github.com/repos/DIRACGrid/DIRAC/issues/comments{/number}","contents_url":"https://api.github.com/repos/DIRACGrid/DIRAC/contents/{+path}","compare_url":"https://api.github.com/repos/DIRACGrid/DIRAC/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DIRACGrid/DIRAC/merges","archive_url":"https://api.github.com/repos/DIRACGrid/DIRAC/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DIRACGrid/DIRAC/downloads","issues_url":"https://api.github.com/repos/DIRACGrid/DIRAC/issues{/number}","pulls_url":"https://api.github.com/repos/DIRACGrid/DIRAC/pulls{/number}","milestones_url":"https://api.github.com/repos/DIRACGrid/DIRAC/milestones{/number}","notifications_url":"https://api.github.com/repos/DIRACGrid/DIRAC/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DIRACGrid/DIRAC/labels{/name}","releases_url":"https://api.github.com/repos/DIRACGrid/DIRAC/releases{/id}","deployments_url":"https://api.github.com/repos/DIRACGrid/DIRAC/deployments","created_at":"2011-04-06T11:47:53Z","updated_at":"2017-04-23T10:42:49Z","pushed_at":"2017-04-26T13:49:54Z","git_url":"git://github.com/DIRACGrid/DIRAC.git","ssh_url":"git@github.com:DIRACGrid/DIRAC.git","clone_url":"https://github.com/DIRACGrid/DIRAC.git","svn_url":"https://github.com/DIRACGrid/DIRAC","homepage":"http://diracgrid.org","size":44696,"stargazers_count":56,"watchers_count":56,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":101,"mirror_url":null,"open_issues_count":109,"forks":101,"open_issues":109,"watchers":56,"default_branch":"integration"}},"_links":{"self":{"href":"https://api.github.com/repos/DIRACGrid/DIRAC/pulls/3323"},"html":{"href":"https://github.com/DIRACGrid/DIRAC/pull/3323"},"issue":{"href":"https://api.github.com/repos/DIRACGrid/DIRAC/issues/3323"},"comments":{"href":"https://api.github.com/repos/DIRACGrid/DIRAC/issues/3323/comments"},"review_comments":{"href":"https://api.github.com/repos/DIRACGrid/DIRAC/pulls/3323/comments"},"review_comment":{"href":"https://api.github.com/repos/DIRACGrid/DIRAC/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DIRACGrid/DIRAC/pulls/3323/commits"},"statuses":{"href":"https://api.github.com/repos/DIRACGrid/DIRAC/statuses/9bb8f010368eb9e3981ee73d7b899ea3f2cd0aa6"}},"merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":1,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"vbpnl"}}