[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-tracker] [bug #20806] eval in soap_parser fails
From: |
Olivier Berger |
Subject: |
[Phpgroupware-tracker] [bug #20806] eval in soap_parser fails |
Date: |
Fri, 17 Aug 2007 20:58:12 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.8.1.6) Gecko/20070723 Iceweasel/2.0.0.6 (Debian-2.0.0.6-0etch1+lenny1) |
URL:
<http://savannah.gnu.org/bugs/?20806>
Summary: eval in soap_parser fails
Project: phpGroupWare
Submitted by: olberger
Submitted on: vendredi 17.08.2007 à 22:58
Item Group: None
Category: soap
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Component Version: None
Operating System: GNU/Linux - Debian
Reproducibility: None
Planned Release: None
Fixed Release:
_______________________________________________________
Details:
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">address@hidden</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">address@hidden</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" ,
"address@hidden"), 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" ,
"address@hidden"),
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
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?20806>
_______________________________________________
Message posté via/par Savannah
http://savannah.gnu.org/
- [Phpgroupware-tracker] [bug #20806] eval in soap_parser fails,
Olivier Berger <=