Skip to content

Link in main navigation leads to 404 when direct transfer is disabled

Summary

A link to /import/bulk_imports/history is displayed in the work nav bar even if the instance setting Allow migrating GitLab groups and projects by direct transfer is disabled, leading to a 404 page.

Steps to reproduce

  1. On a dedicated instance, go to Settings > General > Import and export settings and uncheck Allow migrating GitLab groups and projects by direct transfer
  2. Visit /dashboard/activity
    • You should still see a link to "Import history"
  3. Click on "Import history"
    • You should get a 404

What is the current bug behavior?

The link is displayed, but the feature is not.

What is the expected correct behavior?

It should be consistent. Either the feature is enabled, therefore the link would be displayed, or it is not and the link to it is hidden (or at least deactivated).

Relevant logs and/or screenshots

image

image

image

Edited by Yann Weyer