com.atlassian.jira.sharing.search.SearchParseException: org.apache.lucene.queryParser.ParseException: Cannot parse 'copy"aaaaa': Lexical error at line 1, column 11. Encountered: <EOF> after : "\"aaaaa"

Atlassian JIRA | Eduardo Soares [Atlassian] | 3 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    If you do a JQL search for: filter = "some filter name"/asdasd we are apparently still doing a lookup for each character added to the end of the string after the endquote, causing a ParseException to be thrown in the logs. Other JQL keywords do not suffer from this bug, so this should be consistent with those. {noformat} ERROR admin 1080x11813x1 fqbua0 0:0:0:0:0:0:0:1 /rest/api/1.0/jql/autocomplete [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: org.apache.lucene.queryParser.ParseException: Cannot parse 'copy"aaaaa': Lexical error at line 1, column 11. Encountered: <EOF> after : "\"aaaaa" [INFO] [talledLocalContainer] com.atlassian.jira.sharing.search.SearchParseException: org.apache.lucene.queryParser.ParseException: Cannot parse 'copy"aaaaa': Lexical error at line 1, column 11. Encountered: <EOF> after : "\"aaaaa" [INFO] [talledLocalContainer] at com.atlassian.jira.sharing.index.QueryBuilder.parseQuery(QueryBuilder.java:202) [INFO] [talledLocalContainer] at com.atlassian.jira.sharing.index.QueryBuilder.addParsedQuery(QueryBuilder.java:103) [INFO] [talledLocalContainer] at com.atlassian.jira.sharing.index.DefaultQueryFactory$Builder.addParsedQueries(DefaultQueryFactory.java:140) [INFO] [talledLocalContainer] at com.atlassian.jira.sharing.index.DefaultQueryFactory$Builder.build(DefaultQueryFactory.java:124) [INFO] [talledLocalContainer] at com.atlassian.jira.sharing.index.DefaultQueryFactory.create(DefaultQueryFactory.java:48) [INFO] [talledLocalContainer] at com.atlassian.jira.sharing.index.DefaultSharedEntitySearcher.search(DefaultSharedEntitySearcher.java:101) [INFO] [talledLocalContainer] at com.atlassian.jira.issue.search.DefaultSearchRequestManager.search(DefaultSearchRequestManager.java:379) [INFO] [talledLocalContainer] at com.atlassian.jira.bc.filter.DefaultSearchRequestService.search(DefaultSearchRequestService.java:540) [INFO] [talledLocalContainer] at com.atlassian.jira.jql.values.SavedFilterValuesGenerator.getPossibleValues(SavedFilterValuesGenerator.java:37) [INFO] [talledLocalContainer] at com.atlassian.jira.rest.v1.jql.AutoCompleteResource.generateResults(AutoCompleteResource.java:171) [INFO] [talledLocalContainer] at com.atlassian.jira.rest.v1.jql.AutoCompleteResource.getAutoCompleteResultsForField(AutoCompleteResource.java:101) [INFO] [talledLocalContainer] at com.atlassian.jira.rest.v1.jql.AutoCompleteResource.getIssuesResponse(AutoCompleteResource.java:71) {noformat}

    Atlassian JIRA | 3 years ago | Eduardo Soares [Atlassian]
    com.atlassian.jira.sharing.search.SearchParseException: org.apache.lucene.queryParser.ParseException: Cannot parse 'copy"aaaaa': Lexical error at line 1, column 11. Encountered: <EOF> after : "\"aaaaa"
  2. 0

    If you do a JQL search for: filter = "some filter name"/asdasd we are apparently still doing a lookup for each character added to the end of the string after the endquote, causing a ParseException to be thrown in the logs. Other JQL keywords do not suffer from this bug, so this should be consistent with those. {noformat} ERROR admin 1080x11813x1 fqbua0 0:0:0:0:0:0:0:1 /rest/api/1.0/jql/autocomplete [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: org.apache.lucene.queryParser.ParseException: Cannot parse 'copy"aaaaa': Lexical error at line 1, column 11. Encountered: <EOF> after : "\"aaaaa" [INFO] [talledLocalContainer] com.atlassian.jira.sharing.search.SearchParseException: org.apache.lucene.queryParser.ParseException: Cannot parse 'copy"aaaaa': Lexical error at line 1, column 11. Encountered: <EOF> after : "\"aaaaa" [INFO] [talledLocalContainer] at com.atlassian.jira.sharing.index.QueryBuilder.parseQuery(QueryBuilder.java:202) [INFO] [talledLocalContainer] at com.atlassian.jira.sharing.index.QueryBuilder.addParsedQuery(QueryBuilder.java:103) [INFO] [talledLocalContainer] at com.atlassian.jira.sharing.index.DefaultQueryFactory$Builder.addParsedQueries(DefaultQueryFactory.java:140) [INFO] [talledLocalContainer] at com.atlassian.jira.sharing.index.DefaultQueryFactory$Builder.build(DefaultQueryFactory.java:124) [INFO] [talledLocalContainer] at com.atlassian.jira.sharing.index.DefaultQueryFactory.create(DefaultQueryFactory.java:48) [INFO] [talledLocalContainer] at com.atlassian.jira.sharing.index.DefaultSharedEntitySearcher.search(DefaultSharedEntitySearcher.java:101) [INFO] [talledLocalContainer] at com.atlassian.jira.issue.search.DefaultSearchRequestManager.search(DefaultSearchRequestManager.java:379) [INFO] [talledLocalContainer] at com.atlassian.jira.bc.filter.DefaultSearchRequestService.search(DefaultSearchRequestService.java:540) [INFO] [talledLocalContainer] at com.atlassian.jira.jql.values.SavedFilterValuesGenerator.getPossibleValues(SavedFilterValuesGenerator.java:37) [INFO] [talledLocalContainer] at com.atlassian.jira.rest.v1.jql.AutoCompleteResource.generateResults(AutoCompleteResource.java:171) [INFO] [talledLocalContainer] at com.atlassian.jira.rest.v1.jql.AutoCompleteResource.getAutoCompleteResultsForField(AutoCompleteResource.java:101) [INFO] [talledLocalContainer] at com.atlassian.jira.rest.v1.jql.AutoCompleteResource.getIssuesResponse(AutoCompleteResource.java:71) {noformat}

    Atlassian JIRA | 3 years ago | Eduardo Soares [Atlassian]
    com.atlassian.jira.sharing.search.SearchParseException: org.apache.lucene.queryParser.ParseException: Cannot parse 'copy"aaaaa': Lexical error at line 1, column 11. Encountered: <EOF> after : "\"aaaaa"

    Root Cause Analysis

    1. com.atlassian.jira.sharing.search.SearchParseException

      org.apache.lucene.queryParser.ParseException: Cannot parse 'copy"aaaaa': Lexical error at line 1, column 11. Encountered: <EOF> after : "\"aaaaa"

      at com.atlassian.jira.sharing.index.QueryBuilder.parseQuery()
    2. com.atlassian.jira
      AutoCompleteResource.getIssuesResponse
      1. com.atlassian.jira.sharing.index.QueryBuilder.parseQuery(QueryBuilder.java:202)
      2. com.atlassian.jira.sharing.index.QueryBuilder.addParsedQuery(QueryBuilder.java:103)
      3. com.atlassian.jira.sharing.index.DefaultQueryFactory$Builder.addParsedQueries(DefaultQueryFactory.java:140)
      4. com.atlassian.jira.sharing.index.DefaultQueryFactory$Builder.build(DefaultQueryFactory.java:124)
      5. com.atlassian.jira.sharing.index.DefaultQueryFactory.create(DefaultQueryFactory.java:48)
      6. com.atlassian.jira.sharing.index.DefaultSharedEntitySearcher.search(DefaultSharedEntitySearcher.java:101)
      7. com.atlassian.jira.issue.search.DefaultSearchRequestManager.search(DefaultSearchRequestManager.java:379)
      8. com.atlassian.jira.bc.filter.DefaultSearchRequestService.search(DefaultSearchRequestService.java:540)
      9. com.atlassian.jira.jql.values.SavedFilterValuesGenerator.getPossibleValues(SavedFilterValuesGenerator.java:37)
      10. com.atlassian.jira.rest.v1.jql.AutoCompleteResource.generateResults(AutoCompleteResource.java:171)
      11. com.atlassian.jira.rest.v1.jql.AutoCompleteResource.getAutoCompleteResultsForField(AutoCompleteResource.java:101)
      12. com.atlassian.jira.rest.v1.jql.AutoCompleteResource.getIssuesResponse(AutoCompleteResource.java:71)
      12 frames