Details
-
Bug
-
Resolution: Fixed
-
Medium
-
None
Description
Users can't update JIRA issue if Sprint field present only with a value for Completed Sprint.
Error:
2015-12-08 21:35:41.837849500 2015-12-08 21:35:41,834 http-nio-2990-exec-56 ERROR [o.a.c.c.C.[.[localhost].[/].[action]] Servlet.service() for servlet [action] in context with path [] threw exception 2015-12-08 21:35:41.837850500 java.lang.RuntimeException: javax.servlet.ServletException: java.lang.NumberFormatException: For input string: "" 2015-12-08 21:35:41.837851500 at com.atlassian.servicedesk.internal.util.scala.ScalaJavaInterOp$1.apply(ScalaJavaInterOp.java:27) 2015-12-08 21:35:41.837851500 at com.atlassian.servicedesk.internal.utils.context.CustomerContextUtil$.outOfCustomerContext(CustomerContextUtil.scala:48) 2015-12-08 21:35:41.837860500 at com.atlassian.servicedesk.internal.utils.context.CustomerContextUtil.outOfCustomerContext(CustomerContextUtil.scala) 2015-12-08 21:35:41.837860500 at com.atlassian.servicedesk.internal.utils.context.CustomerContextServiceImpl.outOfCustomerContext(CustomerContextServiceImpl.java:24) 2015-12-08 21:35:41.837861500 at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.outOfCustomerContext(CustomerContextSettingFilter.java:164) 2015-12-08 21:35:41.837863500 at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilterImpl(CustomerContextSettingFilter.java:120) 2015-12-08 21:35:41.837865500 at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilter(CustomerContextSettingFilter.java:112) 2015-12-08 21:35:41.837866500 ... 3 filtered 2015-12-08 21:35:41.837866500 at com.atlassian.jwt.internal.servlet.JwtAuthFilter.doFilter(JwtAuthFilter.java:31) 2015-12-08 21:35:41.837866500 ... 54 filtered 2015-12-08 21:35:41.837866500 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 2015-12-08 21:35:41.837868500 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 2015-12-08 21:35:41.837868500 at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) 2015-12-08 21:35:41.837869500 at java.lang.Thread.run(Thread.java:745) 2015-12-08 21:35:41.837869500 Caused by: javax.servlet.ServletException: java.lang.NumberFormatException: For input string: "" 2015-12-08 21:35:41.837870500 at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.onActionException(JiraWebworkActionDispatcher.java:218) 2015-12-08 21:35:41.837871500 at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:171) 2015-12-08 21:35:41.837871500 at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) 2015-12-08 21:35:41.837871500 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291) 2015-12-08 21:35:41.837877500 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 2015-12-08 21:35:41.837877500 ... 49 filtered 2015-12-08 21:35:41.837877500 at com.atlassian.greenhopper.jira.filters.ClassicBoardRouter.doFilter(ClassicBoardRouter.java:59) 2015-12-08 21:35:41.837878500 ... 28 filtered 2015-12-08 21:35:41.837878500 at com.atlassian.jira.plugins.rest.HOT25715FixServletFilter.doFilter(HOT25715FixServletFilter.java:46) 2015-12-08 21:35:41.837879500 ... 30 filtered 2015-12-08 21:35:41.837880500 at com.atlassian.plugin.connect.plugin.auth.scope.ApiScopingFilter.doFilter(ApiScopingFilter.java:89) 2015-12-08 21:35:41.837880500 ... 15 filtered 2015-12-08 21:35:41.837880500 at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:70) 2015-12-08 21:35:41.837881500 ... 46 filtered 2015-12-08 21:35:41.837881500 at com.atlassian.plugin.connect.plugin.auth.user.ThreeLeggedAuthFilter.doFilter(ThreeLeggedAuthFilter.java:122) 2015-12-08 21:35:41.837882500 ... 3 filtered 2015-12-08 21:35:41.837882500 at com.atlassian.plugin.connect.plugin.auth.oauth.OAuth2LOFilter.doFilter(OAuth2LOFilter.java:82) 2015-12-08 21:35:41.837883500 ... 3 filtered 2015-12-08 21:35:41.837883500 at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.lambda$invokeFilterChain$413(CustomerContextSettingFilter.java:169) 2015-12-08 21:35:41.837884500 at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter$$Lambda$423/30907991.call(Unknown Source) 2015-12-08 21:35:41.837887500 at com.atlassian.servicedesk.internal.util.scala.ScalaJavaInterOp$1.apply(ScalaJavaInterOp.java:25) 2015-12-08 21:35:41.837887500 ... 68 more 2015-12-08 21:35:41.837888500 Caused by: java.lang.NumberFormatException: For input string: "" 2015-12-08 21:35:41.837900500 at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) 2015-12-08 21:35:41.837901500 at java.lang.Long.parseLong(Long.java:601) 2015-12-08 21:35:41.837903500 at java.lang.Long.valueOf(Long.java:803) 2015-12-08 21:35:41.837903500 at com.atlassian.greenhopper.customfield.sprint.SprintCFAnalyticHelper.toSprintIds(SprintCFAnalyticHelper.java:105) 2015-12-08 21:35:41.837903500 at com.atlassian.greenhopper.customfield.sprint.SprintCFAnalyticHelper.fireSprintPermissionAnalyticEvent(SprintCFAnalyticHelper.java:65) 2015-12-08 21:35:41.837904500 at com.atlassian.greenhopper.customfield.sprint.SprintCFType.validateFromParams(SprintCFType.java:188)
Steps to reproduce
- Create an issue in JIRA
- Create and start a sprint with the issue included in the sprint
- Drag the issue into Done column and complete the sprint
- Go to the issue and check if Completed Sprint with the sprint name as its value is present
- If it present, click on Update
- Nothing will happen and the error above is thrown
Workaround
Remove Sprint field from Edit Issue screen and issue update should be working again.