Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008519TestLinkBug Tracking System - Redmine Integrationpublic2018-12-20 13:502018-12-21 18:33
ReporterMathieu R 
Assigned To 
PrioritylowSeveritytweakReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Version1.9.17 (2018 Q1) 
Fixed in Version 
Summary0008519: REDMINE with CFKEDITOR - Links to TestLink case in issue tracker are broken
DescriptionWhen 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 [^]

References:
 * https://www.w3.org/TR/xhtml1/#C_12 [^]
 * https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-forceSimpleAmpersand [^]
 * https://dev.ckeditor.com/ticket/6834 [^]
 * https://github.com/ckeditor/ckeditor-dev/issues/965 [^]
Steps To ReproduceCreate 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
Additional InformationTo 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 https://github.com/ckeditor/ckeditor-dev/issues/965 [^]
<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]
</Directory>

If you are using the Bitnami TestLink stack, copy this in the file: /opt/bitnami/apps/testlink/conf/htaccess.conf
TagsNo tags attached.
Database (MySQL,Postgres,etc)MySQL
Browser
PHP Version7.1.22
TestCaseID
QA Team - Task Workflow StatusTBD
Attached Files

- Relationships

-  Notes
(0028364)
Mathieu R (reporter)
2018-12-20 14:00
edited on: 2018-12-20 14:02

ERRATUM:
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

(0028369)
fman (administrator)
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

- Issue History
Date Modified Username Field Change
2018-12-20 13:50 Mathieu R New Issue
2018-12-20 14:00 Mathieu R Note Added: 0028364
2018-12-20 14:01 Mathieu R Note Edited: 0028364 View Revisions
2018-12-20 14:02 Mathieu R Note Edited: 0028364 View Revisions
2018-12-20 14:02 Mathieu R Note Edited: 0028364 View Revisions
2018-12-21 18:33 fman QA Team - Task Workflow Status => TBD
2018-12-21 18:33 fman Summary Links to TestLink case in issue tracker are broken => REDMINE with CFKEDITOR - Links to TestLink case in issue tracker are broken
2018-12-21 18:33 fman Description Updated View Revisions
2018-12-21 18:33 fman Additional Information Updated View Revisions
2018-12-21 18:33 fman Note Added: 0028369



Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker