{"action":"created","issue":{"url":"https://api.github.com/repos/gogits/gogs/issues/2569","repository_url":"https://api.github.com/repos/gogits/gogs","labels_url":"https://api.github.com/repos/gogits/gogs/issues/2569/labels{/name}","comments_url":"https://api.github.com/repos/gogits/gogs/issues/2569/comments","events_url":"https://api.github.com/repos/gogits/gogs/issues/2569/events","html_url":"https://github.com/gogits/gogs/issues/2569","id":131876437,"number":2569,"title":"500 error for PR creation after repo transfer to a team","user":{"login":"absolutelyNoWarranty","id":1489338,"avatar_url":"https://avatars.githubusercontent.com/u/1489338?v=3","gravatar_id":"","url":"https://api.github.com/users/absolutelyNoWarranty","html_url":"https://github.com/absolutelyNoWarranty","followers_url":"https://api.github.com/users/absolutelyNoWarranty/followers","following_url":"https://api.github.com/users/absolutelyNoWarranty/following{/other_user}","gists_url":"https://api.github.com/users/absolutelyNoWarranty/gists{/gist_id}","starred_url":"https://api.github.com/users/absolutelyNoWarranty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/absolutelyNoWarranty/subscriptions","organizations_url":"https://api.github.com/users/absolutelyNoWarranty/orgs","repos_url":"https://api.github.com/users/absolutelyNoWarranty/repos","events_url":"https://api.github.com/users/absolutelyNoWarranty/events{/privacy}","received_events_url":"https://api.github.com/users/absolutelyNoWarranty/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gogits/gogs/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/gogits/gogs/labels/feedback%20needed","name":"feedback needed","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/gogits/gogs/milestones/9","html_url":"https://github.com/gogits/gogs/milestones/0.9.0","labels_url":"https://api.github.com/repos/gogits/gogs/milestones/9/labels","id":1226114,"number":9,"title":"0.9.0","description":"","creator":{"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},"open_issues":40,"closed_issues":164,"state":"open","created_at":"2015-07-26T11:28:23Z","updated_at":"2016-02-09T17:40:53Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2016-02-06T17:07:15Z","updated_at":"2016-02-10T04:52:26Z","closed_at":null,"body":"The issue in the title was found on https://try.gogs.io while investigating a 500 error on a locally-hosted gogs server.\r\n\r\nThe local issue I have is similar to #1711 : I sent a PR to a team-owned repo. When a team member tried to merge, the result was a 500 page.\r\n\r\nI went to try.gogs.io to see if I could replicate the local issue; I could not. However I found the issue stated in the title.\r\n\r\nTo reproduce on try.gogs.io:\r\n1. Create two users A and B. Create a team TeamAB with A and B.\r\n2. Make A create a repo and transfer repo to TeamAB.\r\n3. Make B fork repo.\r\n4. Make B try to open PR. **=> 500**\r\n\r\nNotes:\r\n* This only happens with team repos. If A transfers to C which B then forks from, B can still open PR's and have them accepted.\r\n* This doesn't happen if you start by creating the repo with TeamAB as the owner.\r\n\r\nBut actually it gets weirder:\r\n5. Make A fork TeamAB's repo.\r\n6. Make A open PR **=> PR page will be generated but Gogs will say there are conflicts.**\r\n7. Make B try to open **=> PR page will be generated but Gogs will say there are conflicts.**"},"comment":{"url":"https://api.github.com/repos/gogits/gogs/issues/comments/182198397","html_url":"https://github.com/gogits/gogs/issues/2569#issuecomment-182198397","issue_url":"https://api.github.com/repos/gogits/gogs/issues/2569","id":182198397,"user":{"login":"misugijunz","id":517308,"avatar_url":"https://avatars.githubusercontent.com/u/517308?v=3","gravatar_id":"","url":"https://api.github.com/users/misugijunz","html_url":"https://github.com/misugijunz","followers_url":"https://api.github.com/users/misugijunz/followers","following_url":"https://api.github.com/users/misugijunz/following{/other_user}","gists_url":"https://api.github.com/users/misugijunz/gists{/gist_id}","starred_url":"https://api.github.com/users/misugijunz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misugijunz/subscriptions","organizations_url":"https://api.github.com/users/misugijunz/orgs","repos_url":"https://api.github.com/users/misugijunz/repos","events_url":"https://api.github.com/users/misugijunz/events{/privacy}","received_events_url":"https://api.github.com/users/misugijunz/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T04:52:26Z","updated_at":"2016-02-10T04:52:26Z","body":"Chinese (Lunar) New Year. can't do PR means blocked by 500 (internal server error), I'll have my friend posted the error message, etc."}}