[TYPO3-core] RFC: #13637: [EM] Upload to TER is broken

Steffen Kamper ks at dislabs.de
Tue Feb 23 19:31:17 CET 2010


Hi,

This is an SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=13637

Branches:
trunk, 4_3, 4_2

When uploading an extension, soap client quit with

Fatal error: SOAP-ERROR: Encoding: object hasn't 'name' property in 
/var/www/web70/html/trunk/typo3/mod/tools/em/class.em_soap.php on line 230

Reason:
The WSDL was fixed 2 days ago. Now soap validates correct, which wasn't 
the case before. That means that the information has to be exact in the 
format of the WSDL.

For files this wasn't the case, the array sended has wrong format. WSDL 
says:

<filesData soapenc:arrayType="?" soapenc:offset="?" id="?" href=&qu
ot;?">
    <!--1 or more repetitions:-->
    <fileData>
       <name>?</name>
       <size>?</size>
       <!--Optional:-->
       <modificationTime>?</modificationTime>
       <content>cid:694123977209</content>
       <contentMD5>?</contentMD5>
    </fileData>
</filesData>



and EM sends $filesData['fileData'][] = array (...)
This is one level too much, correct is
$filesData[] = array (...);

Additional:
It's no option to revert the WSDL because without validation it's 
possible to send any data to TER

vg Steffen
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 13637.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100223/4d3068ff/attachment.txt>


More information about the TYPO3-team-core mailing list