sympa-community / sympa

Sympa, Mailing List Management Software
https://www.sympa.community/sympa
GNU General Public License v2.0
241 stars 95 forks source link

Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: <message> 'setCustom' already defined #1676

Closed Nalisman385 closed 9 months ago

Nalisman385 commented 1 year ago

Version

6.2.72

Installation method

source package or rpm

Expected behavior

no error

Actual behavior

error throw when $soapClient = new SoapClient($soapServer) is called after upgrade to .72

PHP Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: 'setCustom' already defined in /opt/sympa/etc/sympa/docs/subscribe/subscribe.php:155\nStack trace:\n#0 /opt/sympa/etc/sympa/docs/subscribe/subscribe.php(155): SoapClient->SoapClient()\n#1 {main}\n thrown in /opt/sympa/etc/sympa/docs/subscribe/subscribe.php on line 155, referer: https://ev.ritmailtest.rit.edu/subscribe/sample.php

Steps to reproduce

$soapServer = "https://$site/sympa/wsdl"; $soapClient = new SoapClient($soapServer); $soapClient->debug_flag=true;

Additional information

The following lines in sympa.wsdl appear to be the issue:

Changing to the following resolves the issue:

Nalisman385 commented 1 year ago

Addendum, the XML excerpts got removed from the bug report:

Lines 310, 316 both have message name="setCustom", where message name="setCustomRequest" and message name="setCustomResponse" should be present, respectively.

ikedas commented 1 year ago

Hi @Nalisman385 , Thank you for reporting bug. Could you please apply this patch and confirm that it works?

Nalisman385 commented 1 year ago

Confirmed, I have that in my test environment