Skip to content

bug generating history for git repos with symlink to itself #1315

@ilovemaui

Description

@ilovemaui

I have noticed with the new Opengrok-0.13-rc5 a bug generating history for some git repos. It seems to be happening for git repos that have a symlink in them. here is a example error:

Dec 29, 2016 6:18:11 PM org.opensolaris.opengrok.history.HistoryGuru createCache
WARNING: An error occured while creating cache for mydir (GitRepository)
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.String.substring(String.java:1931)
        at org.opensolaris.opengrok.history.FileHistoryCache.isRenamedFile(FileH
istoryCache.java:141)
        at org.opensolaris.opengrok.history.FileHistoryCache.store(FileHistoryCa
che.java:394)
        at org.opensolaris.opengrok.history.Repository.createCache(Repository.ja
va:337)
        at org.opensolaris.opengrok.history.HistoryGuru.createCache(HistoryGuru.
java:509)
        at org.opensolaris.opengrok.history.HistoryGuru.access$000(HistoryGuru.j
ava:54)
        at org.opensolaris.opengrok.history.HistoryGuru$1.run(HistoryGuru.java:5
60)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:51
1)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:617)
        at java.lang.Thread.run(Thread.java:745)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions