Bug 81717

Summary: FILESAVE: Headless mode java concurrent request to convert odt to doc, XOutputStream used to write doc result in document mixup.
Product: LibreOffice Reporter: Ranjeeth Rajendran <ranjeeth.rajendran+lo>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: UNCONFIRMED --- QA Contact:
Severity: normal    
Priority: medium CC: chris.vandersnickt
Version: 4.2.5.2 release   
Hardware: Other   
OS: Windows (All)   
Whiteboard: BSA
i915 platform: i915 features:

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.