{"action":"created","issue":{"url":"https://api.github.com/repos/gogits/gogs/issues/784","labels_url":"https://api.github.com/repos/gogits/gogs/issues/784/labels{/name}","comments_url":"https://api.github.com/repos/gogits/gogs/issues/784/comments","events_url":"https://api.github.com/repos/gogits/gogs/issues/784/events","html_url":"https://github.com/gogits/gogs/issues/784","id":52940617,"number":784,"title":"renaming repositories breaks access permissions","user":{"login":"nicolai86","id":111324,"avatar_url":"https://avatars.githubusercontent.com/u/111324?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolai86","html_url":"https://github.com/nicolai86","followers_url":"https://api.github.com/users/nicolai86/followers","following_url":"https://api.github.com/users/nicolai86/following{/other_user}","gists_url":"https://api.github.com/users/nicolai86/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolai86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolai86/subscriptions","organizations_url":"https://api.github.com/users/nicolai86/orgs","repos_url":"https://api.github.com/users/nicolai86/repos","events_url":"https://api.github.com/users/nicolai86/events{/privacy}","received_events_url":"https://api.github.com/users/nicolai86/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-12-26T22:03:49Z","updated_at":"2015-01-02T04:41:55Z","closed_at":null,"body":"**Bug Description**: \r\n\r\nrenaming repository inserts wrong permissions into access table. This manifests in the renamed repo not being listed in the org overview, because the permission check fails.\r\n\r\n**Gogs Version**:\r\n\r\n0.5.9.1213 Beta\r\n\r\n**Git Version**:\r\n\r\ngit version 2.1.0\r\n\r\n**System Type**:\r\n\r\nUbuntu 14.10 \r\n\r\n**Error Log**:\r\n\r\nNone, determine by hand\r\n\r\n**Other information**:\r\n\r\nGiven an Org named \"FooBar\", renaming a repository inserts an access of \"FooBar/baz\", where it should be \"foobar/baz\", as can be infered from just creating the repository with the correct name in the first place.\r\n\r\nChanging the access table to contain \"foobar/baz\" resolves the issue.\r\n"},"comment":{"url":"https://api.github.com/repos/gogits/gogs/issues/comments/68508638","html_url":"https://github.com/gogits/gogs/issues/784#issuecomment-68508638","issue_url":"https://api.github.com/repos/gogits/gogs/issues/784","id":68508638,"user":{"login":"Unknwon","id":2946214,"avatar_url":"https://avatars.githubusercontent.com/u/2946214?v=3","gravatar_id":"","url":"https://api.github.com/users/Unknwon","html_url":"https://github.com/Unknwon","followers_url":"https://api.github.com/users/Unknwon/followers","following_url":"https://api.github.com/users/Unknwon/following{/other_user}","gists_url":"https://api.github.com/users/Unknwon/gists{/gist_id}","starred_url":"https://api.github.com/users/Unknwon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Unknwon/subscriptions","organizations_url":"https://api.github.com/users/Unknwon/orgs","repos_url":"https://api.github.com/users/Unknwon/repos","events_url":"https://api.github.com/users/Unknwon/events{/privacy}","received_events_url":"https://api.github.com/users/Unknwon/received_events","type":"User","site_admin":false},"created_at":"2015-01-02T04:41:55Z","updated_at":"2015-01-02T04:41:55Z","body":"Thanks your report!\r\n\r\nLooks like Gogs didn't convert org name to lower cases."}}