Mantis Bugtracker 

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008565TestLinkAPI - RESTpublic2019-02-12 14:142019-02-12 14:39
Assigned To 
PlatformOSOS Version
Product Version1.9.19 (2019 Q1) 
Fixed in Version 
Summary0008565: Undefined variable api_key during POST to create test plan
Description/lib/functions/testplan.class.php has create functions for creating from from function parameters and for creating from an 'item' object. The function parameters one correctly generates a random API key using md5 and rand, but createFromObject (line 155) does not. This causes an error when it tries to store the nonexistent key in the database.
Steps To ReproduceUse curl to post a new test plan:
curl -i -H "Content-Type: application/json" -X POST --data "{TESTPLAN CONTENT}" -u APIKEY:USER /testlink/lib/api/rest/v1/testplans

Observe returned status:
{"status":"ok","message":"Undefined variable: api_key"}
Additional InformationPull request to resolve this coming shortly.
TagsNo tags attached.
Database (MySQL,Postgres,etc)MySQL
PHP Version
QA Team - Task Workflow Status
Attached Files

- Relationships

-  Notes
fman (administrator)
2019-02-12 14:39


- Issue History
Date Modified Username Field Change
2019-02-12 14:14 TheWyrdsmith New Issue
2019-02-12 14:39 fman Note Added: 0028525

Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker