{"action":"created","issue":{"url":"https://api.github.com/repos/theupdateframework/tuf/issues/244","labels_url":"https://api.github.com/repos/theupdateframework/tuf/issues/244/labels{/name}","comments_url":"https://api.github.com/repos/theupdateframework/tuf/issues/244/comments","events_url":"https://api.github.com/repos/theupdateframework/tuf/issues/244/events","html_url":"https://github.com/theupdateframework/tuf/issues/244","id":39335604,"number":244,"title":"Consistent snapshot prepends hash algorithm instead of value to target filename","user":{"login":"dachshund","id":339997,"avatar_url":"https://avatars.githubusercontent.com/u/339997?v=3","gravatar_id":"","url":"https://api.github.com/users/dachshund","html_url":"https://github.com/dachshund","followers_url":"https://api.github.com/users/dachshund/followers","following_url":"https://api.github.com/users/dachshund/following{/other_user}","gists_url":"https://api.github.com/users/dachshund/gists{/gist_id}","starred_url":"https://api.github.com/users/dachshund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dachshund/subscriptions","organizations_url":"https://api.github.com/users/dachshund/orgs","repos_url":"https://api.github.com/users/dachshund/repos","events_url":"https://api.github.com/users/dachshund/events{/privacy}","received_events_url":"https://api.github.com/users/dachshund/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/theupdateframework/tuf/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/theupdateframework/tuf/labels/newbie","name":"newbie","color":"fbca04"},{"url":"https://api.github.com/repos/theupdateframework/tuf/labels/repository-tools","name":"repository-tools","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-08-01T23:21:36Z","updated_at":"2015-12-07T20:45:03Z","closed_at":"2014-08-11T16:25:56Z","body":"### Observed\r\n\r\nPresently, if the user writes a repository with consistent snapshots, then the repository tool hard links the target ```filename``` to the alias ```sha256.filename```.\r\n\r\nI think this is because [the code iterates over the keys](https://github.com/theupdateframework/tuf/blob/d25aa1edd2fe787ec1fd9b2666d34fc147aa0118/tuf/repository_lib.py#L1505-L1507) (i.e. hash algorithms such as ```sha256```) instead of the values (i.e. hash values) of the dictionary of hashes.\r\n\r\n### Expected\r\n\r\nThe repository tool should replace the hash algorithm with its value instead.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/theupdateframework/tuf/issues/comments/162656454","html_url":"https://github.com/theupdateframework/tuf/issues/244#issuecomment-162656454","issue_url":"https://api.github.com/repos/theupdateframework/tuf/issues/244","id":162656454,"user":{"login":"davedoesdev","id":2329683,"avatar_url":"https://avatars.githubusercontent.com/u/2329683?v=3","gravatar_id":"","url":"https://api.github.com/users/davedoesdev","html_url":"https://github.com/davedoesdev","followers_url":"https://api.github.com/users/davedoesdev/followers","following_url":"https://api.github.com/users/davedoesdev/following{/other_user}","gists_url":"https://api.github.com/users/davedoesdev/gists{/gist_id}","starred_url":"https://api.github.com/users/davedoesdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davedoesdev/subscriptions","organizations_url":"https://api.github.com/users/davedoesdev/orgs","repos_url":"https://api.github.com/users/davedoesdev/repos","events_url":"https://api.github.com/users/davedoesdev/events{/privacy}","received_events_url":"https://api.github.com/users/davedoesdev/received_events","type":"User","site_admin":false},"created_at":"2015-12-07T20:45:03Z","updated_at":"2015-12-07T20:45:03Z","body":"Is there any chance of a new release on PyPI please?\r\nI'm coming up against this issue."}}