MantisBT - TestLink
View Issue Details
0008486TestLinkTest Case Attachmentspublic2018-11-22 15:072018-11-26 11:02
hagbard 
fman 
normalmajoralways
resolvedfixed 
GNU/Linux x86_64Debian9.6
1.9.18 (2018 Q3) 
1.9.19 (2019 Q1) 
MySQL (mariadb Ver 15.1 Distrib 10.1.37-MariaDB)
Mozilla Firefox 60.3.0esr
PHP 7.0.30-0+deb9u1
READY FOR TESTING
0008486: Testcase attachments not visible in Test Execution
As a tester i dont see any attachments in Test Execution mode, but they are visible in Test Specification mode.
1. Create a new testcase
2. Upload an attachment to that testcase
3. Go to Test Execution and select the new created testcase
4. Try to download the attachment
I compare the Smarty Debug Console output from 1.9.17 and 1.9.18 in Test Execution mode.

1.9.17 shows:
->tcAttachments = Array (1)
    4 => Array (1)
      0 => Array (13)
        id => "1"
        title => ""
        description => ""
        file_name => "testlink_execution_status.png"
        file_type => "image/png"
        file_size => "7853"
        is_image => true
        date_added => "2018-11-22 12:05:39"
        inlineString => "[tlInlineImage]1[/tlInlineImage]"
        compression_type => "1"
        file_path => "nodes_hierarchy/4/d1e3d7c6d474264ce13..."
        fk_id => "4"
        fk_table => "nodes_hierarchy"

but 1.9.18:

->tcAttachments = Array (1)
    4 => null

Same with latest git master version.

config.inc.php is all on default.
custom_config.inc.php have only:
    $tlCfg->smarty_debug = true;
    $tlCfg->exec_cfg->steps_exec_attachments = false;
No tags attached.
child of 0008397assigned fman Availables hot-fixes for 1.9.18 & How To get full fixed package from GitHub 
png 02 - 1.9.18_Test_Execution_NOK.png (184,734) 2018-11-22 15:07
http://mantis.testlink.org/file_download.php?file_id=5039&type=bug
png

png 01 - 1.9.18_Test_Specification_OK.png (201,401) 2018-11-22 15:08
http://mantis.testlink.org/file_download.php?file_id=5040&type=bug
png

png 03 - GIT_master_Test_Execution_OK.png (193,188) 2018-11-26 11:00
http://mantis.testlink.org/file_download.php?file_id=5045&type=bug
png
Issue History
2018-11-22 15:07hagbardNew Issue
2018-11-22 15:07hagbardFile Added: 02 - 1.9.18_Test_Execution_NOK.png
2018-11-22 15:08hagbardFile Added: 01 - 1.9.18_Test_Specification_OK.png
2018-11-22 19:25fmanNote Added: 0028257
2018-11-22 19:25fmanAssigned To => fman
2018-11-22 19:25fmanStatusnew => feedback
2018-11-23 11:36hagbardNote Added: 0028261
2018-11-23 11:36hagbardStatusfeedback => assigned
2018-11-23 14:56fmanNote Added: 0028262
2018-11-23 15:06hagbardNote Added: 0028263
2018-11-23 19:21fmanQA Team - Task Workflow Status => READY FOR TESTING
2018-11-23 19:21fmanNote Added: 0028264
2018-11-23 19:21fmanStatusassigned => resolved
2018-11-23 19:21fmanFixed in Version => 1.9.19 (2019 Q1)
2018-11-23 19:21fmanResolutionopen => fixed
2018-11-23 19:21fmanRelationship addedchild of 0008397
2018-11-26 11:00hagbardFile Added: 03 - GIT_master_Test_Execution_OK.png
2018-11-26 11:02hagbardNote Added: 0028272

Notes
(0028257)
fman   
2018-11-22 19:25   
1) Please get latest code from github, do fresh install , retest and provide feedback.


2) Test Case Attachment has been refactored to be Test Case Version Attachment,
this has been described in wiki on github.
If you have upgraded your TestLink installation (This information has not been provided by reporter) you need to run all sql scripts that are responsible of upgrading attachment data
(0028261)
hagbard   
2018-11-23 11:36   
1) Still reproducible with a fresh install of the latest github code

2) My department found this bug in our productive testlink installation.
I finally did the upgrade from 1.9.10 to 1.9.18 and of course i insert every single sql-script (1.9.11, 1.9.12, ...)
But to make sure that this bug is not a result of my upgrade process or any misconfiguration, i wrote this bugreport based on a fresh 1.9.18 installation.
(0028262)
fman   
2018-11-23 14:56   
Hi
thanks for the details.

I'm going to work on this.
(0028263)
hagbard   
2018-11-23 15:06   
thank u for your quick response.
(0028264)
fman   
2018-11-23 19:21   
https://github.com/TestLinkOpenSourceTRMS/testlink-code/commit/0af0b2e2530457ef64f7703985a797e8c4d10fe6 [^]
(0028272)
hagbard   
2018-11-26 11:02   
Its now possible to see and download attachments in Test Execution mode.
Verified with fresh install of latest github code.