- Posts: 24
- Thank you received: 3
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Bug in the XML-RPC API
2 years 2 days ago - 2 years 2 days ago #216950
by orsayman
Bug in the XML-RPC API was created by orsayman
Dear all,
We use python scripts to automate some tasks. The scripts are based on the XML-RPC version of the remote control API (the main reason is because there is a XML-RPC client in the standard library).
Today I noticed that a script was no longer working (too bad it was the second time this script was used in production
. LS version is 3.27.1 (210531). It was updated since last time we used the script hence the breakage.
I tracked down the problem to the fact that the send_invitation function returns an invalid XML document (the name and email is anonymized):
Note that the email is correctly sent.
As you can see, the offending part is 2021-06-04 16:10:39 CLIENT -> SERVER: QUIT. I have looked at the source code of version 3.27.1 I wonder if the problem could come from limesurvey/application/third_party/phpmailer/src/SMTP.php. Any idea ?
Thanks in advance,
Mathieu
We use python scripts to automate some tasks. The scripts are based on the XML-RPC version of the remote control API (the main reason is because there is a XML-RPC client in the standard library).
Today I noticed that a script was no longer working (too bad it was the second time this script was used in production

I tracked down the problem to the fact that the send_invitation function returns an invalid XML document (the name and email is anonymized):
Code:
<methodResponse><params><param><value><struct><member><name><![CDATA[6]]></name>\n<value><struct><member><name><![CDATA[name]]></name>\n<value><string><![CDATA[XXXX XXXX]]></string>\n</value></member><member><name><![CDATA[email]]></name>\n<value><string><![CDATA[xxxx@example.org]]></string>\n</value></member><member><name><![CDATA[status]]></name>\n<value><string><![CDATA[OK]]></string>\n</value></member></struct></value></member><member><name><![CDATA[status]]></name>\n<value><string><![CDATA[0 left to send]]></string>\n</value></member></struct></value></param></params></methodResponse>2021-06-04 16:10:39 CLIENT -&gt; SERVER: QUIT<br>\n'
Note that the email is correctly sent.
As you can see, the offending part is 2021-06-04 16:10:39 CLIENT -> SERVER: QUIT. I have looked at the source code of version 3.27.1 I wonder if the problem could come from limesurvey/application/third_party/phpmailer/src/SMTP.php. Any idea ?
Thanks in advance,
Mathieu
Last edit: 2 years 2 days ago by orsayman.
The topic has been locked.
2 years 2 days ago #216951
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Bug in the XML-RPC API
Please submit a bug report.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
2 years 2 days ago #216953
by orsayman
Replied by orsayman on topic Bug in the XML-RPC API
Can you tell me how to do ? I tried but I can't find the "issues" tab on github and I found nothing on the website.
The topic has been locked.
2 years 2 days ago - 2 years 2 days ago #216957
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Bug in the XML-RPC API
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 2 years 2 days ago by tpartner.
The topic has been locked.
2 years 2 days ago #216959
by orsayman
Replied by orsayman on topic Bug in the XML-RPC API
I found it in the mean time but I can't login. Is there something to do ?
The topic has been locked.
2 years 2 days ago #216961
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Bug in the XML-RPC API
Usually it should work with the same credentials.
If not, you will probably have to send an email to the Limesurvey GmbH, maybe the databases have not been synchronized yet.
If not, you will probably have to send an email to the Limesurvey GmbH, maybe the databases have not been synchronized yet.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
2 years 2 days ago #216962
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Bug in the XML-RPC API
If your credentials don't work, you may have to contact
www.limesurvey.org/support/contact
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
2 years 2 days ago #216963
by orsayman
Replied by orsayman on topic Bug in the XML-RPC API
OK, I have done that. Thanks for your help.
The topic has been locked.
2 years 2 days ago #216964
by orsayman
Replied by orsayman on topic Bug in the XML-RPC API
Just to mention that I turned off " SMTP debug mode" (it was previously set to "on errors") and the problem is gone so this seems related to the file i pointed.
The topic has been locked.
1 year 11 months ago #217032
by orsayman
Replied by orsayman on topic Bug in the XML-RPC API
Bug report is at
bugs.limesurvey.org/view.php?id=17354
.
The following user(s) said Thank You: DenisChenu
The topic has been locked.