Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-71234

search-request-view plugins (implements com.atlassian.jira.plugin.searchrequestview.SearchRequestView) are not executed when search query contains some unicode characters.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 8.8.0, 8.9.0
    • Navigation - Search

    Description

      Issue Summary

      search-request-view plugins (implements com.atlassian.jira.plugin.searchrequestview.SearchRequestView) are not executed when search query contains some unicode characters.

      Environment

      Issue appeared after Jira update to 8.5.0 -> 8.8.0, and reproducible with new 8.9.0

      Steps to Reproduce

      1. create plugin with search-request-view module using SDK:
        atlas-create-jira-plugin-module > .. > "17. Search Request View"
      2. package and install on Jira
      3. in Jira, perform search for issue, where query contains some non-ascii character. For example: summary ~ "Über"
      4. Execute plugin by calling option Export -> MyPlugin

       

      Expected Results

      plugin writeSearchResults() method to be executed

      Actual Results

      • 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.

      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.

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

      Attachments

        Activity

          People

            Unassigned Unassigned
            4e53cd466bad Anar Ibragimoff
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: