View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015152CDash(No Category)public2014-09-11 12:122014-09-29 09:26
Reportertrsystran 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Version2.2 
Target VersionFixed in Version 
Summary0015152: Redmine repository viewer: svn subdirectory as root creates broken URLs to diffs
DescriptionWhen using the redmine repository viewer in a cdash project, there may be a difference between what cdash/ctest has seen as root directory of the repository and what redmine has in its project repository.

This creates invalid redmine URLs to commits diffs.
Steps To Reproduce1/ root svn repo: svn+ssh://svn-host/svnroot [^]
2/ create a redmine project "redmine-project" with a repository "svn+ssh://svn-host/svnroot" [^]
3/ create a cdash project with "http://redmine-host/projects/redmine-project/repository" [^] as "Repository Viewer URL"
4/ push ctest result to cdash where the code was checkouted from "svn+ssh://svn-host/svnroot/subdir/" [^] (real life use case: "subdir" == "trunk")
5/ goto "http://cdash-host/viewUpdate.php?buildid=xxx" [^]

Result:
Several links to redmine are present:
1/ Revision: xxxx and Prior Revision: yyyy
points to "http://redmine-host/projects/redmine-project/repository/revisions/xxxx" [^]
Those links are valid.
2/ subdir Updated files (1)
      subsubdir/foo
          bar.c Revision: xxxxx by bob
points to "http://redmine-host/projects/redmine-project/repository/revisions/xxxxx/diff/subsubdir/foo/bar.c" [^]
This link is invalid.
The correct one is: "http://redmine-host/projects/redmine-project/repository/revisions/xxxxx/diff/subdir/subsubdir/foo/bar.c" [^]


Additional InformationThe missing information are:
1/ the relative svn path of the code checkout where ctest ran.
2/ the relative svn path of the redmine svn repository.

Information 1 is sent by ctest in the Update.xml:
<SVNPath>/subdir/</SVNPath>

Information 2 is in my case empty: I have the whole svn repo in redmine, so it could work without information 2.

To be fully correct we would need an additional field in the Edit Project page in cdash, but I don't personally need this.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0036854)
Julien Jomier (manager)
2014-09-23 03:31

Thanks for the report. Which version of redmine are you using?
(0036870)
trsystran (reporter)
2014-09-29 09:26

Redmine version 2.5.2.stable

 Issue History
Date Modified Username Field Change
2014-09-11 12:12 trsystran New Issue
2014-09-23 03:31 Julien Jomier Note Added: 0036854
2014-09-29 09:26 trsystran Note Added: 0036870


Copyright © 2000 - 2018 MantisBT Team