•  
      request #13099 Webhook at project activation can crash if no administrators has been choosen
    Infos
    #13099
    Thomas Gerbet (tgerbet)
    2019-03-11 10:45
    2019-03-08 17:43
    13966
    Details
    Webhook at project activation can crash if no administrators has been choosen
    If a project is activated without any administrators, the activation can crash.
    The issue has been observed in production environment on some old, likely corrupted, project. In any case, the crash should not happen. All the other activation steps works fine with the same context.



    Trace:
    WARNING: [pool tuleap] child 660 said into stderr: "NOTICE: PHP message: PHP Notice: Undefined offset: 0 in /usr/share/tuleap/src/common/project/Webhook/ProjectCreatedPayload.php on line 63"
    WARNING: [pool tuleap] child 660 said into stderr: "NOTICE: PHP message: PHP Fatal error: Uncaught Error: Call to a member function getId() on null in /usr/share/tuleap/src/common/project/Webhook/ProjectCreatedPayload.php:47"
    WARNING: [pool tuleap] child 660 said into stderr: "#0 /usr/share/tuleap/src/common/project/Webhook/ProjectCreatedPayload.php(34): Tuleap\Project\Webhook\ProjectCreatedPayload->buildPayload(Object(Project), 1548402935)"
    WARNING: [pool tuleap] child 660 said into stderr: " thrown in /usr/share/tuleap/src/common/project/Webhook/ProjectCreatedPayload.php on line 47"
    Project admin
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2019-03-11
    Attachments
    Empty
    References

    Follow-ups