-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Escaping issue #230
Comments
hi @fa-grosch could you show me the full string in the $firstline variable for debugging purpose? thanks. |
Full query is:
When I run it in Jira issue filter directly it results in this error:
|
hi @fa-grosch JQL has an advanced search operator for text field search, but this library is not yet supported. instead you can use search operator directly like this. $jql =<<< JQL
(status != closed OR status changed to Closed after -10d ) AND
(summary ~ "index.php on line 14*" OR description ~ "index.php on line 14*")
JQL;
$result = $issueService->search($jql); |
@lesstif the value of summary/description represents the first line of a log file so its not possible to replace a specific part of it with a wildcard. |
The
JqlQuery::quote
method does not quote the given text correctly. In some scenarios, jira does not understand the jql query.Jira-Version is: v7.13.0#713000-sha1:fbf4068
I build the query this way:
For some values of $firstLine (maybe for special chars, single/double quotes, slashes or backslashes), jira responds to this with an error:
The text was updated successfully, but these errors were encountered: