Skip to content

Search preview stays on "Searching…" when the search request fails #3663

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

Search preview stays on "Searching…" when the search request fails. Cause: packages/web-app-search/src/portals/SearchBar.vue:283-293 has no try/catch, so loading is never reset; useSearch.ts:114-120 puts the term into KQL unescaped.

Reproduction Steps

  1. Type kiwi\ into the search field (the server answers 500, see KQL search can't escape quotes, a trailing backslash causes a 500 opencloud#3666).

Expected Outcome

The preview shows "No results" or an error.

Actual Outcome

The preview stays on "Searching…" and an unhandled error is thrown.

Screenshot

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