gitblit-org / gitblit

pure java git solution
http://gitblit.com
Apache License 2.0
2.27k stars 671 forks source link

Internal Error in "My tickets" #1376

Open TomaszSzt opened 2 years ago

TomaszSzt commented 2 years ago

In some cases, in fact in both my servers, after some time "mytickets" page returns "Internal Error" for some users.

The logs do show NullPointerException at:

/src/main/java/com/gitblit/wicket/pages/MyTicketsPage.java (....) private List correspondingRepositories(Collection tickets) { final HashMap<String, RepositoryModel> result = new HashMap<>(); for (QueryResult ticket : tickets) { RepositoryModel repository = app().repositories().getRepositoryModel(ticket.repository); HERE if (!result.containsKey(repository.getRID())) { result.put(repository.getRID(), repository); } }

    return new ArrayList<>(result.values());
}

(...)

Steps to reproduce:

I couldn't figure it out. I wiped out lucene index in data/tickets/lucene what cleared the InternalError but also cleared the tickes. See next issue.

TomaszSzt commented 2 years ago

Running reindexing script and properly assigning user rights to created index files solves the problem till next time. I will provide more data when this will happen again.