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
Problem with server.contextPath and grouped repositories -> The requested URL /contextname/summary/groupname/reponame.git was not found on this server.
#405
Closed
gitblit opened this issue
Aug 12, 2015
· 3 comments
What steps will reproduce the problem?
1.
in gitblit.properties set
server.contextPath =
to something different then "/"
e.g.:
server.contextPath = /gitblit
2.
create a grouped repository
e.g:
myproj/myrepo
3.
push some data to it
4.
try to display the summary of the repo by clicking on it
in the gitblit webinterface.
What is the expected output? What do you see instead?
I would expect to view the history and branches etc.
instead i see an apache error page:
Not Found
The requested URL /gitblit/summary/myproj/myrepo.git was not found on this server.
Apache/2.2.16 (Debian) Server at marvin Port 443
What version of the product are you using? On what operating system?
gitblit 1.0.0
jdk 1.7.0.5
Debian GNU/Linux (squeeze)
Please provide any additional information below.
I'm using apache https and ajp
Everything works flawless with a ungrouped repository (group: main).
But the combination of server.contextPath and grouped repository results in this problem.
Reported by kosta.grails on 2012-07-16 13:29:08
The text was updated successfully, but these errors were encountered:
The problem is that Apache takes urls which should look like this:
http://localhost/gitblit/summary/myproj%2Fmyrepo.git
and "helps" us by re-encoding the url like this:
http://localhost/gitblit/summary/myproj/myrepo.git
This behavior breaks Wicket - the underlying web framework used by Gitblit. I have
seen several Apache config options which indicate that they disable this behavior,
but I have not found any combination that actually works as described.
For now the solution is either:
1. Set web.mountParameters = false
2. Set web.forwardSlashCharacter = !
Originally reported on Google Code with ID 109
Reported by
kosta.grails
on 2012-07-16 13:29:08The text was updated successfully, but these errors were encountered: