Uploaded image for project: 'Xporter for Jira'
  1. Xporter for Jira
  2. XPORTER-636

An error occurs when trying to bulk export from a JQL query with quote escaping

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Release 3.4.5, Release 4.0.1
    • Release 3.4.6, Release 4.0.2
    • None
    • None
    • R4.0.2 Sprint 2
    • UNCOVERED

    Description

      When trying to perform a bulk export from a JQL query with quote escaping like the following:

      issuetype = Control AND status in (Accepted, Underway, "Waiting Input") AND text ~ "\"Release Control\" OR \"Project Control\"" ORDER BY project ASC, summary DESC, status DESC

      an error occurs as displayed on screenshot-1.png.

      The JIRA log displays the following message

      Caused by: java.lang.NullPointerException
      	at com.xpandit.jiraxporter.action.BulkExport.getSelectedIssues(Unknown Source)
      	at com.xpandit.jiraxporter.action.BulkExport.getExistsForbiddenIssues(Unknown Source)
      	... 222 more
      2015-11-11 09:50:36,520 http-bio-8080-exec-74 WARN meick 590x8964x1 1o7bxa7 192.168.1.69 /secure/views/bulkedit/BulkExportDetails.jspa [xpandit.jiraxporter.action.BulkExport] Error parsing jqlQuery: Errors: [Error in the JQL Query: Expecting either 'OR' or 'AND' but got 'Release'. (line 1, character 88)], Warnings: []
      2015-11-11 09:50:36,521 http-bio-8080-exec-74 WARN meick 590x8964x1 1o7bxa7 192.168.1.69 /secure/views/bulkedit/BulkExportDetails.jspa [xpandit.jiraxporter.action.BulkExport] Error parsing jqlQuery: Errors: [Error in the JQL Query: Expecting either 'OR' or 'AND' but got 'Release'. (line 1, character 88)], Warnings: []
      2015-11-11 09:50:36,521 http-bio-8080-exec-74 ERROR meick 590x8964x1 1o7bxa7 192.168.1.69 /secure/views/bulkedit/BulkExportDetails.jspa [webwork.util.ValueStack] query="existsForbiddenIssues" {[id="existsForbiddenIssues" type="8" values=""]}
      java.lang.reflect.InvocationTargetException
      

      Attachments

        Activity

          People

            pmmr Pedro Rodrigues
            pmmr Pedro Rodrigues
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours
                6h