Apache OpenOffice (AOO) Bugzilla – Issue 50286
XForm: OOo crash with POST method
Last modified: 2013-08-07 14:42:16 UTC
Hi, I'm trying to make OOo work with XForm. I can get some interaction with the apache serveur and GET method, but OOo hangs with POST method. I'll attach some related document: - the OOo XML Document - the PHP script - the related traces in access_log - the traces generated by the php script. My environnement: - OOo 1.9m104 - Apache 1.3.33 - PHP 5.0.4 (--with-mysql --enable-soap) Others issues will follow. regards, Ph.
Reassigned to MSC.
Created attachment 26921 [details] This document crashes OOo with POST method in the submission
Created attachment 26922 [details] The generated logs
Created attachment 26923 [details] The PHP script
Created attachment 26924 [details] The output of message1.php.
Hi, I can reproduce this. The office loops when replace instance is used in the submission. Bye Marc
dvo: I can see the following stack: sal3.dll!_osl_waitCondition() streams.uno.dll!io_stm::OPipeImpl::readBytes() unoxml680mi.dll!DOM::CDocumentBuilder::parse() frm680mi.dll!CSubmission::replace(const rtl::OUString & aReplace= [...] frm680mi.dll!xforms::Submission::doSubmit(const [...] frm680mi.dll!xforms::Submission::submitWithInteraction( [...] frm680mi.dll!frm::OClickableImageBaseControl::implSubmit() frm680mi.dll!frm::OClickableImageBaseControl::actionPerformed_Impl() frm680mi.dll!frm::OButtonControl::actionPerformed_Impl() frm680mi.dll!frm::OButtonControl::OnClick() Apparently, the problem is in parsing the result stream, which in turn waits on more data to arrive. This even persists after the http-connection has been broken (according to netstat). Maybe, somehow, the stream doesn't recognize the end of transmission, and thus continues to wait for data? dvo->lo: Please have a look at this. dvo->lo: msc has setup a server with the php script. Please contact him if you need to use it. P.S.: Philippe, good luck with the petite fête. Should be today. :-)
fixed in eformspp1
REOPEN because it's not fixed. Still crash when submitt the xform
reassign to teh developer
there was another issue which lead to a cras with replace-instance when no valid XML was returned. However, the example PHP will not work like attached here. it uses $_POST, which is an associative array, PHP builds from parsing the POST request's body for name=value&name=value... pairs. XForms posts an XML document. You'll need to get the complete POST body and treat it as an XML document
*** Issue 50354 has been marked as a duplicate of this issue. ***
please verify on cws eformspp1 when it is ready for QA re-open issue and reassign to msc@openoffice.org
reassign failed... please verify on cws eformspp1 when it is ready for QA
test web application is at x:\lo\xmltest.war. you need to use http://<yourhost>/xmltest/receiver as action for your submission. it will return a simple xml instance with one node as a result. you can use smltest/log.jsp to review the submitted instances
verified in cws eformspp1
Hi, this is fixed in the current master. The current master is available at http://download.openoffice.org/680/index.html I close this issue now. Bye Marc
*** Issue 59730 has been marked as a duplicate of this issue. ***