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

Cannot open the page for grouped repository #420

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

Comments

Projects
None yet
1 participant
@gitblit
Owner

gitblit commented Aug 12, 2015

Originally reported on Google Code with ID 124

What steps will reproduce the problem?
1. Create grouped repository e.g. libs/repo1.git
2. Click the link for empty repository - this works 
3. Clone repo, make first commit and push it upstream.
4. Click the link for the repo1.git

What is the expected output? What do you see instead?
Expected is to see repository summary page. I see error message "Can not load repository
libs" and displayes list of all repository.


What version of the product are you using? On what operating system?
Debian - testing, gitblit 1.1.0, gitblit behing reverse proxy - nginx.



Please provide any additional information below.

I have found in log files these interesting lines.
2012-08-29 08:55:04 GitblitParamUrlCodingStrategy [DEBUG] REQ: summary PARAMS /libs/repo1.git
2012-08-29 08:55:04 MixedParamUrlCodingStrategy [INFO] Found more URL path parts then
expected, these will be ignored. Url: 'https://XX/summary/libs/repo.git', mountpath:
'summary', urlPath: 'libs/repo1.git', expected 1 parameters was 2
2012-08-29 08:55:04 MixedParamUrlCodingStrategy [INFO] Found more URL path parts then
expected, these will be ignored. Url: 'https://XX/summary/libs/repo.git', mountpath:
'summary', urlPath: 'libs/repo1.git', expected 1 parameters was 2
2012-08-29 08:55:04 log [DEBUG] invalidate 
2012-08-29 08:55:04 log [DEBUG] new session & id 1h4tz5nslnwarqelgnuqzdr87 1h4tz5nslnwarqelgnuqzdr87
2012-08-29 08:55:04 GitBlit [ERROR] GitBlit.getRepository(String) failed to find /opt/git_repos/libs
2012-08-29 08:55:04 SummaryPage [ERROR] Can not load repository libs for userXX

Reported by siska.pe on 2012-08-29 07:00:46

@gitblit

This comment has been minimized.

Show comment
Hide comment
@gitblit

gitblit Aug 12, 2015

Owner
Since you did not specify which variant of Gitblit you are using I will assume you are
using GO. (If it is WAR on Tomcat this introduces an additional layer of complication).

Nginx is re-encoding %2F as / before it passes the url to Gitblit.  This breaks Gitblit.
 In your above example the url sent to Gitblit should be libs%2Frepo1.git.  I would
recommend either:
1. set web.forwardSlashCharacter = !
2. set web.mountParameters = false

Reported by James.Moger on 2012-08-29 12:13:50

Owner

gitblit commented Aug 12, 2015

Since you did not specify which variant of Gitblit you are using I will assume you are
using GO. (If it is WAR on Tomcat this introduces an additional layer of complication).

Nginx is re-encoding %2F as / before it passes the url to Gitblit.  This breaks Gitblit.
 In your above example the url sent to Gitblit should be libs%2Frepo1.git.  I would
recommend either:
1. set web.forwardSlashCharacter = !
2. set web.mountParameters = false

Reported by James.Moger on 2012-08-29 12:13:50

@gitblit

This comment has been minimized.

Show comment
Hide comment
@gitblit

gitblit Aug 12, 2015

Owner
Sorry I forgot to mention the variant. You assumed correct GO variant.
And of course your solution did help.

Thanks - it works.

Reported by siska.pe on 2012-08-30 05:58:24

Owner

gitblit commented Aug 12, 2015

Sorry I forgot to mention the variant. You assumed correct GO variant.
And of course your solution did help.

Thanks - it works.

Reported by siska.pe on 2012-08-30 05:58:24

@gitblit

This comment has been minimized.

Show comment
Hide comment
@gitblit

gitblit Aug 12, 2015

Owner

Reported by James.Moger on 2012-08-30 11:47:23

  • Status changed: Done
Owner

gitblit commented Aug 12, 2015

Reported by James.Moger on 2012-08-30 11:47:23

  • Status changed: Done

@gitblit gitblit closed this Aug 12, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment