Bug 81717 - FILESAVE: Headless mode java concurrent request to convert odt to doc, XOutputStream used to write doc result in document mixup.
Summary: FILESAVE: Headless mode java concurrent request to convert odt to doc, XOutpu...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version: 4.2.5.2 release
Hardware: Other Windows (All)
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-24 15:13 UTC by Ranjeeth Rajendran
Modified: 2014-07-25 08:42 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Ranjeeth Rajendran 2014-07-24 15:13:04 UTC
From java we launch LO under Headless mode(socket connection with 5instance of LO) and concurrent request made to convert odt to doc, XOutputStream used to output doc resulted in document mixup.

Concurrent request to convert odt to doc, XOutputStream used to write DOC result in document mixup.

for example-
I have A.odt and B.odt and converting it to A.doc and B.doc respectively.

Either A.doc contains the content of B.odt or B.doc contains the content of A.odt.

This happens very randomly not always.

Steps to reproduce:
1. launch LO under headless mode(5 instance socket connection )from java
2. Make 100 concurrent request to convert documents every document has different contents.
3. Verify the conversion(randomly documents are mixed up)

Work Around:
Dont use XOutputStream wrapper to store file, Save the converted file to local file, and use standard java api to write to the java outputstrem

This issue is reproducible in all versions of LO 3.x and 4.x
Operating System: Windows 7
Version: 4.2.5.2 release


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.