Skip to content

Importing project by user with developer rights results in 404

Summary

This issue is pretty much identical to #42619 (closed) but the root cause of the problem is not tied to templates

When a developer in a group create a project using import (import source does not matter), the project will be created successfully but the screen will show 404 page for developer.

Steps to reproduce

(How one can reproduce the issue - this is very important)

  1. Create a groupA
  2. Add userA to the group with developer permission
  3. Ensure groupA has permissions to create project for "Developers + Maintainers"
  4. Login as userA
  5. Import project to groupA from any source
  6. Observe 404 page
  7. Go to the groupA and see the project was created successfully from the template

What is the current bug behavior?

Project creation is successful but the 404 page is shown

What is the expected correct behavior?

Project is created and load the project page

Reason

We allow user to view import status if user has permissions to admin current project. I believe the correct permission is that if user could create project in project namespace - he/she can see import status