•  
      request #40102 Project creation from ART fail when it does not come from Tuleap template
    Infos
    #40102
    Marie Ange Garnier (marieange)
    2024-10-30 16:48
    2024-10-24 17:03
    41728
    Details
    Project creation from ART fail when it does not come from Tuleap template

    How to reproduce Create a project from issue template In service go activate Program management service

    Do not configure anything

    Use the project as template to create a new project, a fatal error will be raised

    <b>Fatal error</b>
    :  Uncaught TypeError: Tuleap\ProgramManagement\Domain\Program\Plan\PlanConfiguration::fromRaw(): Argument #2 ($program_increment_tracker_id) must be of type int, null given, called in /usr/share/tuleap/plugins/program_management/include/Adapter/Program/Plan/PlanConfigurationDAO.php on line 255 and defined in /usr/share/tuleap/plugins/program_management/include/Domain/Program/Plan/PlanConfiguration.php:61
    Stack trace:
    #0 /usr/share/tuleap/plugins/program_management/include/Adapter/Program/Plan/PlanConfigurationDAO.php(255): Tuleap\ProgramManagement\Domain\Program\Plan\PlanConfiguration::fromRaw()
    #1 /usr/share/tuleap/plugins/program_management/include/Domain/Program/Plan/Inheritance/PlanInheritanceHandler.php(46): Tuleap\ProgramManagement\Adapter\Program\Plan\PlanConfigurationDAO-&gt;retrievePlan()
    #2 /usr/share/tuleap/plugins/program_management/include/Adapter/Events/TrackersDuplicatedHandler.php(66): Tuleap\ProgramManagement\Domain\Program\Plan\Inheritance\PlanInheritanceHandler-&gt;handle()
    #3 /usr/share/tuleap/src/common/Option/Option.php(91): Tuleap\ProgramManagement\Adapter\Events\TrackersDuplicatedHandler-&gt;Tuleap\ProgramManagement\Adapter\Events\{closure}()
    #4 /usr/share/tuleap/plugins/program_management/include/Adapter/Events/TrackersDuplicatedHandler.php(65): Tuleap\Option\Option-&gt;apply()
    #5 /usr/share/tuleap/plugins/program_management/include/program_managementPlugin.php(1667): Tuleap\ProgramManagement\Adapter\Events\TrackersDuplicatedHandler-&gt;handle()
    #6 /usr/share/tuleap/src/common/Event/EventManager.class.php(128): program_managementPlugin-&gt;handleTrackersInheritance()
    #7 /usr/share/tuleap/src/common/Plugin/PluginLoader.php(72): EventManager-&gt;eventManagerDispatch()
    #8 /usr/share/tuleap/src/common/Event/EventManager.class.php(117): Tuleap\Plugin\PluginLoader-&gt;Tuleap\Plugin\{closure}()
    #9 /usr/share/tuleap/src/common/Event/EventManager.class.php(147): EventManager-&gt;processEventOnListener()
    #10 /usr/share/tuleap/plugins/tracker/include/Tracker/TrackerFactory.class.php(614): EventManager-&gt;dispatch()
    #11 /usr/share/tuleap/plugins/tracker/include/Tracker/TrackerManager.class.php(713): TrackerFactory-&gt;duplicate()
    #12 /usr/share/tuleap/plugins/tracker/include/trackerPlugin.php(708): TrackerManager-&gt;duplicate()
    
    Program Management
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Marie Ange Garnier (marieange)
    Closed
    2024-10-30
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    • Summary
      -Project creation from ART fail when it does not come from uleap template 
      +Project creation from ART fail when it does not come from Tuleap template