Missing Informations with mc_project_get_users and Error with mc_issue_add

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
LionelINT
Posts: 1
Joined: 14 Jun 2021, 09:32

Missing Informations with mc_project_get_users and Error with mc_issue_add

Post by LionelINT »

Hello Everybody,

My company was using an older version of Mantis.
We are using a software that we developped in Delphi. There was no problems with the code that I get with the WSDL.

We updated to Mantis 2.24.4, and since, I have 2 problems :
First, when i use mc_project_get_users, I get a list of user, but the fields real_name, and mail, are empty. However, when I connect with those account, there are data for those fields.
I checked the fields show_user_realname_threshold and show_user_email_threshold, but they seems correct. they are put to viewer.
I also got the new WSDL version.

Here is the code :

var
ada: AccountDataArray;
ad: AccountData;
begin
if Assigned( _MantisConnectPortType ) then begin
// On récupère la liste des utilisateurs associés au projet...
ada := _MantisConnectPortType.mc_project_get_users( _MantisUserName, _MantisPassword, pProjectId, -1 );
// On transfère dans la liste passée en arguments...
pList.Clear;
// On balaie la liste...
for ad in ada do begin
pList.AddObject( ad.real_name, ad );
// On libère l'objet...
// ad.Free;
end;

Second, when I try to create the ticket, i get this error :
User Not Allowed to Create issues.

Yet, the code hasn't changed, so I don't understand why I get this error.
Here is the code :
pvMantisID := _MantisConnectPortType.mc_issue_add( _MantisUSerName, _MantisPassword, anIssueData );

The code was correctly running with the older version, so I don't really know where to look for a solution.

Thanks for your help :)
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Missing Informations with mc_project_get_users and Error with mc_issue_add

Post by atrol »

Please use Search before posting and read the Manual
Post Reply