Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-6400

Search request type with multibyte keyword in customer portal doesn't return any results

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 4.2.0, 4.2.1
    • 4.1.0, 4.1.1, 4.1.2, 4.1.3
    • Customer Portal
    • None

    Description

      Issue Summary

      Search request type with multibyte keyword in customer portal doesn't return any results

      Environment

      • Jira Service Desk 4.1.0
      • Not to be reproduced in Jira Service Desk 4.0.2, 4.2.1

      Steps to Reproduce

      1. Create new request type which is called "テスト"
      2. Input a keyword "テスト" in customer portal search field

      Expected Results

      The request type should be suggested.

      Actual Results

      Doen't return any request type with keyword "テスト".

      Notes

      Multibyte text "テスト" encoded 2 times.

      • <BASE_URL>/rest/servicedesk/search/1/search/request-type?query=%25E3%2583%2586%25E3%2582%25B9%25E3%2583%2588&resultLimit=5&serviceDeskId=1&_=1559096535526
        {
        	requestTypes: [ ]
        }
        

      When decode the query, return proper results.

      • <BASE_URL>/rest/servicedesk/search/1/search/request-type?query=%E3%83%86%E3%82%B9%E3%83%88&resultLimit=5&serviceDeskId=1&_=1559097269350
        {
        	requestTypes: [
        		{
        			id: 17,
        			cvId: 1,
        			icon: 10638,
        			issueType: 10001,
        			name: "テスト",
        			portalName: "IT Service Desk",
        			description: "Japanese",
        			searchScore: 0
        		}
        	]
        }
        

      "Search for an article" has same issue.

      • <BASE_URL>/rest/servicedesk/knowledgebase/latest/articles/search?project=ISD&query=%25E3%2583%2586%25E3%2582%25B9%25E3%2583%2588&_=1559116663620
        {
        	results: [ ],
        	total: 0,
        	pageNumber: 1,
        	resultsPerPage: 3
        }
        
      • <BASE_URL>/rest/servicedesk/knowledgebase/latest/articles/search?project=ISD&query=%E3%83%86%E3%82%B9%E3%83%88&_=1559116663620
        {
        	results: [
        		{
        			id: "65622",
        			title: "@@@hl@@@テスト@@@endhl@@@3",
        			url: "/pages/viewpage.action?pageId=65622&src=search",
        			appLinkUrl: "http://confluence:8090",
        			shareable: true,
        			bodyTextHighlights: "て",
        			portalName: "IT Service Desk",
        			spaceKey: "ds",
        			appLinkId: "ab9528d2-ba64-36d2-ad73-62624a5c7f9f"
        		}
        	],
        	total: 1,
        	pageNumber: 1,
        	resultsPerPage: 3
        }
        

      Workaround

      Upgrade to latest version.

      Attachments

        Activity

          People

            kkanojia Kunal Kanojia
            tsuzuki@atlassian.com Tomoko Suzuki
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Backbone Issue Sync