Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008757TestLinkAPI - XMLRPCpublic2019-09-05 14:492019-09-06 08:27
Reportermulticode 
Assigned Tofman 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version1.9.18 (2018 Q3) 
Fixed in Version1.9.20 Raijing DEV 
Summary0008757: API - XMLRPC -Unable to update test case name with long UTF-8 string
DescriptionIt's possible to create test case in TestLink with name like "???????? ??????? ???????? ????-????? ?? ??????? ?????, ??????? ????? ?????? ? TestLink ??? ??????".
But when we try to update the test case name with the same string using the updateTestCase method, we get the error "LOCALIZE: API_TESTCASE_NAME_LEN_EXCEEDED".
Steps To Reproduce1. Create test case.
2. Try to update the test case name with the string "???????? ??????? ???????? ????-????? ?? ??????? ?????,
??????? ????? ?????? ? TestLink ??? ??????" using updateTestCase API-XMLRPC method.
Additional InformationProblem solved as follows:
"strlen" should be replaced by "mb_strlen" in updateName function in /lib/functions/testcase.class.php file:
if( ($nl = strlen($new_name)) <= 0 ) --> if( ($nl = mb_strlen($new_name)) <= 0 )

The same problem should be in 1.9.19 version.
TagsNo tags attached.
Database (MySQL,Postgres,etc)Postgres
Browser
PHP Version
TestCaseID
QA Team - Task Workflow StatusREADY FOR TESTING
Attached Files

- Relationships
child of 0008549assignedfman Availables hot-fixes for 1.9.19 & How To get full fixed package from GitHub 

-  Notes
(0029133)
fman (administrator)
2019-09-05 15:02

Thanks, going to check
(0029134)
fman (administrator)
2019-09-05 17:40

Root Cause is that when using XML-RPC API the method updateName() from testcase.class.php is used, and in this method length is checked.

It seems that when using the GUI, we trust in the length checks done on input.
(0029135)
fman (administrator)
2019-09-05 17:43

https://github.com/TestLinkOpenSourceTRMS/testlink-code/commit/54170449bbc61af2847518264cb7a2591dd749a4 [^]
(0029136)
multicode (reporter)
2019-09-06 08:27

Thanks!

- Issue History
Date Modified Username Field Change
2019-09-05 14:49 multicode New Issue
2019-09-05 15:02 fman Note Added: 0029133
2019-09-05 17:38 fman QA Team - Task Workflow Status => TBD
2019-09-05 17:38 fman Summary Unable to update test case name with long UTF-8 string => API - XMLRPC -Unable to update test case name with long UTF-8 string
2019-09-05 17:40 fman Note Added: 0029134
2019-09-05 17:43 fman QA Team - Task Workflow Status TBD => READY FOR TESTING
2019-09-05 17:43 fman Note Added: 0029135
2019-09-05 17:43 fman Status new => resolved
2019-09-05 17:43 fman Fixed in Version => 1.9.20 Raijing DEV
2019-09-05 17:43 fman Resolution open => fixed
2019-09-05 17:43 fman Assigned To => fman
2019-09-05 17:43 fman Relationship added child of 0008549
2019-09-06 08:27 multicode Note Added: 0029136



Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker