Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007876TestLinkExport/Importpublic2017-03-13 09:242017-03-14 08:32
Reporterddomgn 
Assigned Tofman 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionunable to reproduce 
PlatformOSDebian LinuxOS VersionStretch x64
Product Version1.9.16 (2016 Q4) 
Fixed in Version 
Summary0007876: Can not import requirements
DescriptionIt seems like requirements import does not work at all.
Steps To Reproduce1. Create requirement spec, then a requirement in it.
2. Export requirements from the spec.
3. Delete requirement.
4. Click on spec, then import from the XML produced in above steps.

Expected: requirement is created, or error message is shown.

Actual: empty right panel.
Additional InformationEvent log shows 2 warnings:
E_WARNING file_put_contents(/development/var/tracer.log): failed to open stream: No such file or directory - in /var/www/testlink/lib/functions/tlFilterControl.class.php - Line 268
E_WARNING Creating default object from empty value - in /var/www/testlink/lib/requirements/reqSpecView.php - Line 103
TagsNo tags attached.
Database (MySQL,Postgres,etc)MySQL
BrowserMozilla Firefox 52.0
PHP Version7.0
TestCaseID
QA Team - Task Workflow StatusREADY FOR TESTING
Attached Filesxml file icon Requirements spec-child_req.xml [^] (419 bytes) 2017-03-14 04:43

- Relationships

-  Notes
(0026100)
fman (administrator)
2017-03-13 13:34

1) for import issues the sampl,e file you have used is needed/mandatory
2) get latest code from githb, do fresh install on sandbox, retest and provide feedback
(0026106)
ddomgn (reporter)
2017-03-14 04:44

The bug has been reproduced in 1.9.17 (last version from GitHub). See Requirements spec-child_req.xml attachment for sample XML.
(0026107)
fman (administrator)
2017-03-14 06:21

1. just tested with latest code from github, using postgres => no issue
2. static analysis, can not find the file_put_contents on lib/functions/tlFilterControl.class.php - Line 268

right now filt_put_contents() exist in:
testlink-code fman$ grep -rl file_put_contents *
lib/api/rest/v2/tlRestApi.class.php
lib/issuetrackerintegration/redminerestInterface.class.php
third_party/phpmailer/class.phpmailer.php
third_party/phpmailer/examples/scripts/shBrushPhp.js
third_party/smarty3/libs/sysplugins/smarty_internal_write_file.php
third_party/user_contribution/fakeRemoteExecServer/fakeXMLRPCTestRunner.php
third_party/Zend/Loader/PluginLoader.php

No idea of the real version of testlink used

closing
(0026108)
ddomgn (reporter)
2017-03-14 06:25

I use MySQL, not PostgreSQL:
$ mysql --version
mysql Ver 14.14 Distrib 5.6.30, for debian-linux-gnu (x86_64) using EditLine wrapper
(0026109)
fman (administrator)
2017-03-14 06:27

Tested with PHP 7.1.0
(0026110)
fman (administrator)
2017-03-14 06:28

Tested IMPORT using provided file, no issues
(0026112)
fman (administrator)
2017-03-14 06:33

MySQL or Postgres do not change the fact that the file_put_contents() is not on the code in the place you find it.
(0026113)
ddomgn (reporter)
2017-03-14 08:30

I updated packages and got the following error message in Apache logs:

PHP Fatal error: Uncaught Error: Call to undefined function simplexml_load_string() in [...]

The issue is resolved by installing php7.0-xml package.
Thank you fman.
(0026114)
fman (administrator)
2017-03-14 08:32

Good! Great to know.
have a nice day

- Issue History
Date Modified Username Field Change
2017-03-13 09:24 ddomgn New Issue
2017-03-13 13:34 fman Note Added: 0026100
2017-03-13 13:35 fman Assigned To => fman
2017-03-13 13:35 fman Status new => feedback
2017-03-14 04:43 ddomgn File Added: Requirements spec-child_req.xml
2017-03-14 04:44 ddomgn Note Added: 0026106
2017-03-14 04:44 ddomgn Status feedback => assigned
2017-03-14 06:21 fman Note Added: 0026107
2017-03-14 06:25 ddomgn Note Added: 0026108
2017-03-14 06:27 fman Note Added: 0026109
2017-03-14 06:27 fman QA Team - Task Workflow Status => READY FOR TESTING
2017-03-14 06:27 fman Status assigned => resolved
2017-03-14 06:27 fman Resolution open => unable to reproduce
2017-03-14 06:28 fman Note Added: 0026110
2017-03-14 06:33 fman Note Added: 0026112
2017-03-14 08:30 ddomgn Note Added: 0026113
2017-03-14 08:32 fman Note Added: 0026114



Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker