Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008513TestLinkAPI - RESTpublic2018-12-19 14:212018-12-22 18:16
Reportermartin.negriev 
Assigned Tofman 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionunable to reproduce 
PlatformLinuxOSCentosOS Version7.5
Product Version1.9.18 (2018 Q3) 
Fixed in Version 
Summary0008513: Error when updating issue in gitlab
DescriptionHello,

I have problem when updating ticket in my GitLab. I have integrated Gitlab via rest interface.

<issuetracker>
<apikey>*****</apikey>
<uribase>https://gitlab.musala.com</uribase> [^]
<projectidentifier>342</projectidentifier>
</issuetracker>

I can see that testlink is connected to my gitlab project and I can see gitlab issues in testlink, but when I try to update issue it gives me error 400
Steps To ReproduceExecute Tests-> My Test Case -> Add Note -> Type some note inside the field

Error 500 appear. I am attaching screenshot.



Additional InformationApache error

[Wed Dec 19 16:16:46.748474 2018] [php7:error] [pid 6091] [client 10.0.9.49:46218] PHP Fatal error: Uncaught Exception: gitlab::_requesturl:https://gitlab.musala.com [^] - response:{"url":"https:\\/\\/gitlab.musala.com\\/api\\/v4\\/\\/projects\\/342\\/issues\\/1\\/notes?body=3423","content_type":"text\\/html","http_code":400,"header_size":145,"request_size":259,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":5.5230199999999998,"namelookup_time":5.5146810000000004,"connect_time":5.5152729999999996,"pretransfer_time":5.5227240000000002,"size_upload":0,"size_download":166,"speed_download":30,"speed_upload":0,"download_content_length":166,"upload_content_length":-1,"starttransfer_time":5.5229949999999999,"redirect_time":0,"redirect_url":"","primary_ip":"10.0.6.173","certinfo":[],"primary_port":443,"local_ip":"10.0.3.174","local_port":37090} - content: "<html>\\r\\n<head><title>400 Bad Request<\\/title><\\/head>\\r\\n<body bgcolor=\\"white\\">\\r\\n<center><h1>400 Bad Request<\\/h1><\\/center>\\r\\n<hr><center>nginx<\\/center>\\r\\n<\\/body>\\r\\n<\\/html>\\r\\n" in /var/www/html/testlink-1.9.18/third_party/gitlab-php-api/lib/git in /var/www/html/testlink-1.9.18/third_party/gitlab-php-api/lib/gitlab-rest-api.php on line 352, referer: http://10.0.3.174/lib/execute/bugAdd.php?user_action=add_note&tcversion_id=4&tproject_id=1&exec_id=1&bug_id=1 [^]



In log I see error 400 but I can't think of any way to fix it.

I am using the latest version from downloaded from SourceForge.

Regards,

TagsNo tags attached.
Database (MySQL,Postgres,etc)Mysql 5.7.24
BrowserChrome
PHP VersionPhp 7.1.24
TestCaseID
QA Team - Task Workflow StatusTBD
Attached Filespng file icon testlink1-gitlab.png [^] (65,588 bytes) 2018-12-19 14:21

- Relationships

-  Notes
(0028372)
fman (administrator)
2018-12-22 18:13
edited on: 2018-12-22 18:15

Just tested with latest code from github.
using gitlab.com
no issue when CREATING a new issue

Note added without problems


- Issue History
Date Modified Username Field Change
2018-12-19 14:21 martin.negriev New Issue
2018-12-19 14:21 martin.negriev File Added: testlink1-gitlab.png
2018-12-22 18:13 fman Note Added: 0028372
2018-12-22 18:14 fman Note Edited: 0028372 View Revisions
2018-12-22 18:15 fman Note Edited: 0028372 View Revisions
2018-12-22 18:16 fman QA Team - Task Workflow Status => TBD
2018-12-22 18:16 fman Status new => resolved
2018-12-22 18:16 fman Resolution open => unable to reproduce
2018-12-22 18:16 fman Assigned To => fman



Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker