Bug in the XML-RPC API

More
1 week 4 days ago - 1 week 4 days ago #216950 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):
<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 -&gt; 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: 1 week 4 days ago by orsayman.

Please Log in to join the conversation.

More
1 week 4 days ago #216951 by tpartner
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.

Please Log in to join the conversation.

More
1 week 4 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.

Please Log in to join the conversation.

More
1 week 4 days ago - 1 week 4 days ago #216957 by tpartner
Replied by tpartner on topic Bug in the XML-RPC API
bugs.limesurvey.org/

Should be the same user credentials as here.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 1 week 4 days ago by tpartner.

Please Log in to join the conversation.

More
1 week 4 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 ?

Please Log in to join the conversation.

More
1 week 4 days ago #216961 by holch
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.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Please Log in to join the conversation.

More
1 week 4 days ago #216962 by tpartner
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.

Please Log in to join the conversation.

More
1 week 4 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.

Please Log in to join the conversation.

More
1 week 4 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.

Please Log in to join the conversation.

More
1 week 1 day ago #217032 by orsayman
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now