Details
-
Bug
-
Resolution: Fixed
-
Low
-
5.6.8, 5.7, 5.7.1
-
5.06
-
Description
If the value of "The number of working hours per day" consist of decimal ( e.g 8.4), stack trace below will be thrown after adding GreeHopper Task Board Gadget ,and default value (8 hours ) will be used instead:
2011-08-18 17:10:15,024 http-8080-3 ERROR cyrill.ruettimann 1030x33x1 6s2dse 0:0:0:0:0:0:0:1 /rest/greenhopper/1.0/task-board/generate.json [greenhopper.service.team.GreenHopperTeamAllocationProvider] Unable to fetch hours per day. Using 8 as default java.lang.NumberFormatException: For input string: "8.4" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:458) at java.lang.Integer.parseInt(Integer.java:499) at com.atlassian.greenhopper.service.team.GreenHopperTeamAllocationProvider.getSecondsPerDay(GreenHopperTeamAllocationProvider.java:89) at com.atlassian.greenhopper.service.team.GreenHopperTeamAllocationProvider.getTimeAllocation(GreenHopperTeamAllocationProvider.java:77)
Steps to replicate
- Set "The number of working hours per day" to 8.4 in Time Tracking setting.
- Add GreenHopper Task Board Gadget to Dashboard
- Stack Trace above will be thrown in the log.
Finding
- Affected GH 5.6.1 to GH 5.7.1
- Planning board and Task Board under Agile Tab handle this situation correctly and no error thrown in log.