Search box should not accept disallowed characters

Description

Ex. if we search for something: this will happen

Elastic error

Caused by: Failed to execute phase [query], all shards failed; shardFailures {[Ln6VmbbpQZOBp9h1CdQkvg][projects][0]: RemoteTransportException[[hopsworks][10.0.2.15:9300][indices:data/read/search[phase/query]]]; nested: SearchParseException[failed to parse search source [{"query":{"bool":{"must":{"bool":{"should":[{"bool":{"should":[{"prefix":{"name":"project:"}},{"match":{"name":{"query":"project:","type":"phrase"}}},{"fuzzy":{"name":{"value":"project:"}}},{"wildcard":{"name":"project:"}}]}},{"bool":{"should":[{"prefix":{"description":"project:"}},{"terms":{"description":["project:"]}},{"match":{"description":{"query":"project:","type":"phrase"}}},{"fuzzy":{"description":{"value":"project:"}}},{"wildcard":{"description":"project:"}}]}},{"nested":{"query":{"query_string":{"query":"project:","fields":["xattr."],"lenient":true}},"path":"xattr"}}]}}}},"highlight":{"fields":{"name":{}}}}]]; nested: QueryParsingException[Failed to parse query [*project:]]; nested: ParseException[Cannot parse 'project:': Encountered " ":" ": "" at line 1, column 8.
Was expecting one of:
<EOF>
<AND> ...
<OR> ...
<NOT> ...
"+" ...
"-" ...
<BAREOPER> ...
"(" ...
"*" ...
"^" ...
<QUOTED> ...
<TERM> ...
<FUZZY_SLOP> ...
<PREFIXTERM> ...
<WILDTERM> ...
<REGEXPTERM> ...
"[" ...
"{" ...
<NUMBER> ...
]; nested: ParseException[Encountered " ":" ": "" at line 1, column 8.
Was expecting one of:
<EOF>
<AND> ...
<OR> ...
<NOT> ...
"+" ...
"-" ...
<BAREOPER> ...
"(" ...
"*" ...
"^" ...
<QUOTED> ...
<TERM> ...
<FUZZY_SLOP> ...
<PREFIXTERM> ...
<WILDTERM> ...
<REGEXPTERM> ...
"[" ...
"{" ...
<NUMBER> ...

Or something/ will result in

jersey Exception

Severe: javax.ws.rs.NotFoundException: HTTP 404 Not Found

Assignee

Alex Ormenisan

Reporter

Ermias Gebremeskel

Labels

Fix versions

Affects versions

Priority

High
Configure