graylog2-web-interface icon indicating copy to clipboard operation
graylog2-web-interface copied to clipboard

Problems escaping search query

Open edmundoa opened this issue 10 years ago • 1 comments

We have problems escaping colons inside curly braces. Example message:

message:foobar.local Mail\[45188\]\: \{\"status\"\:\"400\",\"schemes\"\:\"Bearer\",\"scope\"\:\"https\:\/\/foobar.com\/\"\}

The exception thrown by the web interface is:

play.api.Application$$anon$1: Execution exception[[UriBuilderException: java.net.URISyntaxException: Illegal character in query at index 171: http://b3f8a0cb-e38e-429a-9a21-72b7e82c5b48:[email protected]:12900/search/universal/relative?filter=*&offset=0&query=message:foobar.local+Mail%5C%5B45188%5C%5D%5C:+%5C%7B\%22status\%22\:\%22400\%22,\%22schemes\%22\:\%22Bearer\%22,\%22scope\%22\:\%22https\:\/\/foobar.com\/\%22\%7D&limit=100&range=300&sort=timestamp:desc&range_type=relative]]

edmundoa avatar Jun 02 '15 15:06 edmundoa

Probably this will be fixed once we use POST to send the search query: #1463

edmundoa avatar Aug 04 '15 14:08 edmundoa