Entering whitespace into search?search= causes the 0-result error to not appear when 0 results are returned.

Summary

When searching for whitespace, the 0-result error message does not appear: 1

image

However, when searching for non-whitespace, it does: 2

image

Steps to reproduce

Search for a tab character. 1

Example Project

gitlab.com/search?nav_source=navbar&project_id=59592630&group_id=94082195&search_code=true&repository_ref=653d77892f92a7b53ab64fc0d143eaed53023064

What is the current bug behavior?

When searching for whitespace, the 0-result error message does not appear

What is the expected correct behavior?

It should.

Output of checks

This bug occurs on GitLab.com.

@gitlab-bot label reproduced on GitLab.com

Results of GitLab environment info

This information is inaccessible to me.

Results of GitLab application Check

This information is inaccessible to me.

Possible fixes

Unknown. However, because this also affects other search components, there may be something fundamentally broken:

image

High-severity bug remediation

@gitlab-bot label typebug

  1. search?search=%09&nav_source=navbar&project_id=59592630&group_id=94082195&search_code=true&repository_ref=main 2

  2. search?search=`&nav_source=navbar&project_id=59592630&group_id=94082195&search_code=true&repository_ref=main

Edited by 🤖 GitLab Bot 🤖