•  
      request #31067 Cardwall renderer fatal error when `type` is not a selectbox
    Infos
    #31067
    Manuel Vacelet (vaceletm)
    2023-02-15 17:17
    2023-02-15 14:31
    32672
    Details
    Cardwall renderer fatal error when `type` is not a selectbox
    • Given a tracker with a column name type
    • When a cardwall renderer is used to render artifact
    • Then a fatal error is thrown due to type mismatch.
    • Expected: no fatal error, renderer displayed.

    Workaround: rename the column

    2023/02/14 14:55:36 [error] 44952#44952: *6469 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught TypeError: Tracker_FormElementFactory::getUsedFieldByNameForUser(): Return value must be of type ?Tracker_FormElement_Field, Tracker_FormElement_Container_Column returned in /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElementFactory.php:351
    Stack trace:
    #0 /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElementFactory.php(426): Tracker_FormElementFactory->getUsedFieldByNameForUser()
    #1 /usr/share/tuleap/plugins/cardwall/include/Cardwall/AccentColor/AccentColorBuilder.php(56): Tracker_FormElementFactory->getSelectboxFieldByNameForUser()
    #2 /usr/share/tuleap/plugins/cardwall/include/CardInCellPresenterBuilder.class.php(90): Tuleap\Cardwall\AccentColor\AccentColorBuilder->build()
    #3 /usr/share/tuleap/plugins/cardwall/include/CardInCellPresenterBuilder.class.php(70): Cardwall_CardInCellPresenterBuilder->getCardPresenter()
    #4 /usr/share/tuleap/plugins/cardwall/include/RendererBoardBuilder.class.php(64): Card" while reading response header from upstream request: "GET /plugins/tracker/?tracker=539 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000"
    
    Trackers
    14.4
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Manuel Vacelet (vaceletm)
    Closed
    2023-02-15
    Attachments
    Empty
    References

    Follow-ups