Details
-
Bug
-
Status: Done
-
High
-
Resolution: Fixed
-
None
-
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.