Referring to non-main repositories in comments
Added by Adham Abozaeid over 10 years ago
I have a project with two repositories defined (say repo_1 and repo_2). They both are connected and shows in the activity tab with no problems.
However, I can only refer to one of them in comments.
According to the text formatting guide http://www.redmine.org/projects/redmine/wiki/RedmineTextFormatting
i'm using
source:file_name
and it goes to !http://<my_server>/projects/<my_project>/repository/entry/file_name successfully
If I used
source:repo_2|file_name
it goes to !http://<my_server>/projects/<my_project>/repository/entry/repo_2%7Cfile_name
with 404 error "The entry or revision was not found in the repository."
Same happens when i try to refer to repo_1 like
source:repo_1|file_name
I can access repo_2 through URL
!http://<my_server>/projects/<my_project>/repository/repo_2/file_name
I thought it might be a problem of the "|" character that converts to "%7C" in the URl, so I tried
source:repo_2/file_name
which generated URL !http://<my_server>/projects/<my_project>/repository/entry/repo_2/file_name
but still gets 404 error. The only difference between this URL and the one that works (!http://<my_server>/projects/<my_project>/repository/repo_2/file_name) is the extra "entry/"
Am i missing something, or are the generated URLs not correct?
N.B. I'm usin redmine version 2.1.4 running on a windows server.
Replies (2)
RE: Referring to non-main repositories in comments
-
Added by Martin Denizet (redmine.org team member) over 10 years ago
Hello Adham,
I tested on the oldest Redmine instance I had around(1.4.3), it worked as expected with, for main repo:
source:init.rb
For the secondary repo:
source:secondary|init.rb
I've no idea what is to blame in your setup,
Cheers,
RE: Referring to non-main repositories in comments
-
Added by Adham Abozaeid over 10 years ago
Hi Martin
Thanks for your reply. maybe it's a problem with this specific version of redmine.
Can you send me the URL generated in both cases from the two comments you included in your example?
I think it's either that the text formatting generates a wrong URL, or the URL doesn't exist for some other reason