Skip to content

A failed search shows "No results found" and the same term can't be searched again #4361

Closed

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

When a search request fails, the search preview and the results page just say "No results found", there's no error message. And submitting the same term again (Enter or the search icon) doesn't search again, so there's no way to retry except reloading the page. Same when results are just outdated: searching the same term again doesn't fetch the current state.

Cause: packages/web-app-search/src/views/List.vue catches the error and sets an empty result. The results list only searches again when the route query changes (packages/web-app-files/src/components/Search/List.vue), and submitting the same term pushes an identical route.

Reproduction Steps

  1. Make the search REPORT on /dav/spaces/ fail with a 500 (e.g. devtools request blocking)
  2. Type a term that has results and press Enter
  3. Let requests succeed again, focus the search field and press Enter (or click the search icon)

Expected Outcome

A failed search shows an error message. Submitting a search (Enter or search icon) always runs it again, also with the same term, e.g. to retry or to get the current state.

Actual Outcome

"No results" in the preview and "No results found" on the page, no error message. Submitting the same term again sends no request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions