Problem is:
search-request-view plugins (implements com.atlassian.jira.plugin.searchrequestview.SearchRequestView) are not executed when search query contains some unicode characters.
Steps to reproduce:
- create plugin with search-request-view module using SDK:
atlas-create-jira-plugin-module > .. > "17. Search Request View" - package and install on Jira
- in Jira, perform search for issue, where query contains some non-ascii character. For example: summary ~ "Über"
- Execute plugin by calling option Export -> MyPlugin
Expected result: plugin writeSearchResults() method to be executed
Real result: error page with text: "HTTP Status 400 – Bad Request. Error in the JQL Query: The character 'U+009C' on line 1 at position 13 must be escaped. Use the escape '\u009c' instead. (line 1, character 13)".
None of plugin class methods is invoked, as error page seems to be rendered earlier.
Issue appeared after Jira update to 8.5.0 -> 8.8.0, and reproducible with new 8.9.0
Note: native export functions work without issues, but they seems don't implement com.atlassian.jira.plugin.searchrequestview.SearchRequestView and called differently than user-plugins.