•  
      request #12835 Downloading a LFS file via the web UI download URL on a deleted repository crashes
    Infos
    #12835
    Thomas Gerbet (tgerbet)
    2019-03-05 10:00
    2019-01-25 16:33
    13679
    Details
    Downloading a LFS file via the web UI download URL on a deleted repository crashes
    Git LFS objects can be downloaded in the web UI via a dedicated link.

    If you share this link and the repository is deleted, a fatal error will be generated.

    The error should be gracefully handled and a PHP fatal error should not be generated.


    Trace:
    ( ! ) Fatal error: Uncaught Error: Call to a member function userCanRead() on null in /usr/share/tuleap/plugins/gitlfs/include/Download/FileDownloaderController.php on line 92
    ( ! ) Error: Call to a member function userCanRead() on null in /usr/share/tuleap/plugins/gitlfs/include/Download/FileDownloaderController.php on line 92
    Call Stack
    # Time Memory Function Location
    1 0.0049 399192 {main}( ) .../index.php:0
    2 0.0542 2481352 Tuleap\Request\FrontRouter->route( ??? ) .../index.php:45
    3 0.1165 5873432 Tuleap\GitLFS\Download\FileDownloaderController->process( ???, ???, ??? ) .../FrontRouter.php:106
    SCM/Git
    10.9
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2019-03-05
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    Integrated into Tuleap 10.11.99.41

    • Status changed from Under review to Closed
    • Connected artifacts
    • Close date set to 2019-03-05