Issue 50286 - XForm: OOo crash with POST method
Summary: XForm: OOo crash with POST method
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: programming (show other issues)
Version: 680m104
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: marc.neumann
QA Contact: issues@sw
URL:
Keywords:
: 50354 59730 (view as issue list)
Depends on:
Blocks:
 
Reported: 2005-06-03 15:09 UTC by allart
Modified: 2013-08-07 14:42 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
This document crashes OOo with POST method in the submission (7.55 KB, application/vnd.oasis.opendocument.text)
2005-06-06 09:57 UTC, allart
no flags Details
The generated logs (1.18 KB, text/plain)
2005-06-06 10:08 UTC, allart
no flags Details
The PHP script (832 bytes, text/plain)
2005-06-06 10:12 UTC, allart
no flags Details
The output of message1.php. (65 bytes, text/plain)
2005-06-06 10:17 UTC, allart
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description allart 2005-06-03 15:09:09 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.
Comment 1 michael.ruess 2005-06-03 15:12:43 UTC
Reassigned to MSC.
Comment 2 allart 2005-06-06 09:57:28 UTC
Created attachment 26921 [details]
This document crashes OOo with POST method in the submission
Comment 3 allart 2005-06-06 10:08:55 UTC
Created attachment 26922 [details]
The generated logs
Comment 4 allart 2005-06-06 10:12:58 UTC
Created attachment 26923 [details]
The PHP script
Comment 5 allart 2005-06-06 10:17:59 UTC
Created attachment 26924 [details]
The output of message1.php.
Comment 6 marc.neumann 2005-06-07 14:26:48 UTC
Hi,

I can reproduce this.
The office loops when replace instance is used in the submission.

Bye Marc
Comment 7 openoffice 2005-06-09 15:35:33 UTC
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. :-)
Comment 8 lo 2005-07-28 14:04:43 UTC
fixed in eformspp1
Comment 9 marc.neumann 2005-09-21 09:34:50 UTC
REOPEN because it's not fixed.

Still crash when submitt the xform
Comment 10 marc.neumann 2005-09-21 09:48:36 UTC
reassign to teh developer
Comment 11 lo 2005-10-17 14:32:25 UTC
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
Comment 12 lo 2005-10-17 14:34:21 UTC
*** Issue 50354 has been marked as a duplicate of this issue. ***
Comment 13 lo 2005-10-18 12:34:16 UTC
please verify on cws eformspp1 when it is ready for QA

re-open issue and reassign to msc@openoffice.org
Comment 14 lo 2005-10-18 12:37:02 UTC
reassign failed...
please verify on cws eformspp1 when it is ready for QA
Comment 15 lo 2005-10-18 12:41:51 UTC
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
Comment 16 marc.neumann 2005-10-20 11:42:40 UTC
verified in cws eformspp1
Comment 17 marc.neumann 2005-10-20 12:08:16 UTC
verified in cws eformspp1
Comment 18 marc.neumann 2006-01-05 07:57:47 UTC
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
Comment 19 marc.neumann 2006-01-05 07:58:53 UTC
*** Issue 59730 has been marked as a duplicate of this issue. ***