Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | I can not convert MS Word the document to HTML and back to doc. | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Writer | Reporter: | nassaja <nassaja> | ||||||||
Component: | save-export | Assignee: | michael.ruess | ||||||||
Status: | CLOSED FIXED | QA Contact: | issues@sw <issues> | ||||||||
Severity: | Trivial | ||||||||||
Priority: | P2 | CC: | issues, kpalagin, michael.ruess, openoffice, orw | ||||||||
Version: | OOo 3.0 | Keywords: | crash | ||||||||
Target Milestone: | --- | ||||||||||
Hardware: | All | ||||||||||
OS: | All | ||||||||||
Issue Type: | DEFECT | Latest Confirmation in: | --- | ||||||||
Developer Difficulty: | --- | ||||||||||
Attachments: |
|
Description
nassaja
2008-11-25 08:04:59 UTC
Created attachment 58275 [details]
This original file, which I convert to html
Created attachment 58276 [details]
This is output html file, which I can't convert back to doc file
Created attachment 58277 [details]
This is linux console log
It is possible. When opening a HTML document without a preselected filter, it is opened as webpage. You have to do it via fileOpen dialog. There, set "HTML document (OpenOffice Writer)" as filter. Then the HTML will be opened as Writer document and it will be possible to save it as MS Word format. closed. You don't understand me. I do not use GUI, I'm use headless mode, and JODConverter. This is in Ubuntu linux, and OpenOffice 3.0 from Ubuntu repo. And in headless mode I'm try convert this file by doc->html->doc schema. It's work only for doc->html, on html->doc my headless OpenOffice hangs or exist with error. I think, this is because document contain table. When I remove table from html file by hand, it converts normally. Sorry for my English. Little addition. In GUI mode all works fine. In headless mode OO hangs or abnormally exist when try to convert this html document to doc. But it can convert this html to odt. JSK: Please have a look And in general, a headless mode is far from stability. In headless mode oo hangs once a day for me. I must solve this problems with various props. Daemontools for autorestart, perl script for check oo service once in 10 minutes, cron job for restart oo once in day. Sometimes there are miracles. For example, today ОО worked itself and can answer by network queries. But did not wish to convert documents. JODConverter produce strange error. After restarting oo manually all has work fine. -> PL. TM suggested that you could be the right one to have a look at this. Neither me nor TM think that this issue is our business. However, i'd like to be sure. No idea at all, however since I'm not even remotely involved in doc or html filters nor in the java bridge nor in the framework I feel a little out of sorts. pl->cd: I don't know whether this is actually a framework problem, but perhaps you would know someone who might feel responsible for the involved code ? How to produce this error: 1. Today I use ubuntu 8.10 x86_64 with vanilla OO 3.0 from this site. But I produce this error on ubuntu x86 too. 2. Download converter (jodconverter-2.2.1.zip) from http://www.artofsolving.com/opensource/jodconverter ( direct link to sourceforge - http://sourceforge.net/project/downloading.php?group_id=91849&use_mirror=dfn&filename=jodconverter-2.2.1.zip&23833455 ) into test folder; 3. Unzip converter; 4. Download test file http://www.openoffice.org/nonav/issues/showattachment.cgi/58275/original.doc to test folder 5. Start OO with network support: soffice -nofirststartwizard -norestore -accept="socket,host=127.0.0.1,port=8100;urp;" or in headless mode without X server: soffice -nofirststartwizard -norestore -headless -accept="socket,host=127.0.0.1,port=8100;urp;" 6. convert test file to html: java -jar ./jodconverter-2.2.1/lib/jodconverter-cli-2.2.1.jar original.doc original.html 7. Look, there new original.html file in test folder. 8. Convert html back to doc: java -jar ./jodconverter-2.2.1/lib/jodconverter-cli-2.2.1.jar original.html test.doc 9. Baah! OO window closed unexpected. Converter raise "Exception in thread "main" com.artofsolving.jodconverter.openoffice.connection.OpenOfficeException: conversion failed: could not save output document". 10. Restart OO by 5. 11. Successfully converting html to odt: java -jar ./jodconverter-2.2.1/lib/jodconverter-cli-2.2.1.jar original.html test.odt 12. Successfully converting odt to doc: java -jar ./jodconverter-2.2.1/lib/jodconverter-cli-2.2.1.jar test.odt result.doc ===== Question - why it can convert doc to html, but can't covert html to doc? cd->sba: Could you please check this issue. As nassaja can reproducible this issue with/without headless mode it's currently not correctly assigned. Put myself and CMC on c/c. SBA->CMC: Any idea? SBA->MRU: After more info rolled in, please see if this is a filter issue, thank you. Reassigned to MRU. Ok, was my fault in he beginning, I did not fully understand the problem. I now can reproduce the crash in normal OOo process. One needs to open the attached .doc, save it as HTML, reopen the HTML, re-export to .doc and close the document. Then the crash will happen. The report ID is r8wvkuc. MRU->SJ: could you please initially have a look? There is SdrModel somewhere on top of the stack. I also put OD and HBRINKM onto cc list. If I understand correctly this is crash, thus priority and keyword. Setting appropriate target for P2 issue. sj->mru: We fixed some table problems, so in OOO300m15 and DEV300m38 I am not able to reproduce this issue any longer (in OOO300m12 I am still crashing). Can you please check this. changed owner Yes, I can confirm, that this now works correctly in OOO 3.0.1 and dev 3.1 branch. |