hansjorg / rust-ci

Django webapp for www.rust-ci.org
Apache License 2.0
17 stars 8 forks source link

Unhelpful HTTP 404 on adding a project in the private organization #4

Closed lifthrasiir closed 10 years ago

lifthrasiir commented 10 years ago

If the organization owner didn't publicize his/her membership in the organization, adding a repository from that organization returns HTTP 404 without a proper error message. It is because the authentication failure uses the show_project function which requires a project to exist while there is no project available. This bug confused me a lot until I realized I forgot to publicize the membership (and the Github /user/orgs API is unlikely to return such private organizations). :S