Attachment file to test case does not open but executes

1.8 related questions and discussions.
Please upgrade to LATEST 1.9.x.
No more fixes for 1.8.

Moderators: Amaradana, TurboPT, TL Developers

Locked
prakash77
TestLink user
Posts: 4
Joined: Tue Sep 09, 2008 6:17 am

Attachment file to test case does not open but executes

Post by prakash77 »

Hi,

I tried to attached test data file (xls. doc) to individual test case so that Test engineer can execute with appropriate data. When we are in execution and try to open the file and save it actually it opens in new tab or browser and try to render as html though it should open in MS excel application.

any solution for this??

Regards,

Prakash
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

seems Browser configuration problem not TL
try with different browsers
prakash77
TestLink user
Posts: 4
Joined: Tue Sep 09, 2008 6:17 am

Post by prakash77 »

Hi,

I have tried in firefox 2.X, 3.0 and IE 6 and 7. Any recommended browsers?

I am running testlink using postgreSQL 8.3.
prakash77
TestLink user
Posts: 4
Joined: Tue Sep 09, 2008 6:17 am

Post by prakash77 »

Bellow is the HTTP headers requesting a XLS file. As you see the mime type on the response is not for a XLS but for Plain text file. I believe this is a TestLink issue rather than an Apache or Browser issue. TestLink properly identifies the mime types on Test case view page. It seems that it does not send correct mime type through the attachmentdonwload.php page.

http://10.100.10.121/testlink/lib/attac ... d.php?id=9

GET /testlink/lib/attachments/attachmentdownload.php?id=9 HTTP/1.1
Host: 10.100.10.121
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.1) Gecko/2008072820 Firefox/3.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
Referer: http://10.100.10.121/testlink/lib/testc ... case&id=26
Cookie: jira.conglomerate.cookie=; seraph.os.cookie=LabEjfuUSWnRtWqbLKVDUqhLxmFLhifAnB2bZQEv69D6it>0NH8MmKpPHcoOx>z<; seraph.confluence=OtbFpfjFUaRIHkeHeIwLbxqKxiRXBeLuycMx7AzsJ1cL7jEC6aI3kDSCR7hWP6h8; JSESSIONID=FB08B01E7FDDEF2D46E4DEA71D3AA62C; PHPSESSID=n4fbo4o8m84ksofn66n83dmuqjd88hs6

HTTP/1.x 200 OK
Via: 1.1 ISA01
Connection: Keep-Alive
Proxy-Connection: Keep-Alive
Transfer-Encoding: chunked
Date: Mon, 15 Sep 2008 01:36:47 GMT
Content-Type: text/html
Server: Apache/2.2.3 (Linux/SUSE)
X-Powered-By: PHP/5.2.5
Keep-Alive: timeout=15, max=100
----------------------------------------------------------

Waiting for your response.
Prakash

P.S. Version we have at present is 1.8 Beta.
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

create an issue on mantis with this details
jorgesf
TestLink user
Posts: 3
Joined: Wed May 28, 2008 12:09 pm

Same problem with Testlink 1.8 RC5

Post by jorgesf »

Hi friends,
I have the same problem described on this post. When I try to open an upload file/image attached to any test case execution, the browser shows me the content of the file in a new html page.
Do you know if this problem is already fixed in Testlink 1.8.3 version?
Thanks in advance.
marty
Advanced user
Posts: 26
Joined: Tue Feb 14, 2006 6:22 pm

Post by marty »

Hello,

We also have this issue (original problem in this post) with our Testlink installation on Linux but NOT on our Windows installation.

Any hint on how to fix this?

On the linux setup we always have binary being opened withing the web browser and no popup to save the attachment locally. This happens to all attachement (MSword, JPG, MSexcel...)

Thanks :-)
mikeylbridges
TestLink user
Posts: 1
Joined: Tue Feb 16, 2010 4:50 pm

Seeing this on many browsers

Post by mikeylbridges »

I am using 1.8.5 and now dont seem to have this problem.

It seems as though if I "reattach" the file, clickin on the old produces the screen "Attachment not found!"

But clicking the new one prompts me to open or save as expected.
hellofawedge
Advanced user
Posts: 17
Joined: Mon Sep 17, 2007 5:17 am

Re: Attachment file to test case does not open but executes

Post by hellofawedge »

I've noticed that the Linux version of Testlink 1.8.5 doesn't have "/var/www/testlink/third_party/fckeditor/editor/filemanager/upload" directory, while the 1.8.4 Windows version does (xampp\testlink\third_party\fckeditor\editor\filemanager\upload).

In the installation instructions it specifically directs the installer to enable the uploader by modifying "FCKeditor/editor/filemanager/upload/php/config.php", however the Linux install doesn't have this directory.

Is it still required to modify "FCKeditor/editor/filemanager/upload/php/config.php" in a Linux install?
Locked