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

Project Configurator gives a string out of range error in Windows OS

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 3.0.7
    • Fix Version/s: 3.0.8
    • Labels:
    • Sprint:
      PC Sprint 18
    • Critical Points:
      0

      Description

      In Windows OS , when generating a project export , the export file can not be copied from <JiraInstallDirectory>/temp ** folder to <JiraHomeDirectory>/export/projectconfigurator ,  this will cause the error below as Project Configurator cannot display where the file has been saved as it is not in the expected directory of
      <JiraHomeDirectory>/export/projectconfigurator.

       

       

      2019-08-08 15:20:50,381 JiraTaskExectionThread-6 INFO jmn 920x1270x1 xxkr1c 10.163.30.131 /secure/project-export!export.jspa [c.a.j.bc.dataimport.DefaultExportService] Data export completed in 1685ms. Wrote 56269 entities to export in memory.
      2019-08-08 15:20:50,381 JiraTaskExectionThread-6 INFO jmn 920x1270x1 xxkr1c 10.163.30.131 /secure/project-export!export.jspa [c.a.j.bc.dataimport.DefaultExportService] Attempting to save the Active Objects Backup
      2019-08-08 15:20:51,972 JiraTaskExectionThread-6 INFO jmn 920x1270x1 xxkr1c 10.163.30.131 /secure/project-export!export.jspa [c.a.j.bc.dataimport.DefaultExportService] Finished saving the Active Objects Backup
      2019-08-08 15:21:01,036 http-nio-80-exec-12 ERROR [o.a.c.c.C.[.[localhost].[/].[action]] Servlet.service() for servlet [action] in context with path [] threw exception [java.lang.StringIndexOutOfBoundsException: String index out of range: -1] with root cause
      java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      at java.lang.String.substring(Unknown Source)
      at com.awnaba.projectconfigurator.commonactions.ExportResultDisplay.getStageSummary(ExportResultDisplay.java:286)
      at com.awnaba.projectconfigurator.commonactions.ExportResultDisplay.prepareSummary(ExportResultDisplay.java:234)
      at com.awnaba.projectconfigurator.commonactions.ExportResultDisplay.completeResults(ExportResultDisplay.java:141)
      at com.awnaba.projectconfigurator.commonactions.ExportResultDisplay.showResults(ExportResultDisplay.java:125)
      at com.awnaba.projectconfigurator.commonactions.ProjectExportResultAction.prepareToShowResults(ProjectExportResultAction.java:81)
      at com.awnaba.projectconfigurator.commonactions.AbstractTaskProgressAction.doExecute(AbstractTaskProgressAction.java:75)
      ... 1 filtered
      at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:63)
      ... 7 filtered
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
      ... 48 filtered
      at com.atlassian.greenhopper.jira.filters.ClassicBoardRouter.doFilter(ClassicBoardRouter.java:62)
      ... 3 filtered
      at com.atlassian.jira.plugin.mobile.web.filter.MobileAppRequestFilter.doFilter(MobileAppRequestFilter.java:31)
      ... 4 filtered
      at com.atlassian.jira.plugin.mobile.login.MobileLoginSuccessFilter.doFilter(MobileLoginSuccessFilter.java:54)
      ... 12 filtered
      at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21)
      ... 62 filtered
      at com.atlassian.jira.security.JiraSecurityFilter.lambda$doFilter$0(JiraSecurityFilter.java:66)
      ... 1 filtered
      at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:64)
      ... 39 filtered
      at com.atlassian.jira.servermetrics.CorrelationIdPopulatorFilter.doFilter(CorrelationIdPopulatorFilter.java:30)
      ... 10 filtered
      at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21)
      ... 4 filtered
      at com.atlassian.web.servlet.plugin.LocationCleanerFilter.doFilter(LocationCleanerFilter.java:36)
      ... 26 filtered
      at com.atlassian.jira.servermetrics.MetricsCollectorFilter.doFilter(MetricsCollectorFilter.java:25)
      ... 25 filtered
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      at java.lang.Thread.run(Unknown Source)

       

      Expected Behaviour

      Project Configurator should export in default folder in Windows OS.

      Actual Behaviour

      The export works and gives a 500 page with the error shown in the description instead of showing the export results screen.

      Workaround

      Downgrade to 3.0.4 version or use export file in <JiraInstallDirectory>/temp folder. 
       

        Attachments

          Activity

            People

            Assignee:
            pmaranon Pepe Maranon Mora
            Reporter:
            jfernandez Joaquin Fernandez
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: