Mercurial repository root address gives 500 error

Issue #161 resolved
Roman Tekhov (personal) created an issue

Currently it is not possible to access the repository root address in browser, i.e., [SCM_URL]/hg in browser. The reason is that SCM-manager always assumes that the concrete repo name is present in the URL. It is checked in DefaultRepositoryManager.getFromTypeAndUri and if empty then IllegalStateException is thrown. Full stack trace is attached.

Is it possible to show something more friendly if a user goes to the root address? Some possible solutions:

Show the repository listing of those repositories that the user has permissions for (that would be the best solution).

Redirect to SCM_URL.

Show some informative message that explains that you should go to a concrete repository URL and has a link to SCM_URL.

Comments (4)

  1. Roman Tekhov (personal) reporter

    Now it shows the list of repositories that the user has permissions for (+ public repositories). Thanks!

  2. Log in to comment