Skip to content

NullPointer on inaccessible directories while searchRepositoriesSubfolders is true #347

Description

@gitblit

Originally reported on Google Code with ID 51

What steps will reproduce the problem?
1. Configure gitblit to search repositories in subfolders
2. Create an inaccessible folder inside the repositoriesFolder
3. Start and try to browse.

It handles in this case a 'lost+found' folder owned by root. But it can be any folder
(just create a folder and chmod it to 000).

What is the expected output? What do you see instead?

ERROR Can't instantiate page using constructor public com.gitblit.wicket.pages.RepositoriesPage()
org.apache.wicket.WicketRuntimeException: Can't instantiate page using constructor
public com.gitblit.wicket.pages.RepositoriesPage()
....
Caused by: java.lang.NullPointerException
        at com.gitblit.utils.JGitUtils.getRepositoryList(JGitUtils.java:329)
        at com.gitblit.utils.JGitUtils.getRepositoryList(JGitUtils.java:345)
        at com.gitblit.utils.JGitUtils.getRepositoryList(JGitUtils.java:306)
        at com.gitblit.GitBlit.getRepositoryList(GitBlit.java:645)
        at com.gitblit.GitBlit.getRepositoryModels(GitBlit.java:699)
        at com.gitblit.wicket.pages.RootPage.getRepositoryFilterItems(RootPage.java:220)
        at com.gitblit.wicket.pages.RepositoriesPage.addDropDownMenus(RepositoriesPage.java:99)
        at com.gitblit.wicket.pages.RootPage.setupPage(RootPage.java:112)
        at com.gitblit.wicket.pages.RepositoriesPage.setup(RepositoriesPage.java:61)
        at com.gitblit.wicket.pages.RepositoriesPage.<init>(RepositoriesPage.java:47)
        ... 37 more

What version of the product are you using? On what operating system?

Version 0.8.2 GO version on Linux.

Please provide any additional information below.


Reported by lemval on 2012-01-30 14:09:51

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