IMPORTANT: JAC is a Public system and anyone on the internet will be able to view the data in the created JAC tickets. Please don’t include Customer or Sensitive data in the JAC ticket.
Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-45241

Escaping special characters doesn't work correctly in issue search

      Summary

      Escaping special characters doesn't work correctly in issue search. It seems they are ignored.

      Steps to Reproduce

      1. Create an issue whose summary is 'fifteen'
      2. Create an issue whose summary is 'fifteen*'
      3. Search the second issue with a following keyword
        "fifteen\\*"

      Expected Results

      Hits only the second issue. (The one which has a summary 'fifteen*')

      Actual Results

      Hits both of the issues.

      Notes

      According to JRA-25092,

      summary ~ "fifteen\\*" (works)
      

      but it doesn't look working.

      Actually the same behavior is also applied to special characters used in the beginning of the word. If we also create an issue with the summary is '*fifteen' if we search for

      summary ~ "\\*fifteen"
      

      this search will return all three issues (with summary 'fifteen', '*fifteen' and 'fifteen*').

            Loading...
            IMPORTANT: JAC is a Public system and anyone on the internet will be able to view the data in the created JAC tickets. Please don’t include Customer or Sensitive data in the JAC ticket.
            Uploaded image for project: 'Jira Data Center'
            1. Jira Data Center
            2. JRASERVER-45241

            Escaping special characters doesn't work correctly in issue search

              • Icon: Bug Bug
              • Resolution: Invalid
              • Icon: Medium Medium
              • None
              • 6.2, 6.3.11, 6.3.15, 6.4.5, 6.4.11
              • JQL

                Summary

                Escaping special characters doesn't work correctly in issue search. It seems they are ignored.

                Steps to Reproduce

                1. Create an issue whose summary is 'fifteen'
                2. Create an issue whose summary is 'fifteen*'
                3. Search the second issue with a following keyword
                  "fifteen\\*"

                Expected Results

                Hits only the second issue. (The one which has a summary 'fifteen*')

                Actual Results

                Hits both of the issues.

                Notes

                According to JRA-25092,

                summary ~ "fifteen\\*" (works)
                

                but it doesn't look working.

                Actually the same behavior is also applied to special characters used in the beginning of the word. If we also create an issue with the summary is '*fifteen' if we search for

                summary ~ "\\*fifteen"
                

                this search will return all three issues (with summary 'fifteen', '*fifteen' and 'fifteen*').

                        Unassigned Unassigned
                        yokamoto Yuki Okamoto (Inactive)
                        Votes:
                        1 Vote for this issue
                        Watchers:
                        4 Start watching this issue

                          Created:
                          Updated:
                          Resolved:

                            Unassigned Unassigned
                            yokamoto Yuki Okamoto (Inactive)
                            Affected customers:
                            1 This affects my team
                            Watchers:
                            4 Start watching this issue

                              Created:
                              Updated:
                              Resolved: