In GNOME Software entering searches containing some non alphanumeric characters can generate an error message. This seems to be due to the following in store/store.go
:
// these characters might have special meaning on the search
// server, and don't form part of a reasonable search, so
// abort if they're included.
//
// "-" might also be special on the server, but it's also a
// valid part of a package name, so we let it pass
if strings.ContainsAny(searchTerm, `+=&|><!(){}[]^"~*?:\/`) {
return nil, ErrBadQuery
}
The simple solution is to catch all the ErrBadQuery in gnome-software and silently ignore them. Before I do that I wanted to check if this logic is still valid - should snapd be rejecting searches like this?