MantisBT - TestLink
View Issue Details
0008856TestLinkReportspublic2020-01-29 13:102020-02-06 10:29
Piotr123 
 
normalminoralways
newopen 
Linux CentOSrelease 8.1.1911
1.9.19 (2019 Q1) 
 
MySQL
7.2.11
0008856: Pseudo MS Word opened in Protected View (issue with enable editing)
MS Word 2010 is unable to properly open generated reports which contains links or attachments (so all reports)
I'm generating report as Pseudo MS Word, save and opens with MS Word 2010 -> file is opened in Protected View, next I'm trying to enable editing-> Word is trying to connect to server but with no success( takes >1 minute) so I cancel it and then get an error: Word experienced an error... (error attached)
begining of document:

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>testplan NT</title>
<link type="text/css" rel="stylesheet" href="http://192.168.1.100/gui/themes/default/css/tl_documents.css" [^] />
<style type="text/css" media="print">.notprintable { display:none;}</style>
</head>
<body>
<div>
<div style="float:right;">Test</div>
<div> </div><hr />
<p style="text-align: center;"><img alt="TestLink logo" title="configure using $tlCfg->document_generator->company_logo" width=231 height=56 src="http://192.168.1.100/gui/themes/default/images/tl-logo-transparent-25.png" [^] />

</div>
<div class="doc_title">

Test Plan Design Report

</div>
<div class="doc_title" style="text-align:left;margin: auto;">

Test Project: Test1
Test Plan: NT

</div>
<div class="summary"><p id="printedby">Printed by TestLink on 29/01/2020

</div>


If I will remove:
<link type="text/css" rel="stylesheet" href="http://192.168.1.100/gui/themes/default/css/tl_documents.css" [^] />

and

<p style="text-align: center;"><img alt="TestLink logo" title="configure using $tlCfg->document_generator->company_logo" width=231 height=56 src="http://192.168.1.100/gui/themes/default/images/tl-logo-transparent-25.png" [^] />

</div>

then issue with error doesn't occur
No tags attached.
png MS office error.png (26,327) 2020-01-29 13:10
http://mantis.testlink.org/file_download.php?file_id=5299&type=bug
png
Issue History
2020-01-29 13:10Piotr123New Issue
2020-01-29 13:10Piotr123File Added: MS office error.png
2020-01-30 11:07fmanNote Added: 0029458
2020-01-30 14:22Piotr123Note Added: 0029459
2020-01-30 15:03fmanNote Added: 0029460
2020-02-06 10:29Piotr123Note Added: 0029468

Notes
(0029458)
fman   
2020-01-30 11:07   
Pseudo words are just this pseudo word, then you will experiment issues with links
(0029459)
Piotr123   
2020-01-30 14:22   
I can open such file (with Openoffice) on local server where TestLink is up and running - and links works, attachements are opened etc. there is no issues.
So looks that I need to remove all links from report to open it on different PC?
(0029460)
fman   
2020-01-30 15:03   
>> So looks that I need to remove all links from report to open it on different PC?
yes.

if you give a look to links you will see IP 192.168.x.x => this is a special IP (https://tools.ietf.org/html/rfc1918 [^]), that will work ONLY in your internal network.
(0029468)
Piotr123   
2020-02-06 10:29   
thank you, lets close this issue