Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web.mountParameters doesn't work after the git source tree directory more than 2 sub folders #340

Closed
gitblit opened this issue Aug 12, 2015 · 9 comments

Comments

@gitblit
Copy link
Collaborator

gitblit commented Aug 12, 2015

Originally reported on Google Code with ID 44

web.mountParameters doesn't work after the git source directory more than 2 sub folders.
If more than 2 sub folders in git source, the page can't display.
url like: /tree/something.git/340d2391165b6899c73e24b42a48393fa621ec37/src%2Fcom
the normal directory tree is:
something.git/src/com/some/...
The browser can't enter the com folder. When I set web.mountParameters to false, It
works.

Reported by luzhyong on 2012-01-17 05:35:11

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

Are you running the GO build or the WAR build?  If you are running the WAR build, what
servlet container are you using?  What operating system?  Are you running Gitblit behind
a proxy?

Reported by James.Moger on 2012-01-17 12:33:38

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

My Enviroment are the following:
CentOS 6.0 Final
Running WAR build
Apach tomcat 7.0.23

I'm not running gitblit behind a proxy, just visit the tomcat service 

Reported by luzhyong on 2012-01-17 13:24:45

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

Ok.  Please review the FAQ about Tomcat; Tomcat is almost definitely disallowing embedded
forward-slashes.

Reported by James.Moger on 2012-01-17 13:55:51

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

Here is the link: http://gitblit.com/faq.html

Reported by James.Moger on 2012-01-17 13:56:47

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

Thanks for you reply, sorry that i didn't read carefully about the FAQ

Reported by luzhyong on 2012-01-17 17:35:25

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

I will assume that everything is working.  Reopen the issue if that is incorrect.

Reported by James.Moger on 2012-01-19 13:24:11

  • Status changed: WontFix
  • Labels added: Milestone-0.8.2

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

Yeah, your solution is correct. Please close this problem. BTW, the tomcat opts you
metions doesn't work in tomcat 7.0.23. So I choose use ! to seperate the url. If you
have time, please run war in tomcat 7.0.23 with the tomcat opts you metioned in FAQ

Reported by luzhyong on 2012-01-19 13:41:49

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

I just retested on 7.0.23 (I will assume .24 is not different).
Works fine.

This is how I launched Tomcat:

set JAVA_HOME="c:\progra~1\java\jdk1.6.0_26"
set JAVA_OPTS=-Xmx1024M -server -Dcom.sun.management.jmxremote.port=8888 -Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true
bin\startup.bat

Reported by James.Moger on 2012-01-19 13:49:45

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

Update: I meant I ran on .22, and I assume .23 is not different.

Reported by James.Moger on 2012-01-19 13:50:41

@gitblit gitblit closed this as completed Aug 12, 2015
@flaix flaix modified the milestone: 0.8.2 Dec 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants