Skip to content

StringIndexOutOfBoundsException during repository identifying on startup #552

Description

@gitblit

Originally reported on Google Code with ID 256

What steps will reproduce the problem:
1. I have manually copied my local .git repo (2.5Gb) to Gitblit git folder
2. Gitblit was restarted
3. During Gitblit startup exception is thrown, Gitblit exits
4. If added repo is removed, Gitblit is started normally

This is a part of gitblit startup log:
 INFO  Gitblit base folder     = C:\incoming\gitblit-1.2.1\data
 INFO  Git repositories folder = C:\incoming\gitblit-1.2.1\data\git
 INFO  Gitblit settings        = C:\incoming\gitblit-1.2.1\data\gitblit.properties
 INFO  Identifying available repositories...
 Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index
out of range: 0
         at java.lang.String.charAt(String.java:686)
         at com.gitblit.utils.StringUtils.getRelativePath(StringUtils.java:334)
         at com.gitblit.utils.FileUtils.getRelativePath(FileUtils.java:248)
         at com.gitblit.GitBlit.loadRepositoryModel(GitBlit.java:1657)
         at com.gitblit.GitBlit.getRepositoryModel(GitBlit.java:1346)
         at com.gitblit.GitBlit.getRepositoryList(GitBlit.java:1203)
         at com.gitblit.GitBlit.configureContext(GitBlit.java:3065)
         at com.gitblit.GitBlitServer.start(GitBlitServer.java:382)
         at com.gitblit.GitBlitServer.main(GitBlitServer.java:120)
         at com.gitblit.Launcher.main(Launcher.java:103)

Reported by micheal.zub on 2013-06-18 19:07:46

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions