Uploaded image for project: 'JIRA Software Server (including JIRA Agile)'
  1. JIRA Software Server (including JIRA Agile)
  2. JSWSERVER-12040

Using cascadeOption(None) in filter query breaks browse project view for all projects

    XMLWordPrintable

    Details

    • Symptom Severity:
      Major
    • Support reference count:
      15
    • UIS:
      6
    • Occurrence Factor:
      25%

      Description

      Symptoms

      Clicking on a non-admin project view causes a 500 error, with stack trace:

      com.atlassian.cache.CacheException: java.lang.IllegalArgumentException: QueryLiteral 'null' must contain at least one non-null value
      	at com.atlassian.cache.memory.DelegatingCache$DelegatingLoadingCache.get(DelegatingCache.java:306)
      	at com.atlassian.cache.compat.delegate.DelegatingCache.get(DelegatingCache.java:37)
      	at com.atlassian.greenhopper.service.query.QueryToProjectMapper.getProjectContextIdsForQuery(QueryToProjectMapper.java:76)
      	at com.atlassian.greenhopper.service.query.QueryServiceImpl.getProjectsForRapidView(QueryServiceImpl.java:114)
      	at com.atlassian.greenhopper.service.query.QueryServiceImpl.getExplicitProjectsForRapidViewFilterQuery(QueryServiceImpl.java:101)
      	at com.atlassian.greenhopper.service.rapid.ProjectRapidViewServiceImpl.findRapidViewsByProject(ProjectRapidViewServiceImpl.java:53)
      	at com.atlassian.greenhopper.web.sidebar.ProjectBoardsHelper.getProjectBoards(ProjectBoardsHelper.java:53)
      	at com.atlassian.greenhopper.web.sidebar.BoardScopeFilterContextProviderImpl.getContext(BoardScopeFilterContextProviderImpl.java:34)
      	at com.atlassian.greenhopper.web.sidebar.AgileBoardScopeFilterContextProvider.getContext(AgileBoardScopeFilterContextProvider.java:27)
      	at com.atlassian.jira.projects.context.ProjectContextPopulator.populateWithProject(ProjectContextPopulator.java:77)
      	at com.atlassian.jira.projects.context.ProjectContextPopulator.populateWithProject(ProjectContextPopulator.java:44)
      	at com.atlassian.jira.projects.page.ProjectPageServlet.getPluginProvidedDefaultPage(ProjectPageServlet.java:166)
      	at com.atlassian.jira.projects.page.ProjectPageServlet.selectItemToRender(ProjectPageServlet.java:121)
      	at com.atlassian.jira.projects.page.ProjectPageServlet.doGet(ProjectPageServlet.java:97)
      

      Also:

      com.google.template.soy.tofu.SoyTofuException: In template JIRA.Templates.Projects.browseTabs: When evaluating "length($operationLinks)": Error while computing function "length($operationLinks)": Argument to length() function is not SoyListData.
      com.google.template.soy.tofu.SoyTofuException: In template JIRA.Templates.Projects.browseTabs: When evaluating "length($operationLinks)": Error while computing function "length($operationLinks)": Argument to length() function is not SoyListData.
      at com.google.template.soy.tofu.internal.BaseTofu.renderMainHelper(BaseTofu.java:341)
      at com.google.template.soy.tofu.internal.BaseTofu.renderMain(BaseTofu.java:300)
      at com.google.template.soy.tofu.internal.BaseTofu.access$100(BaseTofu.java:56)
      at com.google.template.soy.tofu.internal.BaseTofu$RendererImpl.render(BaseTofu.java:427)
      at com.atlassian.soy.impl.DefaultSoyManager.render(DefaultSoyManager.java:118)
      

      Steps to reproduce (this might be specific to JIRA Agile)

      1. create cascading select and associate it to projects/issues
      2. Create a filter that includes <fieldname> in cascadeOption(None)
      3. Base Agile board on this filter
      4. Everything breaks (trying to view any project will fail)

      Workaround

      Delete offending filter, do not use cascadeOption(None) in JQL queries

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                4 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Last commented:
                  1 year, 16 weeks, 4 days ago