I got the gitblit plugin 2.8 SNAPSHOT working with Gerrit 2.6 rc3. However I have an issue with the change with web.otherUrls which is now inherited from gerrit.config since the commit "e8ea1e076f31fe89b27e4a5eb377f08d515c3bf5" on May 9th. We used to have this value to add clone locations on other gerrit mirrors in the previous version for the plugin properties:
Here below my gerrit config file, when I added other mirrors to SSHD section of Gerrit Config, but it seems to me that it gets the first one and rest of entries are ignored.
[sshd]
listenAddress = *:29418
listenAddress = gerritmirror1*:29418
listenAddress = gerritmirror2*:29418
listenAddress = gerritmirror3*:29418
[httpd]
requestLog = true
However still the the shown URLs are just SSHD and HTTPD
Repository URLs:
I spotted in the below code the following snippet where I think it adds only the SSHD and HTTPD URLs and there is no place for adding additional URLs representing the mirror clone URLs.
I would suggest to modify this part of the code to concatenate SSHD and HTTPD URLs to the existing web.otherUrls defined in the properties of gitblit (if it defined in the properties file).
I appreciate your feedback and suggestions on this issue with web.otherURLs
Thanks and Regards
Bassem Rabil
src/main/java/com/googlesource/gerrit/plugins/gitblit/GerritWicketFilter.java (Line 97-98)
--------------------------------------------------------------------------------------------------
83 public void init(FilterConfig filterConfig) throws ServletException {
84 showGitBlitBanner();
85
86 try {
87 InputStream resin =
88 getClass().getResourceAsStream(GITBLIT_GERRIT_PROPERTIES);
89 Properties properties = null;
90 try {
91 properties = new Properties();
92 properties.load(resin);
93 properties.put("git.repositoriesFolder", repoManager.getBasePath()
94 .getAbsolutePath());
95 properties.put("realm.userService",
96 GerritToGitBlitUserService.class.getName());
97 properties.put("web.otherUrls",
98 (config.getGitHttpUrl() + " " + config.getGitSshUrl()).trim());
99 } finally {
100 resin.close();
101 }
102 IStoredSettings settings = new GitBlitSettings(properties);
103 GitBlit.self().configureContext(settings, repoManager.getBasePath(),
104 false);
105 GitBlit.self().contextInitialized(
106 new ServletContextEvent(filterConfig.getServletContext()));
107 super.init(new CustomFilterConfig(filterConfig));
108 } catch (Exception e) {
109 throw new ServletException(e);
110 }
111 }
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
.