{"action":"created","issue":{"url":"https://api.github.com/repos/gogits/gogs/issues/1660","labels_url":"https://api.github.com/repos/gogits/gogs/issues/1660/labels{/name}","comments_url":"https://api.github.com/repos/gogits/gogs/issues/1660/comments","events_url":"https://api.github.com/repos/gogits/gogs/issues/1660/events","html_url":"https://github.com/gogits/gogs/issues/1660","id":107175469,"number":1660,"title":"401 error instead of 404","user":{"login":"xPaw","id":613331,"avatar_url":"https://avatars.githubusercontent.com/u/613331?v=3","gravatar_id":"","url":"https://api.github.com/users/xPaw","html_url":"https://github.com/xPaw","followers_url":"https://api.github.com/users/xPaw/followers","following_url":"https://api.github.com/users/xPaw/following{/other_user}","gists_url":"https://api.github.com/users/xPaw/gists{/gist_id}","starred_url":"https://api.github.com/users/xPaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xPaw/subscriptions","organizations_url":"https://api.github.com/users/xPaw/orgs","repos_url":"https://api.github.com/users/xPaw/repos","events_url":"https://api.github.com/users/xPaw/events{/privacy}","received_events_url":"https://api.github.com/users/xPaw/received_events","type":"User","site_admin":false},"labels":[{"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.7.0","labels_url":"https://api.github.com/repos/gogits/gogs/milestones/9/labels","id":1226114,"number":9,"title":"0.7.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":63,"closed_issues":63,"state":"open","created_at":"2015-07-26T11:28:23Z","updated_at":"2015-09-18T10:26:10Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-09-18T10:17:37Z","updated_at":"2015-09-18T10:46:38Z","closed_at":null,"body":"Visiting an url like `<user>/<repo>/badurl` will show an authentication window, and if you cancel it, it will render a `401 Unauthorized` message. I believe this error should be 404, and there shouldn't be basic-auth window anyway.\r\n\r\nThis https://github.com/gogits/gogs/blob/6a5c87afdd32286cb1e8f92d330960f5f8641967/routers/repo/http.go#L31 function should probably display gogs login page if user is not logged in?"},"comment":{"url":"https://api.github.com/repos/gogits/gogs/issues/comments/141416206","html_url":"https://github.com/gogits/gogs/issues/1660#issuecomment-141416206","issue_url":"https://api.github.com/repos/gogits/gogs/issues/1660","id":141416206,"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-09-18T10:46:38Z","updated_at":"2015-09-18T10:46:38Z","body":"> Perhaps it should just do basic auth for real urls that git calls?\r\n\r\nYes, I think we can make routing rules more specifically for real URLs, let me check carefully with Git documentation and give you feedback. :wink:"}}