Project

General

Profile

Actions

Defect #14554

open

Diffs from subprojects return 404

Added by Vitaly vit9696 over 10 years ago. Updated about 10 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

Hello, thanks for developing Redmine. I am experiencing a bug with per-file diff and file view urls in revision pages which return 404 (not found). Let me try to explain how to reproduce it:

1) Create a project and a subproject
2) Add repositories (we are using svn) to project and subproject:
Project: svn://host/myrepository with id repository
Subproject svn://host/myrepository/folder with id sub-repository
3) Commit something into svn://host/myrepository/folder
4) Two entries appear in activity list in project and one in subproject
5) The project entry is fine but the subproject entry has wrong urls (accessing from both places) to files and diffs
http://host/redmine/projects/subproject/sub-repository/revisions/1/entry/folder/myfile.cpp
http://host/redmine/projects/subproject/sub-repository/revisions/1/diff/folder/myfile.cpp
instead of
http://host/redmine/projects/subproject/sub-repository/revisions/1/entry/myfile.cpp
http://host/redmine/projects/subproject/sub-repository/revisions/1/diff/myfile.cpp
or
http://host/redmine/projects/subproject/repository/revisions/1/entry/folder/myfile.cpp
http://host/redmine/projects/subproject/repository/revisions/1/diff/folder/myfile.cpp

Basic information about my installation:
Environment:
Redmine version 2.3.2.stable.12037
Ruby version 1.9.3-p448 (2013-06-27) [i386-darwin10]
Rails version 3.2.13
Environment production
Database adapter Mysql2
Redmine plugins:
no plugin installed
However, I was able to reproduce it on older versions too.

Actions #1

Updated by Jean-Philippe Lang over 10 years ago

Vitaly vit9696 wrote:

5) The project entry is fine but the subproject entry has wrong urls (accessing from both places) to files and diffs
http://host/redmine/projects/subproject/sub-repository/revisions/1/entry/folder/myfile.cpp
http://host/redmine/projects/subproject/sub-repository/revisions/1/diff/folder/myfile.cpp

I've created a repository in a subproject than points to a subdirectory of svn and I can't reproduce. On which page do you see these 2 links that lead to a 404?

Actions #3

Updated by Vitaly vit9696 about 10 years ago

Can be reproduced on 2.4.X branch, as it seems. Do you need any extra information to resolve this bug?

Actions

Also available in: Atom PDF