•  
      request #24155 Generating the content of a burndown or a burnup fails when the duration is set to 0
    Infos
    #24155
    Thomas Gerbet (tgerbet)
    2021-11-19 10:18
    2021-11-18 13:59
    25699
    Details
    Generating the content of a burndown or a burnup fails when the duration is set to 0

    Reproduction steps:

    1. Go to a tracker with a burndown based on a duration field
    2. Create an artifact with a start date and set the duration to 0

    The system event will stay in the running state because of a hard crash.

    Trace:

    [error] [SystemEventProcessor] An error happened during execution of post actions: Unable to run command "/usr/bin/tuleap process-system-events app" (error code: 255): PHP Fatal error:  Uncaught TypeError: TimePeriodWithoutWeekEnd::buildFromEndDate(): Argument #2 ($end_date) must be of type ?int, string given, called in /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/SystemEvent/SystemEvent_BURNDOWN_GENERATE.php on line 138 and defined in /usr/share/tuleap/src/common/date/TimePeriodWithoutWeekEnd.class.php:72
    Stack trace:
    #0 /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/SystemEvent/SystemEvent_BURNDOWN_GENERATE.php(138): TimePeriodWithoutWeekEnd::buildFromEndDate()
    #1 /usr/share/tuleap/src/common/system_event/SystemEventProcessor.class.php(108): Tuleap\Tracker\FormElement\SystemEvent\SystemEvent_BURNDOWN_GENERATE->process()
    #2 /usr/share/tuleap/src/common/system_event/SystemEventProcessor.class.php(87): SystemEventProcessor->executeSystemEvent()
    #3 /usr/share/tuleap/src/common/system_event/SystemEventProcessor.class.php(68): SystemEventProcessor->loopOverEventsForOwner()
    #4 /usr/share/tuleap/src/common/system_event/SystemEventProcessorMutex.class.php(62): SystemEventProcessor->execute()
    #5 /usr/share/tuleap/src/common/CLI/Command/ProcessSystemEventsCommand.php(81): SystemEventProcessorMutex->execute()
    #6 /usr/share/tuleap/src/vendor/symfony/console/Command/Command.php(299): Tuleap\CLI\Command\ProcessSystemEventsCommand->execute()
    #7 /usr/share/tuleap/src/vendor/symfony/console/Application.php(978): Symfony\Component\Console\Command\Command->run()
    #8 /usr/share/tuleap/src/vendor/symfony/console/Application.php(295): Symfony\Component\Console\Application->doRunCommand()
    #9 /usr/share/tuleap/src/common/CLI/Application.php(75): Symfony\Component\Console\Application->doRun()
    #10 /usr/share/tuleap/src/vendor/symfony/console/Application.php(167): Tuleap\CLI\Application->doRun()
    #11 /usr/share/tuleap/src/utils/tuleap.php(280): Symfony\Component\Console\Application->run()
    #12 {main}
      thrown in /usr/share/tuleap/src/common/date/TimePeriodWithoutWeekEnd.class.php on line 72
    
    Trackers
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2021-11-19
    Attachments
    Empty
    References

    Follow-ups

    User avatar

    integrated to Tuleap 13.2.99.43


    • Status changed from Under review to Closed
    • Connected artifacts
    • Close date set to 2021-11-19