MantisBT - TestLink
View Issue Details
0008519TestLinkBug Tracking System - Redmine Integrationpublic2018-12-20 13:502018-12-21 18:33
Mathieu R 
1.9.17 (2018 Q1) 
0008519: REDMINE with CFKEDITOR - Links to TestLink case in issue tracker are broken
When submitting cases from testLink to Redmine, links in the issue description field of Redmine are broken.

When clicked, your are directed to a page with the following message "Security check failed"
This seems to be because of the way Redmine displays links.

I think it is due to the FCKeditor used to render the rich text field of the issue description.
When link should be:
https://serverAddress/ltx.php?item=exec&feature_id=276&build_id=2 [^]

It is transformed to:
https://serverAddress/ltx.php?item=exec&feature_id=276&build_id=2 [^]

 * [^]
 * [^]
 * [^]
 * [^]
Create and issue in a test case to Redmine using the API and check the box "Add Link in Issue Tracker to Test Case Execution Feature"
Click on the link you will find in the issue description in Redmine
To circumvent the problem on the TestLink side, under Apache:

Activate the mod_rewrite module
Add the following rewrite rules to your server directives ot to a .htaccess:

# rewrite & found in url to & in order to circumvent a bug when
# testlink is linked to Redmine [^]
<Directory "/opt/bitnami/apps/testlink/htdocs">
   RewriteEngine On
   RewriteCond %{QUERY_STRING} ^item=([a-z]+)(&)feature_id=([0-9]+)(&)build_id=([0-9]+)(.*)$
   RewriteRule ^(.*)$ https://serverAddress/ltx.php?item=%1&feature_id=%3&build_id=%5 [^] [N]

If you are using the Bitnami TestLink stack, copy this in the file: /opt/bitnami/apps/testlink/conf/htaccess.conf
No tags attached.
Issue History
2018-12-20 13:50Mathieu RNew Issue
2018-12-20 14:00Mathieu RNote Added: 0028364
2018-12-20 14:01Mathieu RNote Edited: 0028364bug_revision_view_page.php?bugnote_id=28364#r5688
2018-12-20 14:02Mathieu RNote Edited: 0028364bug_revision_view_page.php?bugnote_id=28364#r5689
2018-12-20 14:02Mathieu RNote Edited: 0028364bug_revision_view_page.php?bugnote_id=28364#r5690
2018-12-21 18:33fmanQA Team - Task Workflow Status => TBD
2018-12-21 18:33fmanSummaryLinks to TestLink case in issue tracker are broken => REDMINE with CFKEDITOR - Links to TestLink case in issue tracker are broken
2018-12-21 18:33fmanDescription Updatedbug_revision_view_page.php?rev_id=5692#r5692
2018-12-21 18:33fmanAdditional Information Updatedbug_revision_view_page.php?rev_id=5694#r5694
2018-12-21 18:33fmanNote Added: 0028369

Mathieu R   
2018-12-20 14:00   
(edited on: 2018-12-20 14:02)
In the description, one should read:
It is transformed to:

https : // serverAddress/ltx.php?item=exec& amp;feature_id=276& amp;build_id=2

Note the "&" has been replaced by "& a m p ;" in the url

2018-12-21 18:33   
thanks for details.
this can be useful for other testlink users, but is nothing that can be fixed on TestLink side