Save as DOCX results in improper XML document

Bug #1053484 reported by Jim Patterson
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libreoffice (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

1) lsb_release -rd
Description: Ubuntu quantal (development branch)
Release: 12.10

2) apt-cache policy libreoffice-writer
libreoffice-writer:
  Installed: 1:3.6.1~rc2-1ubuntu5
  Candidate: 1:3.6.1~rc2-1ubuntu5
  Version table:
 *** 1:3.6.1~rc2-1ubuntu5 0
        500 http://archive.ubuntu.com/ubuntu/ quantal/main i386 Packages
        100 /var/lib/dpkg/status

3) What is expected to happen is when one opens the following via a terminal:

cd ~/Desktop && wget -c https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1053484/+attachment/3325384/+files/EnvS%20243%20Assignment%203.odt -O example.odt && lowriter --nologo example.odt

and save the document as a .docx (Microsoft Office XML) file, it opens successfully in Microsoft Word 2012.

4) What happens instead is it complains:
The file Envs243.docx cannot be opened because there are problems with the contents. [Details] The name in the end tag of the element must match the element type in the start tag. Location: Part: /word/document.xml, Line: 2, Column: 24292

I've confirmed with an XML editor (Jaxe) that document.xml does in fact have invalid XML. Its complaint is similar:
The element type w:p must be terminated by a corresponding end-tag </w:p> at line 2.

Revision history for this message
Jim Patterson (jimp-launchpad-rs9z) wrote :
Revision history for this message
Jim Patterson (jimp-launchpad-rs9z) wrote :

Version where problem found was 1:3.6.1-rc2-ubuntu3 . I thought for sure there would be a standard field for this in your bug system.

description: updated
Revision history for this message
penalvch (penalvch) wrote :

Jim Patterson, thank you for taking the time to report this and helping to make Ubuntu better. The issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software by following the instructions verbatim at http://wiki.documentfoundation.org/BugReport . If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about the status.

Thank you for your understanding.

Confirmed via the following environment:
lsb_release -rd
Description: Ubuntu quantal (development branch)
Release: 12.10

apt-cache policy libreoffice-writer
libreoffice-writer:
  Installed: 1:3.6.1~rc2-1ubuntu5
  Candidate: 1:3.6.1~rc2-1ubuntu5
  Version table:
 *** 1:3.6.1~rc2-1ubuntu5 0
        500 http://archive.ubuntu.com/ubuntu/ quantal/main i386 Packages
        100 /var/lib/dpkg/status

apt-cache policy wine1.5
wine1.5:
  Installed: 1.5.12-0ubuntu1
  Candidate: 1.5.12-0ubuntu1
  Version table:
 *** 1.5.12-0ubuntu1 0
        100 /var/lib/dpkg/status

Microsoft Office Professional Plus 2010
Version 14.0.6023.1000 (32-bit)

The file example.docx cannot be opened because there are problems with the contents.

Details
Opening and ending tag mismatch: p line 0 and hyperlink
Location: Part: /word/document/xml, Line: 2, Column: 2848

Helpful Bug Reporting Link:
https://help.ubuntu.com/community/ReportingBugs#Bug_Reporting_Etiquette

description: updated
Changed in libreoffice (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Jim Patterson (jimp-launchpad-rs9z) wrote :

My bug appears to be the same as LO Bug 52610 - FILESAVE particular document as .docx (Office Open): Can not be opened with other office software . I'll try to do some testing with their latest beta which includes a fix, and will update this bug with the results. It's reportedly fixed in 3.5.7

Revision history for this message
penalvch (penalvch) wrote :

Jim Patterson, regarding your comments https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1053484/comments/4 :

>"My bug appears to be the same as LO Bug 52610 - FILESAVE particular document as .docx (Office Open): Can not be opened with other office software . I'll try to do some testing with their latest beta which includes a fix, and will update this bug with the results. It's reportedly fixed in 3.5.7"

Please file a new bug, as th fix for https://bugs.freedesktop.org/show_bug.cgi?id=52610 was released in 3.6.1. The Quantal repo is based on the 3.6.1 branch, and the bug is reproducible in Quantal.

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This release of Ubuntu is no longer receiving maintenance updates. If this is still an issue on a maintained version of Ubuntu please let us know.

Changed in libreoffice (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This bug has sat incomplete for 6 months. Marking invalid.

Changed in libreoffice (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.