Skip to content

Search Box (from a nested Repository) doesn't work within Tomcat #407

Description

@gitblit

Originally reported on Google Code with ID 111

What steps will reproduce the problem?
1. Install gitblit on Tomcat (with context of /gitblit)
1b. I'm using ALLOW_ENCODED_SLASH=true
2. Pick a nested repository (e.g. repos/MyRepo.git)
3. Go into that Repository, and execute any search

What is the expected output? What do you see instead?
It should forward to the proper Search page.  However, wicket is redirecting to something
like http://localhost:8080/gitblit/summary/lucene/?s=john&r=repos/MyRepo.git&st=COMMIT

Notice summary is still in the path.

Debugging through wicket, the redirect URL is ../lucene... but should be ../../lucene.

I've only seen this issue with nested repositories, on tomcat.  I've tried with repositories
on "main" on tomcat, it's fine.  I've tested with nested repositories on GitBlit Go
and it seems fine as well.

What version of the product are you using? On what operating system?
1.0.0 on Tomcat on windows or linux

I'm attempting to find a solution, but my knowledge of Wicket is minimal.  Please assist.

Reported by johnedc on 2012-07-20 16:02:40

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions