MantisBT - CDash
View Issue Details
0013079CDash(No Category)public2012-03-30 09:232012-04-05 05:12
Nils Gladitz 
Julien Jomier 
normalmajoralways
closedfixed 
2.0 
2.2 
0013079: Test attachment links broken when a test fails
I've attached a log file to my test with ATTACHED_FILES_ON_FAIL which I can not access via the CDash link since it seems to point at "Exit Value.tgz".

"Exit Value" only seems to be reported on test failure and offsets the indices ("fileid" in the download URL) of my manual attachments by 1.
No tags attached.
bz2 playground.tar.bz2 (885) 2012-04-01 13:26
https://public.kitware.com/Bug/file/4277/playground.tar.bz2
xml Test.xml (3,510) 2012-04-01 13:26
https://public.kitware.com/Bug/file/4278/Test.xml
Issue History
2012-03-30 09:23Nils GladitzNew Issue
2012-04-01 11:18Julien JomierNote Added: 0029029
2012-04-01 13:26Nils GladitzFile Added: playground.tar.bz2
2012-04-01 13:26Nils GladitzFile Added: Test.xml
2012-04-01 13:30Nils GladitzNote Added: 0029030
2012-04-01 13:38Nils GladitzNote Added: 0029031
2012-04-04 08:48Julien JomierAssigned To => Julien Jomier
2012-04-04 08:48Julien JomierStatusnew => assigned
2012-04-04 08:50Julien JomierNote Added: 0029075
2012-04-04 08:50Julien JomierStatusassigned => resolved
2012-04-04 08:50Julien JomierFixed in Version => 2.2
2012-04-04 08:50Julien JomierResolutionopen => fixed
2012-04-05 05:12Nils GladitzNote Added: 0029082
2012-04-05 05:12Nils GladitzStatusresolved => closed

Notes
(0029029)
Julien Jomier   
2012-04-01 11:18   
Can you submit the test.xml you are submitting? Thanks.
(0029030)
Nils Gladitz   
2012-04-01 13:30   
I've setup a local CDash instance and minimalistic project with two tests (one failing, one succeeding) that reproduces the problem for me.

"playground.tar.bz2" contains the project itself.
I also attached a Test.xml that corresponds to a scheduled run of that project.
(0029031)
Nils Gladitz   
2012-04-01 13:38   
The test details on the dashboard of that run look something like this:

test1 (Passed):
 [always_attach.txt] http://[...]&fileid=1 [^] <- works as expected

test2 (Failed):
 [Exit Value]
 [always_attach.txt] http://[...]&fileid=1 [^] <- link to "Exit Value.tgz" (0 bytes)
 [attach_on_fail.txt] http://[...]&fileid=2 [^] <- link to "always_attach.txt.tgz"
(0029075)
Julien Jomier   
2012-04-04 08:50   
Fixed in the 2.0 branch and trunk. Thanks a lot for the report and providing the examples!
(0029082)
Nils Gladitz   
2012-04-05 05:12   
Thanks for the quick fix!