spark1security / n0s1

Secret Scanner for Slack, Jira, Confluence, Asana, Wrike and Linear
https://spark1.us/n0s1
GNU General Public License v3.0
38 stars 11 forks source link

Fixed JQL reserved word bug on jira_controller.py #9

Closed blupants closed 5 months ago

blupants commented 5 months ago

This PR fixed the bug that causes the error: JQL Query: XXX is a reserved JQL word. The bug was reported on this issue.

Steps to reproduce: Create a Jira project called AS. Add a ticket to the new project AS. Scan Jira with n0s1: n0s1 jira_scan --email user@spark1.us --server https://spark1us.atlassian.net It will fail with the following message: response text = {"errorMessages":["Error in the JQL Query: 'AS' is a reserved JQL word. You must surround it in quotation marks to use it in a query. (line 1, character 11)"],"errors":{}}