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

Clicking on a file in a commit shows an empty page #322

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

Clicking on a file in a commit shows an empty page #322

gitblit opened this issue Aug 12, 2015 · 3 comments

Comments

@gitblit
Copy link
Collaborator

gitblit commented Aug 12, 2015

Originally reported on Google Code with ID 26

What steps will reproduce the problem?

1. Go to summary page of a repository
2. Click a commit
3. Click on a file contained in the commit

What is the expected output? What do you see instead?

A blank page is shown instead of the file content

What version of the product are you using? On what operating system?

gitblit 0.6.0 on tomcat 6.0.33
Mac OS X 10.6.8



Reported by baumgart1080 on 2011-10-17 16:03:58

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

Hmm.  This is pretty basic functionality which does work.  I'll need more information
to understand why its not working for you.  Maybe consult the catalina log files.

Reported by James.Moger on 2011-10-17 16:08:30

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

I could fix the problem by changing my web.xml

    <context-param>
        <param-name>web.forwardSlashCharacter</param-name>
        <param-value>!</param-value>
    </context-param>

Reported by baumgart1080 on 2011-10-18 10:59:18

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

Ah.  I keep forgetting about that Tomcat security setting.  I have a similar problem
with proxies that re-encode all %2Fs as /.  Glad to hear that you are operational.


Alternatively you could tell Tomcat to allow embedded slashes or you could switch to
parameterized urls (web.mountParameters = false).

Reported by James.Moger on 2011-10-18 12:20:44

  • Status changed: Done

@gitblit gitblit closed this as completed Aug 12, 2015
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

1 participant