Project

General

Profile

Actions

Bug #22171

closed

[EM] Upload to TER is broken

Added by Steffen Kamper almost 15 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-02-23
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

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="?">
   <!--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 (...);

(issue imported from #M13637)


Files

13637.diff (794 Bytes) 13637.diff Administrator Admin, 2010-02-23 19:28

Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #22174: Upload to TER leads to SOAP-ErrorClosedSteffen Kamper2010-02-24

Actions
Actions #1

Updated by Steffen Kamper over 14 years ago

committed to svn
4_2 rev 7021
4_3 rev 7022
trunk rev 7023

Actions

Also available in: Atom PDF