Skip to content

PagesServlet cannot enter in more than one directoy level on file list view #707

Description

@gitblit

Originally reported on Google Code with ID 411

CONTEXT:
release: 1.5.0
Jetty/GO deployment

TESTCASE:
1. Create a gh-pages branches in a git repository
2. create/commit/push a directory tree like : mydir/mysubdir1/mysubdir2 and put some
files in mysubdir2
3. clic on pages, you see mydir1 in an simple file list
4. clic on it, you see mysubdir1, but the URL behind is wrong, if you clic on, page
is empty.

EXPECTED:
clicking on mysubdir1 must display a list with mysubdir2
clicking on mysubdir2 must display a list of mysubdir2 content

INDICATION:

URLS on directories must terminate by a trailing / on directory list pages to have
correct browser naviagtion.

PagesServlet must be modified to:
- add this triling slash on entries of directory type (TREE)
- do not make the list with "repository" variable but "res" variable which as not the
trailing slash comming from request.

=> very simple to fix.

Reported by olivier.rouits on 2014-04-23 14:50:39

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions