You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Create grouped repository e.g. libs/repo1.git
2. Click the link for empty repository - this works
3. Clone repo, make first commit and push it upstream.
4. Click the link for the repo1.git
What is the expected output? What do you see instead?
Expected is to see repository summary page. I see error message "Can not load repository
libs" and displayes list of all repository.
What version of the product are you using? On what operating system?
Debian - testing, gitblit 1.1.0, gitblit behing reverse proxy - nginx.
Please provide any additional information below.
I have found in log files these interesting lines.
2012-08-29 08:55:04 GitblitParamUrlCodingStrategy [DEBUG] REQ: summary PARAMS /libs/repo1.git
2012-08-29 08:55:04 MixedParamUrlCodingStrategy [INFO] Found more URL path parts then
expected, these will be ignored. Url: 'https://XX/summary/libs/repo.git', mountpath:
'summary', urlPath: 'libs/repo1.git', expected 1 parameters was 2
2012-08-29 08:55:04 MixedParamUrlCodingStrategy [INFO] Found more URL path parts then
expected, these will be ignored. Url: 'https://XX/summary/libs/repo.git', mountpath:
'summary', urlPath: 'libs/repo1.git', expected 1 parameters was 2
2012-08-29 08:55:04 log [DEBUG] invalidate
2012-08-29 08:55:04 log [DEBUG] new session & id 1h4tz5nslnwarqelgnuqzdr87 1h4tz5nslnwarqelgnuqzdr87
2012-08-29 08:55:04 GitBlit [ERROR] GitBlit.getRepository(String) failed to find /opt/git_repos/libs
2012-08-29 08:55:04 SummaryPage [ERROR] Can not load repository libs for userXX
Reported by siska.pe on 2012-08-29 07:00:46
The text was updated successfully, but these errors were encountered:
Since you did not specify which variant of Gitblit you are using I will assume you are
using GO. (If it is WAR on Tomcat this introduces an additional layer of complication).
Nginx is re-encoding %2F as / before it passes the url to Gitblit. This breaks Gitblit.
In your above example the url sent to Gitblit should be libs%2Frepo1.git. I would
recommend either:
1. set web.forwardSlashCharacter = !
2. set web.mountParameters = false
Originally reported on Google Code with ID 124
Reported by
siska.pe
on 2012-08-29 07:00:46The text was updated successfully, but these errors were encountered: