1234- / gitblit

Automatically exported from code.google.com/p/gitblit
Apache License 2.0
1 stars 0 forks source link

Graph image using image link without added context #569

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use a context path for gitblit (apache proxy) and set the 
`server.contextPath = /gitblit`
2. When looking at the commit log of a repo, the graph to the left will show a 
broken image link
3. Image link will say 'server-name/graph' instead of the desired 
'server-name/gitblit/graph'

What is the expected output? What do you see instead?
I should see a working branch graph instead of a broken link.

What version of the product are you using? On what operating system?
I believe it's 1.6.2

Please provide any additional information below.
All the other links work fine, so I think it's just the graph that's broken.

Original issue reported on code.google.com by eResona...@gmail.com on 5 Mar 2015 at 5:04

GoogleCodeExporter commented 9 years ago
Same issue running the WAR file in a root context.

I have an Apache VirtualHost pointing to gitblit running on the ROOT Context of 
a Tomcat VirtualHost. 

Everything works fine, except for the graph image.

It appears to be fetching the image using the request hostname, instead of 
being relative to the context.  If I inspect the broken image in Chrome, the 
image url is in fact the proxied hostname, which is unreachable.

Original comment by magn...@gmail.com on 21 May 2015 at 10:32

GoogleCodeExporter commented 9 years ago
I'm seeing this problem in a slightly different way. In my case the context 
path is being respected, but `web.canonicalUrl` is *not* being used. I'm 
getting broken links because it's using the loopback adapter for some reason.

    http://127.0.0.1:8000/gitblit/graph/?r=training/foo.git&h=cd0364f7e95f0af8771f0df8dfb68643286e4d17&l=32

If there's a workaround, I'd be interested in hearing about it.

Original comment by fi...@datamininglab.com on 27 May 2015 at 8:24

Attachments:

GoogleCodeExporter commented 9 years ago
PS: Using version 1.6.2 from the `jmoger/gitblit` Docker image.

Original comment by fi...@datamininglab.com on 27 May 2015 at 8:25