•  
      request #19276 Fatal error on artifact when referenced git commit does not exist
    Infos
    #19276
    Nicolas Terray (nterray)
    2021-02-08 16:07
    2021-02-08 11:56
    20852
    Details
    Fatal error on artifact when referenced git commit does not exist

    In an artifact write a reference to a commit that does not exist (the wrong sha1 must have 40 chars).

    Submit and stay.

    ➡️ You get a fatal error.

    2021/02/04 10:21:03 [error] 16625#0: *46425 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: Argument 3 passed to Tuleap\Git\Reference\CommitDetailsCacheDao::saveCommitDetails() must be of the type string, null given, called in /usr/share/tuleap/plugins/git/include/Git/Reference/CommitDetailsRetriever.php on line 94 and defined in /usr/share/tuleap/plugins/git/include/Git/Reference/CommitDetailsCacheDao.php:47 Stack trace: #0 /usr/share/tuleap/plugins/git/include/Git/Reference/CommitDetailsRetriever.php(94): Tuleap\Git\Reference\CommitDetailsCacheDao->saveCommitDetails(216, '1dbda7eb20375f1...', NULL, '', '', 0, '', '', 0, '', '') #1 /usr/share/tuleap/plugins/git/include/Git/Reference/CommitDetailsRetriever.php(49): Tuleap\Git\Reference\CommitDetailsRetriever->retrieveCommitDetailsFromCommit(Object(Tuleap\Git\GitPHP\Commit), Object(GitRepository)) #2 /usr/share/tuleap/plugins/git/include/Git/Reference" while reading upstream, client: 132.167.134.254, server: codev-tuleap.cea.fr, request: "GET /plugins/tracker/?aid=19965 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "codev-tuleap.cea.fr", referrer: "https://codev-tuleap.cea.fr/plugins/tracker/?tracker=73"

    Issue introduced by git #tuleap/stable/5baac14c7e2cc13e558289228a536d728e34e3f6

    SCM/Git
    12.4
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Nicolas Terray (nterray)
    Closed
    2021-02-08
    Attachments
    Empty
    References
    Referencing request #19276
    Referenced by request #19276

    Artifact Tracker v5

    rel #18867 12.6

    Follow-ups