•  
      request #12481 Calling REST routes git/{id}/(files|branches|tags) when a repository is being created gives an error
    Infos
    #12481
    Thomas Gerbet (tgerbet)
    2018-12-11 13:37
    2018-11-02 11:03
    13187
    Details
    Calling REST routes git/{id}/(files|branches|tags) when a repository is being created gives an error
    These REST routes should not crash, this case should be properly managed.

    Trace:
    Unhandled exception: in_creation.git is not a directory:
    #0 /usr/share/tuleap/plugins/git/include/GitPHP/git/Project.php(285): Tuleap\Git\GitPHP\Project->SetProject('in_creation.git')
    #1 /usr/share/tuleap/plugins/git/include/GitPHP/git/ProjectProvider.php(32): Tuleap\Git\GitPHP\Project->__construct('/var/lib/tuleap...', 'in_creation.git')
    #2 /usr/share/tuleap/plugins/git/include/REST/v1/GitFileRepresentationFactory.php(40): Tuleap\Git\GitPHP\ProjectProvider->__construct(Object(GitRepository))
    #3 /usr/share/tuleap/plugins/git/include/REST/v1/RepositoryResource.class.php(739): Tuleap\Git\REST\v1\GitFileRepresentationFactory->getGitFileRepresentation('raaaa', 'master', Object(GitRepository))
    #4 [internal function]: Tuleap\Git\REST\v1\RepositoryResource->getFileContent(68, 'raaaa', 'master')
    #5 /usr/share/tuleap/src/vendor/luracast/restler/vendor/Luracast/Restler/Restler.php(1065): call_user_func_array(Array, Array)
    #6 /usr/share/tuleap/src/vendor/luracast/restler/vendor/Luracast/Restler/Restler.php(304): Luracast\Restler\Restler->call()
    #7 /usr/share/tuleap/src/www/api/index.php(120): Luracast\Restler\Restler->handle()
    #8 {main}
    SCM/Git
    10.6
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2018-12-11
    Attachments
    Empty
    References

    Follow-ups