Migration FROM 1.7 - Lost all attached files to test cases

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
aostad
Member of TestLink Community
Posts: 183
Joined: Wed Apr 01, 2009 8:32 pm

Migration FROM 1.7 - Lost all attached files to test cases

Post by aostad »

I'm just wondering if it happened to anybody that loses an attached file to a test case.

I have over 200 test cases that majority of them have some scripts (xml files) attached to them.

Recently, I noticed none of attached file can be found by testlink. After clicking the link on attached file an error page pops up saying "Error: Attachment not found!"

Since most scripts were customized per test case, it is not easy to rewrite them. I'm pretty sure those attached file are somewhere in the system and there should be a way to bring them back.

Any help is much appreciated.
Cyrille
Advanced user
Posts: 28
Joined: Mon Aug 27, 2007 8:52 am
Location: FRANCE (Brittany)

Re: Lost all attached files (xml) to test cases

Post by Cyrille »

Hello,

after migrating from TL 1.7.4 to TL 1.8.5 , my old testcases with attachments seem to have lost the link .
I've just modify the TL repository between the 2 configurations.

TL 17. configuration:
/**
* TL_REPOSITORY_TYPE_FS: the where the filesystem repository should be located
* We recommend to change the directory for security reason.
**/
$g_repositoryPath = TL_ABS_PATH . "upload_area" . DS;

TL 1.8 conf:
/ $tlCfg->repositoryPath = TL_ABS_PATH . "upload_area" . DIRECTORY_SEPARATOR;
$g_repositoryPath = TL_ABS_PATH . "upload_area" . DIRECTORY_SEPARATOR . "fck_editor" . DIRECTORY_SEPARATOR ."upload_area" . DIRECTORY_SEPARATOR . "userfiles" . DIRECTORY_SEPARATOR;

It works well for image (using fckeditor) in testcase, but not for attachments.

Do you find any solution ?
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: Migration FROM 1.7 - Lost all attached files to test cas

Post by fman »

after upload file name are scrambled on file system, but on db you have to have the pointers
need to do some tests.
stay tunned
Christophe
TestLink user
Posts: 12
Joined: Wed Sep 16, 2009 4:52 pm

Re: Migration FROM 1.7 - Lost all attached files to test cas

Post by Christophe »

Do you have any news for this issue?
I have migrated from 1.7.5 to 1.8.5 and copied the upload folder and tere are some files that I am not able to access.

Thanks for your valuable help
aostad
Member of TestLink Community
Posts: 183
Joined: Wed Apr 01, 2009 8:32 pm

Re: Migration FROM 1.7 - Lost all attached files to test cas

Post by aostad »

I have not heard anything yet.
Locked