Uploaded image for project: 'Project Configurator - Development'
  1. Project Configurator - Development
  2. PCDEV-1179

References to subordinate objects (versions, components, issue security levels) in a JQL query trigger a NPE in the simulated import

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 3.0.1
    • Fix Version/s: 3.0.2
    • Labels:
      None
    • Sprint:
      PC Sprint 13
    • Critical Points:
      0

      Description

      Clauses in a JQL query that refer to objects like versions, filters or issue security levels like:

      fixVersion = "5.0.1 HotFix" 

      cause a NullPointerException like this one:

      ENTITY_CATEGORY Filter user_one@@BWHFDeliveryAllIssues
                  ERROR Message: java.lang.NullPointerException    
                      java.lang.NullPointerException
                      	at com.awnaba.projectconfigurator.loaders.handlers.HandlerFactory.getObjectAlias(HandlerFactory.java:236)
                      	at com.awnaba.projectconfigurator.jiraobjectfacades.query.AbstractClauseProcessor.getExistsCondition(AbstractClauseProcessor.java:33)
                      	at com.awnaba.projectconfigurator.jiraobjectfacades.query.OperandConditionGenerator.visit(OperandConditionGenerator.java:74)
                      	at com.awnaba.projectconfigurator.jiraobjectfacades.query.OperandConditionGenerator.visit(OperandConditionGenerator.java:1)
                      	at com.atlassian.query.operand.SingleValueOperand.accept(SingleValueOperand.java:61)
                      	at com.awnaba.projectconfigurator.jiraobjectfacades.query.QueryConditionGenerator.visitOperand(QueryConditionGenerator.java:119)
                      	at com.awnaba.projectconfigurator.jiraobjectfacades.query.QueryConditionGenerator.visit(QueryConditionGenerator.java:38)
                      	at com.awnaba.projectconfigurator.jiraobjectfacades.query.QueryConditionGenerator.visit(QueryConditionGenerator.java:1)
                      	at com.atlassian.query.clause.TerminalClauseImpl.accept(TerminalClauseImpl.java:143)
                      	at com.awnaba.projectconfigurator.jiraobjectfacades.query.QueryConditionGenerator.visitMultiClause(QueryConditionGenerator.java:108)
                      	at com.awnaba.projectconfigurator.jiraobjectfacades.query.QueryConditionGenerator.visit(QueryConditionGenerator.java:43)
                      	at com.awnaba.projectconfigurator.jiraobjectfacades.query.QueryConditionGenerator.visit(QueryConditionGenerator.java:1)
                      	at com.atlassian.query.clause.AndClause.accept(AndClause.java:28)
                      	at com.awnaba.projectconfigurator.jiraobjectfacades.FilterToolsImpl.getConditionsForNormalizeQuery(FilterToolsImpl.java:189)
                      	at com.awnaba.projectconfigurator.loaders.handlers.SearchRequestHandler.getCreatePreConditions(SearchRequestHandler.java:188)
                      	at com.awnaba.projectconfigurator.loaders.core.AbstractIntegratedHandler.shallowCreate(AbstractIntegratedHandler.java:321)
                      	at com.awnaba.projectconfigurator.loaders.core.AbstractIntegratedHandler.createTarget(AbstractIntegratedHandler.java:295)
                      	at com.awnaba.projectconfigurator.loaders.core.AbstractIntegratedHandler.handleTarget(AbstractIntegratedHandler.java:152)
                      	at com.awnaba.projectconfigurator.loaders.core.AbstractTargetHandler.handleTarget(AbstractTargetHandler.java:29)
                      	at com.awnaba.projectconfigurator.loaders.orchestration.ProjectConfigLoader.lambda$1(ProjectConfigLoader.java:179)
                      	at com.awnaba.projectconfigurator.loaders.orchestration.ProjectConfigLoader.traverseConfigTree(ProjectConfigLoader.java:169)
                      	at com.awnaba.projectconfigurator.loaders.orchestration.ProjectConfigLoader.getOperationsTreeFromXML(ProjectConfigLoader.java:183)
                      	at com.awnaba.projectconfigurator.operationsapi.impl.ConfigImporterTask.runOldStyleConfigImport(ConfigImporterTask.java:117)
                      	at com.awnaba.projectconfigurator.operationsapi.impl.ConfigImporterTask.doConfigImportJobWithReturnInfo(ConfigImporterTask.java:90)
                      	at com.awnaba.projectconfigurator.operationsapi.impl.ConfigImporterTask.doXmlJob(ConfigImporterTask.java:66)
                      	at com.awnaba.projectconfigurator.operationsapi.impl.ConfigImporterTask.doImport(ConfigImporterTask.java:128)
      

      This error occurs both during the simulation stage or the actual import.

        Attachments

          Structure

            Activity

              People

              Assignee:
              pmaranon Pepe Maranon Mora
              Reporter:
              pmaranon Pepe Maranon Mora
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Structure Helper Panel