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

Gitweb links broken #33

Open
pvinas-novetta opened this issue Mar 13, 2015 · 5 comments
Open

Gitweb links broken #33

pvinas-novetta opened this issue Mar 13, 2015 · 5 comments

Comments

@pvinas-novetta
Copy link

In the Build Summary tab, the gitweb links to the commits are broken - it is generating links like "https://gerrit1:8443/gitweb/?p=devrepo/repo.git;a=commit; h=7e384362c24d121e0c9ba20e8b48cc6006e8c13b" (notice the extraneous slash between gitweb and ?p). I've verified that I didn't do something silly like add a trailing slash in the gitweb URL in the plan config. Is anyone else seeing this issue? This is with Bamboo 5.7.2 and gReview 1.4.4.1

@onepremise
Copy link
Owner

Hi @patrickvinas,

Looking into the issue. What happens if you manually copy and paste the url in the browser? does it resolve? I see the same format in our URLs. However, the link resolves and shows the changes in gitweb. Ex:

https://gitweb.mysite.com/?p=arch;a=blob;f=src/java/com/mysite/test/features/stuff/ui/dialog/mysite.java;hb=8d5b365cea5099a7e5862bd8783edf34b1068346

If I remove the slash, chrome will add it back when i enter the selected url without it. Are you proxying through apache? Judging by the port, you're running directly from tomcat? Could it possible be a context path/docbase setting in your server.xml?

@pvinas-novetta
Copy link
Author

If I copy and paste into the browser, it gives a 404 error. The commit
message only loads if I remove the slash between the page name (gitweb) and the
query string (?p=...) . We're not using a proxy currently, running directly from the
in-built gerrit webserver (not tomcat, so no server.xml).

In your example the query string starts immediately after the hostname and so requires a slash. Our path includes a page name before the query string, which, if I recall correctly, would not require a slash (or perhaps explicitly requires there to not be a slash).

@scholarsmate
Copy link

I'm seeing the same exact issue. I tried removing gitweb suffix from the URL and putting it as the Repository Path, but that didn't do anything that I can see.

@onepremise
Copy link
Owner

Hi scholarsmate, does the same URL work in the browser? What is the difference between the URL that works in the browser and the link provided from Bamboo?

@vrtareg
Copy link

vrtareg commented Feb 7, 2018

I don't think that it is necessary to have / before query string.
It should work without the traling slash too.
Some of the versions of gitweb does not like that some just ignoring and removing ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants