Skip to content

Sub groups 404 when searched for archived projects

Summary

When on the "Overview > Details" page of a sub-group, selecting "Show archived projects" from the "Last created" drop down results in a 404. This issue does not manifest itself if the user first types something into "Filter by name..." and presses enter.

Steps to reproduce

  1. Create a test group
  2. Create a test sub group
  3. Visit the "Overview > Details" page for the test sub group (this is the main page that lists the projects)
  4. Click the "Last created" drop down and select "Show archived projects"
  5. This will bring the user to a 404 page

Example Project

The issue manifests itself in my test group. Selecting "Show archived projects" brings me to this 404.

What is the current bug behavior?

Trying to list archived projects results in a 404.

What is the expected correct behavior?

The same behavior that happens if I first filter the projects by a name, then click "Show archived projects". This redirects to the correct filtered results.

Relevant logs and/or screenshots

image

image

Output of checks

This bug happens on GitLab.com.

Possible fixes

It looks like the actual HTML link for "Show archived projects" has the incorrect URL.

image

There is a JavaScript handler that intercepts clicking on that element.

That code appears to load via a minified groups bundle. I can't provide an exact fix, but it looks like the groups minifed JavaScript file is not being loaded until the first search is executed. Loading that groups file by default on the Overview might fix it.

Edited by Benjamin Heiskell