{"action":"closed","issue":{"url":"https://api.github.com/repos/ansible/galaxy/issues/1420","repository_url":"https://api.github.com/repos/ansible/galaxy","labels_url":"https://api.github.com/repos/ansible/galaxy/issues/1420/labels{/name}","comments_url":"https://api.github.com/repos/ansible/galaxy/issues/1420/comments","events_url":"https://api.github.com/repos/ansible/galaxy/issues/1420/events","html_url":"https://github.com/ansible/galaxy/issues/1420","id":390948632,"node_id":"MDU6SXNzdWUzOTA5NDg2MzI=","number":1420,"title":"Repository names are not sanitized by removerole API endpoint","user":{"login":"ironfroggy","id":34982,"node_id":"MDQ6VXNlcjM0OTgy","avatar_url":"https://avatars3.githubusercontent.com/u/34982?v=4","gravatar_id":"","url":"https://api.github.com/users/ironfroggy","html_url":"https://github.com/ironfroggy","followers_url":"https://api.github.com/users/ironfroggy/followers","following_url":"https://api.github.com/users/ironfroggy/following{/other_user}","gists_url":"https://api.github.com/users/ironfroggy/gists{/gist_id}","starred_url":"https://api.github.com/users/ironfroggy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ironfroggy/subscriptions","organizations_url":"https://api.github.com/users/ironfroggy/orgs","repos_url":"https://api.github.com/users/ironfroggy/repos","events_url":"https://api.github.com/users/ironfroggy/events{/privacy}","received_events_url":"https://api.github.com/users/ironfroggy/received_events","type":"User","site_admin":false},"labels":[{"id":864653281,"node_id":"MDU6TGFiZWw4NjQ2NTMyODE=","url":"https://api.github.com/repos/ansible/galaxy/labels/area/backend","name":"area/backend","color":"aecaf2","default":false},{"id":864642802,"node_id":"MDU6TGFiZWw4NjQ2NDI4MDI=","url":"https://api.github.com/repos/ansible/galaxy/labels/status/fix-released","name":"status/fix-released","color":"27aa43","default":false},{"id":131577662,"node_id":"MDU6TGFiZWwxMzE1Nzc2NjI=","url":"https://api.github.com/repos/ansible/galaxy/labels/type/bug","name":"type/bug","color":"e99695","default":false}],"state":"closed","locked":false,"assignee":{"login":"cutwater","id":62445,"node_id":"MDQ6VXNlcjYyNDQ1","avatar_url":"https://avatars0.githubusercontent.com/u/62445?v=4","gravatar_id":"","url":"https://api.github.com/users/cutwater","html_url":"https://github.com/cutwater","followers_url":"https://api.github.com/users/cutwater/followers","following_url":"https://api.github.com/users/cutwater/following{/other_user}","gists_url":"https://api.github.com/users/cutwater/gists{/gist_id}","starred_url":"https://api.github.com/users/cutwater/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cutwater/subscriptions","organizations_url":"https://api.github.com/users/cutwater/orgs","repos_url":"https://api.github.com/users/cutwater/repos","events_url":"https://api.github.com/users/cutwater/events{/privacy}","received_events_url":"https://api.github.com/users/cutwater/received_events","type":"User","site_admin":false},"assignees":[{"login":"cutwater","id":62445,"node_id":"MDQ6VXNlcjYyNDQ1","avatar_url":"https://avatars0.githubusercontent.com/u/62445?v=4","gravatar_id":"","url":"https://api.github.com/users/cutwater","html_url":"https://github.com/cutwater","followers_url":"https://api.github.com/users/cutwater/followers","following_url":"https://api.github.com/users/cutwater/following{/other_user}","gists_url":"https://api.github.com/users/cutwater/gists{/gist_id}","starred_url":"https://api.github.com/users/cutwater/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cutwater/subscriptions","organizations_url":"https://api.github.com/users/cutwater/orgs","repos_url":"https://api.github.com/users/cutwater/repos","events_url":"https://api.github.com/users/cutwater/events{/privacy}","received_events_url":"https://api.github.com/users/cutwater/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/ansible/galaxy/milestones/17","html_url":"https://github.com/ansible/galaxy/milestone/17","labels_url":"https://api.github.com/repos/ansible/galaxy/milestones/17/labels","id":3826782,"node_id":"MDk6TWlsZXN0b25lMzgyNjc4Mg==","number":17,"title":"3.1.X","description":"3.1 Bug fixes","creator":{"login":"cutwater","id":62445,"node_id":"MDQ6VXNlcjYyNDQ1","avatar_url":"https://avatars0.githubusercontent.com/u/62445?v=4","gravatar_id":"","url":"https://api.github.com/users/cutwater","html_url":"https://github.com/cutwater","followers_url":"https://api.github.com/users/cutwater/followers","following_url":"https://api.github.com/users/cutwater/following{/other_user}","gists_url":"https://api.github.com/users/cutwater/gists{/gist_id}","starred_url":"https://api.github.com/users/cutwater/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cutwater/subscriptions","organizations_url":"https://api.github.com/users/cutwater/orgs","repos_url":"https://api.github.com/users/cutwater/repos","events_url":"https://api.github.com/users/cutwater/events{/privacy}","received_events_url":"https://api.github.com/users/cutwater/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":14,"state":"open","created_at":"2018-11-16T13:25:14Z","updated_at":"2018-12-18T11:56:55Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-12-14T03:12:25Z","updated_at":"2018-12-18T11:56:54Z","closed_at":"2018-12-18T11:56:54Z","author_association":"NONE","body":"## Bug Report \r\n\r\n##### SUMMARY\r\nImporting sanitizes the repository name, which includes replacing dashes `-` with underscores `_`, but this sanitizing is not done when deleting a repository via the CLI/API. Consequently, after a successful import a subsequent attempt to delete with exactly the same parameters will fail_only if the repository name needs to be sanitized.\r\n\r\n##### STEPS TO REPRODUCE\r\n- Create a repository on Github with a name containing uppercase letters, dashes, or periods.\r\n- Import this repository, even if it does not contain any importable content.\r\n- Attempt to delete the repository and its imported content, if any, from Galaxy.\r\n\r\n\r\n##### EXPECTED RESULTS\r\nAny imported content from the repository is removed and the repository itself is removed from your account.\r\n\r\n##### ACTUAL RESULTS\r\nThe repository and any content from it is not found, because its real name does not match the name it was imported under and the delete path does not sanitize the input name.\r\n\r\n`Role ironfroggy.django-better-cache not found. Maybe it was deleted previously?`"}}
{"actor":{"display_login":"cutwater"}}