Apache OpenOffice (AOO) Bugzilla – Issue 124825
Export to SVG: Error when line contains arrow and text
Last modified: 2017-05-20 10:35:30 UTC
In OpenOffice Draw, when a line contains an arrow and a text, export to SVG fails. The error message is: Error saving the document ...: Write Error. The file could not be written. The error does not occur when lines contain only either an arrow or a text. Steps to reproduce the error: - Create a new OpenOffice Draw Document. - Draw a line. - Define an arrow style for the line other than "- none -" on one or both sides. - Add some text to the line. - Export the document to SVG. --> Error After removing either the arrow or the text from the line, the export succeeds. Peter
Can not reproduce AOO410m18(Build:9764) - Rev. 1589052 2014-04-22 12:11 - Linux x86_64 Debian What exactly do you mean by "Add some text to the line." ?
Created attachment 83340 [details] Sample document Simply try sample document
Still Reproducible with sample document and with "AOO 4.1.0 Release – German UI / German locale [AOO410m18(Build:9764) - Rev. 1589052 2014-04-22 11:43:54]" on German WIN7 Home Premium (64bit)", “historic” 4. User Profile used for all predecessor versions Was still ok with OOo 3.3.0, so Regression!
(a) Already reproducible with AOO 4.0.0 (WIN) (b) Was still ok wiht AOO 3.4.1 (c) Message: "Error saving the document: DocumentName The file could not be written" (d) Still Reproducible with server installation of "AOO 4.1.0-dev – English UI / German locale - [AOO410m14(Build:9760) - Rev. 1583418 2014-05-03]" on German WIN7 Home Premium (64bit)", own separate user profile.
Regression from AOO341, no crash but filter fails (exception from export filter is fetched). Taking a look...
Found the problem, the SVG export tries to generate a name for the shape, but only in one case. The other cases add the locall ycreated ID directly before calling SVGActionWriter::WriteMetaFile, handig over a null pointer. That pointer is handed trough to and used in SVGActionWriter::ImplWriteActions, in the case of line start/end definitions *without* testing it. Adding the tests does the trick. It looks as if line start/end support was added later, this may be the reason that AOO341 does not crash, but the arrowheads may probably be missing. Preparing commit...
"alg" committed SVN revision 1607839 into trunk: i124825 secure usage of object ID in preparation of names for line start/end ...
Comitted, done. Also a safe fix with regression state (from AOO341). A candidate for AOO411, requesting.
grant showstopper flag
Preparing to add to AOO411...
"alg" committed SVN revision 1607862 into branches/AOO410: i124825 secure usage of object ID in preparation of names for line start/end ...
OKay, added to AOO411, done.
Hi Verified in the new build that I dont to see this issue . Tested on : AOO 4.1.1 m2 on Windows 8. I see that a line with text in Draw is getting exported to SVG format Thanks Rekha
Could not reproduce the error with AOO411m2(Build:9771) - Rev. 1608452 under Windows 7 SP1 x64. Apparently the bug is fixed. Following the instructions in the ODG file revealed another bug https://issues.apache.org/ooo/show_bug.cgi?id=125277
Change the status to Verified / Fixed based on testing results in comment 13 and comment 14