bugphpGroupWare - Bugs: bug #20806, eval in soap_parser fails


You are not allowed to post comments on this tracker with your current authentification level.

bug #20806: eval in soap_parser fails

Submitted by:  Olivier Berger <olberger>
Submitted on:  Fri Aug 17 20:58:11 2007  
Item Group: soap
Severity: 3 - NormalPriority: 5 - Normal
Status: Need InfoPrivacy: Public
Assigned to: Caeies <Caeies>Open/Closed: Open
Component Version: NoneOperating System: GNU/Linux - Debian
Reproducibility: NonePlanned Release: None
Fixed Release: 

Wed Sep 5 12:10:49 2007, comment #2:

Hi Olivier,

The error is "hard" to reproduce and is not completly described here (what kind of error eval produce ?, ...).

Will be hard to help you :).



Caeies <Caeies>
Project AdministratorIn charge of this item.
Fri Aug 17 20:59:37 2007, comment #1:

Btw, PHP Version 5.2.3-1+b1 here... and phpgw

Olivier Berger <olberger>
Fri Aug 17 20:58:11 2007, original submission:

The code for soap_parser constructs a PHP expression then evals it.

Unfortunately, this seems broken here when I'm testing :

I'm using Sympa's SOAP server with authenticateAndRun to call complexLists method for an email, and get the following expression in return :
<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><authenticateAndRunResponse xmlns="urn:sympasoap"><listInfo soapenc:arrayType="xsd:ur-type[2]" xsi:type="soapenc:Array"><item><homepage xsi:type="xsd:string">http://sid.picoforge.test/wws/info/essai1</homepage><listAddress xsi:type="xsd:string">essai1@sid.picoforge.test</listAddress><subject xsi:type="xsd:string">essai1 list</subject></item><item><homepage xsi:type="xsd:string">http://sid.picoforge.test/wws/info/essai1-developers</homepage><listAddress xsi:type="xsd:string">essai1-developers@sid.picoforge.test</listAddress><subject xsi:type="xsd:string">essai1-developers list</subject></item></listInfo></authenticateAndRunResponse></soap:Body></soap:Envelope>

Which results in trying to eval the following expression :
$response = CreateObject("phpgwapi.soapval","authenticateAndRunResponse", "struct" , array( CreateObject("phpgwapi.soapval","listInfo", "Array" , array( CreateObject("phpgwapi.soapval","item", "SOAPStruct" , array( CreateObject("phpgwapi.soapval","homepage", "string" , "http://sid.picoforge.test/wws/info/essai1"), CreateObject("phpgwapi.soapval","listAddress", "string" , "essai1@sid.picoforge.test"), CreateObject("phpgwapi.soapval","subject", "string" , "essai1 list")) ), CreateObject("phpgwapi.soapval","item", "SOAPStruct" , array( CreateObject("phpgwapi.soapval","homepage", "string" , "http://sid.picoforge.test/wws/info/essai1-developers"), CreateObject("phpgwapi.soapval","listAddress", "string" , "essai1-developers@sid.picoforge.test"), CreateObject("phpgwapi.soapval","subject", "string" , "essai1-developers list")) )) )) );

That's probably too complex :(

I think I'll try and use the soap client in PHP5 instead of the phpGroupware one

Olivier Berger <olberger>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by Caeies (Posted a comment)
  • -unavailable- added by olberger (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed Sep 5 12:10:49 2007CaeiesItem GroupNone=>
      StatusNone=>Need Info
      Assigned toNone=>Caeies

    Back to the top

    Powered by Savane 3.1-cleanup1