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

Export of JMWE - "Comment On Issue Post Function" fails with Number Format Exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Done
    • High
    • Resolution: Fixed
    • None
    • 2.3.7-J7
    • None
    • 0

    Description

      When using the Comment Issue Post Function provided by the JMWE add on, if the Restrict to Project Role drop down is left blank this will cause a number format exception as shown in the stacktrace below. This happens when exporting a project as it tries to map the empty string as a role ID.

      java.lang.NumberFormatException: For input string: ""
          at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
          at java.lang.Long.parseLong(Long.java:601)
          at java.lang.Long.valueOf(Long.java:803)
          at com.awnaba.projectconfigurator.adapters.common.mappers.export.ProjectRoleIdToNameMapper$1.find(ProjectRoleIdToNameMapper.java:23)
          at com.awnaba.projectconfigurator.adapters.common.mappers.export.ProjectRoleIdToNameMapper$1.find(ProjectRoleIdToNameMapper.java:1)
          at com.awnaba.projectconfigurator.adapters.common.mappers.AbstractIdToNameMapper$1.doAndReturn(AbstractIdToNameMapper.java:20)

      Project Configurator should handle no role being specified here as the plugin states this field should be left blank if no role restrictions are required.

      Attachments

        Activity

          People

            jrojo Jose Rojo [X] (Inactive)
            kwalker Kristian Walker
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: