{"action":"opened","issue":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/10320","repository_url":"https://api.github.com/repos/gitlabhq/gitlabhq","labels_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/10320/labels{/name}","comments_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/10320/comments","events_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/10320/events","html_url":"https://github.com/gitlabhq/gitlabhq/issues/10320","id":152736540,"number":10320,"title":"Creating wiki page triggers 500 error","user":{"login":"klizas","id":6648396,"avatar_url":"https://avatars.githubusercontent.com/u/6648396?v=3","gravatar_id":"","url":"https://api.github.com/users/klizas","html_url":"https://github.com/klizas","followers_url":"https://api.github.com/users/klizas/followers","following_url":"https://api.github.com/users/klizas/following{/other_user}","gists_url":"https://api.github.com/users/klizas/gists{/gist_id}","starred_url":"https://api.github.com/users/klizas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klizas/subscriptions","organizations_url":"https://api.github.com/users/klizas/orgs","repos_url":"https://api.github.com/users/klizas/repos","events_url":"https://api.github.com/users/klizas/events{/privacy}","received_events_url":"https://api.github.com/users/klizas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-03T09:47:05Z","updated_at":"2016-05-03T09:47:05Z","closed_at":null,"body":"I'm trying to create wiki page for repository, and I'm getting 500 error. Here is entry from production.log:\r\n\r\n Parameters: {\"utf8\"=>\"✓\", \"authenticity_token\"=>\"[FILTERED]\", \"wiki\"=>{\"title\"=>\"home\", \"format\"=>\"markdown\", \"content\"=>\"sdasd\", \"message\"=>\"\"}, \"namespace_id\"=>\"kemdu\", \"project_id\"=>\"fotomuziejus\"}\r\nCompleted 500 Internal Server Error in 102ms (ActiveRecord: 10.6ms)\r\n\r\nNoMethodError (undefined method `username' for #<Group:0x00000007a3a898>):\r\n  app/models/project_wiki.rb:158:in `default_message'\r\n  app/models/project_wiki.rb:152:in `commit_details'\r\n  app/models/project_wiki.rb:91:in `create_page'\r\n  app/models/wiki_page.rb:183:in `save'\r\n  app/models/wiki_page.rb:143:in `create'\r\n  app/services/wiki_pages/create_service.rb:6:in `execute'\r\n  app/controllers/projects/wikis_controller.rb:58:in `create'\r\n  lib/gitlab/middleware/go.rb:16:in `call'\r\n\r\n"}}