Uploaded image for project: 'Jira Server and Data Center'
  1. Jira Server and Data Center
  2. JRASERVER-19350

If i run a JQL search that is too general, then try to click on the "file attachments" link on an issue it dumps a stack trace

    XMLWordPrintable

Details

    Description

      If i run a JQL search that is too general, then try to click on the "file attachments" link on an issue it dumps a stack trace

      com.atlassian.jira.issue.search.ClauseTooComplexSearchException: A the following query was too complex to generate a query from: {comment ~ "Unable to retrieve gadget xml. HTTP error 404"}
      	at com.atlassian.jira.jql.query.DefaultLuceneQueryBuilder.createLuceneQuery(DefaultLuceneQueryBuilder.java:38)
      	at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.getHits(LuceneSearchProvider.java:151)
      	at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.searchAndSort(LuceneSearchProvider.java:276)
      	at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.searchAndSort(LuceneSearchProvider.java:110)
      	at com.atlassian.jira.issue.pager.NextPreviousPager.populateDocIdsAndGetCurrentKeyPosition(NextPreviousPager.java:233)
      	at com.atlassian.jira.issue.pager.NextPreviousPager.update(NextPreviousPager.java:162)
      	at com.atlassian.jira.web.action.issue.ManageAttachments.doExecute(ManageAttachments.java:88)
      	at webwork.action.ActionSupport.execute(ActionSupport.java:153)
      	at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:59)
      	at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:141)
      	at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:181)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      

      Screenshot:
      User might encounter this, if he has watched a huge number of issues (> 200000)

      Attachments

        1. stacktrace.txt
          11 kB
        2. watched.PNG
          watched.PNG
          4 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              andrew.myers Andrew Myers [Atlassian]
              Votes:
              28 Vote for this issue
              Watchers:
              29 Start watching this issue

              Dates

                Created:
                Updated: