Confluence 5.1.5 Word export not recognized as Word by OpenOffice

I've been opening Confluence-exported Word documents in OpenOffice Writer from 4.x and 5.x for quite a while without problems. With exports from 5.1.5, OpenOffice doesn't recognize the document. It brings up an ASCII Filter Options dialog, and whatever the settings, displays raw XML. I tried OOW 3.x on Mac and Windows and 4.0 on Windows.

I'm not sure when this broke but I'm pretty sure I've used the feature successfully in the last month or two.

The problem appears to be due to Confluence adding an inappropriate email header, as shown below. I can work around the problem by deleting everything before the <html ...> tag. Word apparently is smart enough to ignore that stuff and open it.

Message-ID: &lt;1266246697.3.1378345893750.JavaMail.confluence@ip-10-253-107-12.us-west-2.compute.internal&gt;
Subject: Exported From Confluence
MIME-Version: 1.0
Content-Type: multipart/related; 
	boundary="----=_Part_2_2017844387.1378345893746"

------=_Part_2_2017844387.1378345893746
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Content-Location: file:///C:/exported.html

&lt;html xmlns:o=3D'urn:schemas-microsoft-com:office:office'
      xmlns:w=3D'urn:schemas-microsoft-com:office:word'
      xmlns:v=3D'urn:schemas-microsoft-com:vml'
      xmlns=3D'urn:w3-org-ns:HTML'&gt;
&lt;head&gt;
    &lt;meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-8=
"&gt;

1 answer

I can produce the same problem in OpenOffice but if I open the document in MS Word, it is displayed fine (tested in 5.x and 4.x). The issue seem to lie on the OpenOffice itself, perhaps its version? There's also an improvement request to get OpenOffice officially supported here: https://jira.atlassian.com/browse/CONF-17391

.doc files are not supposed to start with an email header.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

797 views 2 13
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you