•  
      request #25731 Showing diff of a field of a changeset in the followups lead to 500 when not logged in
    Infos
    #25731
    Benjamin Dauton (bdauton_enalean)
    2022-03-31 11:05
    2022-03-25 14:48
    27263
    Details
    Showing diff of a field of a changeset in the followups lead to 500 when not logged in

    On tuleap.net, when I'm not logged in and I try to show the diff of the acceptance criteria of a story for example, a 500 is raised.

    Trackers
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Verified
    Empty
    Attachments
    References
    Referencing request #25731
    Referenced by request #25731

    Follow-ups

    User avatar
    Thomas Gerbet (tgerbet)2022-03-31 09:02

    This one seems to be quite recent (likely due to a refactoring in the tracker plugin codebase) and is quite noisy in the logs of this instance:

    Trace:

    2022/03/31 08:59:13 [error] 5505#5505: *11500 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught TypeError: Tuleap\Tracker\Artifact\Changeset\NewChangesetCreator::validateNewChangeset(): Argument #2 ($email) must be of type ?string, bool given, called in /usr/share/tuleap/plugins/tracker/include/Tracker/Artifact/Changeset/NewChangesetCreator.php on line 86 and defined in /usr/share/tuleap/plugins/tracker/include/Tracker/Artifact/Changeset/NewChangesetCreator.php:220#012Stack trace:#012#0 /usr/share/tuleap/plugins/tracker/include/Tracker/Artifact/Changeset/NewChangesetCreator.php(86): Tuleap\Tracker\Artifact\Changeset\NewChangesetCreator->validateNewChangeset()#012#1 /usr/share/tuleap/src/vendor/paragonie/easydb/src/EasyDB.php(1263): Tuleap\Tracker\Artifact\Changeset\NewChangesetCreator->Tuleap\Tracker\Artifact\Changeset\{closure}()#012#2 /usr/share/tuleap/src/common/DB/DBTransactionExecutorWithConnection.php(44): ParagonIE\EasyDB\EasyDB->tryFlatTransaction()#012#3 /usr/share/tuleap/plugins/tracker/include/Tracker/Artifact/Changeset/NewChangesetCreator.php(157): Tuleap" while reading response header from upstream, client: 185.191.171.16, server: tuleap.net, request: "GET /plugins/tracker/?aid=89&func=artifact-update HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "tuleap.net"