Bug 50090 - FILESAVE: Missing <Default> tags in [Content_Types].xml make OOXML not compatible with Windows Phone (see comment 31)
Summary: FILESAVE: Missing <Default> tags in [Content_Types].xml make OOXML not compat...
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: needsWindowsPhone interoperability
Keywords: filter:docx, filter:pptx, filter:xlsx
: 71593 (view as bug list)
Depends on:
Blocks: DOCX PPTX XLSX
  Show dependency treegraph
 
Reported: 2012-05-18 05:42 UTC by gader
Modified: 2021-09-27 15:35 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample docx test file created in LibO (3.31 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2012-05-18 05:42 UTC, gader
Details
Screenshot of the issue that I get on my window's mobile (19.57 KB, image/jpeg)
2014-08-07 05:50 UTC, bisalsingh.nayal
Details
sample doc 4062 (9.00 KB, application/msword)
2014-09-27 11:58 UTC, gader
Details
sample doc 4252 (9.00 KB, application/msword)
2014-09-27 11:58 UTC, gader
Details
rtf symbol test (2.44 KB, application/rtf)
2014-09-27 12:00 UTC, gader
Details
rtf bad symbol test (2.35 KB, application/rtf)
2014-09-27 12:00 UTC, gader
Details
wpad test rtf (270 bytes, application/rtf)
2014-09-27 12:01 UTC, gader
Details
wpad test docx (1.92 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2014-09-27 12:02 UTC, gader
Details
wpad test odt (2.33 KB, application/vnd.oasis.opendocument.text)
2014-09-27 12:02 UTC, gader
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gader 2012-05-18 05:42:01 UTC
Created attachment 61800 [details]
Sample docx test file created in LibO

Files like xlsx docx and pptx created by LibO cannot be opened by Windows Mobile Office 6.1.
"error, cannot open document"
Files created by desktop office 2007/2010 are working ok.
Comment 1 gader 2012-11-05 22:28:17 UTC
Tesed today with Office Mobile 2010. Xlsx docx and pptx: "error, cannot open document" too.
Comment 2 Thomas Hackert 2013-07-04 16:39:24 UTC
Hello gader, *,
thank you for reporting this bug :)
As I have neither Win mobile nor M$O, would you be so kind to test it with a newer version of LO than 3.5.3, please? And why did you choose "Component UI"? Should it not be better "filters and storage"?

Sorry for the inconvenience
Thomas.
Comment 3 gader 2013-07-05 06:39:47 UTC
Still does not work in LO 4.0.4, THX Thomas.
Comment 4 QA Administrators 2014-06-01 21:30:25 UTC Comment hidden (obsolete)
Comment 5 gader 2014-06-06 14:43:45 UTC
I can confirm that version 4.0.6.2 still has this bug.
In fact I can't open xlsx files on my WM standard device other than created in original office.
All other office-XML files from LO or on-line office converters are invalid.
Comment 6 gader 2014-06-27 17:21:35 UTC
I noticed that I can't also open a simple DOC (97-2003) file created in LO 4.0.6.2 on my WM6.1/6.5 std. device.
The file is opening, I see the first page and then:
An error occurred. The document could not be opened.
Tested on 2 devices WM6.1/6.5 and 2 sample files long/short text.
There is no problem opening XLS or RTF file from LO 4.0.6.2 .
Comment 7 ign_christian 2014-06-27 18:32:08 UTC
Hi Gader.. Version field indicates the oldest version, so I change it back.

Could you please retest with latest stable release: 4.2.5.2 ? Does it happen with all file you ever test? Just wondering..how about blank document?
Comment 8 gader 2014-06-28 06:46:10 UTC
LO 4.2.5.2
blank doc   OK
blank docx  NO
blank rtf   OK
sample doc  NO
sample docx NO
sample rtf  OK
blank xls   OK
blank xlsx  NO
sample xls  OK
sample xlsx NO
blank ppt   OK
blank pptx  NO
sample ppt  OK
sample pptx NO
for XML formats I get info that the file is invalid.
Also with 4.2.5.2 there is a problem with national characters in RTF format.
I see only squares instead of national characters. 4.0.6.2 RTF looks OK.
Comment 9 gader 2014-06-28 08:27:05 UTC
Small correction about RTF.
National characters breaks when saving RTF>RTF in LO 4.0.6.2-4.2.5.2 .
When working with odt or doc and then saving to RTF national characters are OK.
Comment 10 gader 2014-07-02 11:59:54 UTC
After more research I know that to open docx/xlsx/pptx on WM device the file must be valid.
To produce valid file I must save it as odf/ods/odp and convert it via OdfConverter.
Win 7 wordpad also can produce/open docx but like LO files they are not readable on WM.
Comment 11 Joel Madero 2014-08-06 20:46:57 UTC
Well apparently it's hard to find others who even use Windows Mobile - I pinged the QA list and none of us use it. FWIW: http://en.wikipedia.org/wiki/Windows_Mobile#Market_share

We'll continue to try to find someone who uses it to confirm the issue but it's been rough going so far.
Comment 12 bisalsingh.nayal 2014-08-07 05:50:08 UTC
Created attachment 104198 [details]
Screenshot of the issue that I get on my window's mobile
Comment 13 Lars Knickrehm 2014-08-29 09:18:20 UTC
The problem is still present.

Today I tried out multiple changes inside the files, created by LibreOffice and got to the following point:

Whenever I add the following line to "[Content_Types].xml", things work as planned.

<Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" />

I guess adding this tag shouldn't be a big deal. Is there anyone, who can do that?
Comment 14 Lars Knickrehm 2014-08-29 09:20:23 UTC
Additional note: Shall I provide some simple examples created by Mobile Office?
Comment 15 Lars Knickrehm 2014-08-29 09:21:24 UTC
Sorry for spamming, I just forgot to mention, that I'm talking about Windows Phone 8.1!
Comment 16 Joel Madero 2014-09-22 17:58:02 UTC
Version is oldest version, not newest - it was confirmed on 3.5.3 so changing back
Comment 17 retired 2014-09-25 15:45:39 UTC
Confirmed. Test file does not open. WinPhone 81 latest dev release from today says not possible. File is damaged and can't be opened.
Comment 18 Joel Madero 2014-09-25 16:22:54 UTC
I'm almost convinced this isn't our bug per say - it seems like Microsoft is adding some garbage to make it harder for 3rd parties to make compatible files - proof of this is that the file opens fine in both LibreOffice and Microsoft Office on literally every other platform you can test.....
Comment 19 Lars Knickrehm 2014-09-25 16:29:18 UTC
It's actually not a bug, but allowing us to open our files on Windows Phone  would be fine though and supporting different software is nothing less than supporting older file formats.
Comment 20 flamingdescent 2014-09-25 23:32:46 UTC
*** Bug 71593 has been marked as a duplicate of this bug. ***
Comment 21 gader 2014-09-27 11:55:36 UTC
Now I see that windows phone 8.1 is so similar to WM 6.1 when handle open XML.
I created some new test files. Can someone with WP 8.1 could test it?
Try compare it with what you see on PC LO.
Files created with LO
sample4062.doc
sample4252.doc - both files fail to open on OM2010/07, see #c6, #c8

This is what will happen when you change file format while editing file.
To avoid that you must save as, as soon as you open the file.
rtf test.rtf - this is a good file Greek symbols are visible on LO and mobile
rtf test bad.rtf - symbols only visible on LO, on mobile squares instead

This 2 cases above is a possible material for 2 new bugs. (doc on mobile, rtf export)

And to test how well native files are supported on WP 8.1 I created that.
Files created with win7 system w-pad (I don't have now access to w8 w-pad)
wpad test.rtf - opens well on OM2010
wpad test.docx - should open on OM2010 but not, test it on WP8.1
wpad test.odt - should open on WP8.1 since it support open document
Comment 22 gader 2014-09-27 11:58:16 UTC
Created attachment 106949 [details]
sample doc 4062
Comment 23 gader 2014-09-27 11:58:59 UTC
Created attachment 106950 [details]
sample doc 4252
Comment 24 gader 2014-09-27 12:00:10 UTC
Created attachment 106951 [details]
rtf symbol test
Comment 25 gader 2014-09-27 12:00:38 UTC
Created attachment 106952 [details]
rtf bad symbol test
Comment 26 gader 2014-09-27 12:01:37 UTC
Created attachment 106953 [details]
wpad test rtf
Comment 27 gader 2014-09-27 12:02:02 UTC
Created attachment 106954 [details]
wpad test docx
Comment 28 gader 2014-09-27 12:02:35 UTC
Created attachment 106955 [details]
wpad test odt
Comment 29 Lars Knickrehm 2014-09-28 19:13:36 UTC
This bug is getting confusing, I guess it'd be better to split it up into multipe ones, since parts of this appear on parts of Windows Mobile 6.1 and parts on Windows Phone 8.1.

I'm talking about Office Mobile on Windows Phone 8.1 (Lumia 930):
-> When opening that DOCX file from gader@tenbit.pl, all's correct.
-> When opening those RTF files from gader@tenbit.pl all's correct.
-> When opening those DOC files from gader@tenbit.pl I get a corruption warning, but all's correct.
-> ODT files cannot be opened with Office Mobile on Windows Phone 8.1.

So the really main problem on Windows Phone 8.1 seems to be DOCX support, which requires that line.
Comment 30 gader 2014-09-28 23:33:40 UTC
Sorry for that odf file support, of course that's not true.
Could someone remove my email from upper comment?
Comment 31 lesnikowski 2016-02-16 11:13:53 UTC
It is still a problem on 4.2.5.2 and 5.1.0 and Windows Phone 8.1, Lumia 435.

It seems to me the problem is with this line in [Content_Types].xml:

This fails:
<Override PartName="/_rels/.rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>
<Override PartName="/word/_rels/document.xml.rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>

This works:
<Default ContentType="application/vnd.openxmlformats-package.relationships+xml" Extension="rels"/>
<Override PartName="/_rels/.rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>
<Override PartName="/word/_rels/document.xml.rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>


Simply adding "<Default.." line makes the file 'correct' again.
Comment 32 Yousuf Philips (jay) (retired) 2017-05-13 01:16:49 UTC
(In reply to lesnikowski from comment #31)
> This works:
> <Default
> ContentType="application/vnd.openxmlformats-package.relationships+xml"
> Extension="rels"/>
> <Override PartName="/_rels/.rels"
> ContentType="application/vnd.openxmlformats-package.relationships+xml"/>
> <Override PartName="/word/_rels/document.xml.rels"
> ContentType="application/vnd.openxmlformats-package.relationships+xml"/>

Thanks for tracking the issue down, as it would be impossible for us to do it without a windows phone device.

So <Default> tags in /[Content_Types].xml are to mention the default file extension of each content type used in the ooxml file and LO doesnt output these tags.

<Types ...>
  <Default Extension="png" ContentType="image/png" />
  <Default Extension="jpeg" ContentType="image/jpeg" />
  <Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" />
  <Default Extension="xml" ContentType="application/xml" />
  <Default Extension="jpg" ContentType="image/jpeg" />
  <Override ... />
</Types>
Comment 33 QA Administrators 2019-03-05 03:38:40 UTC Comment hidden (obsolete)
Comment 34 gader 2019-04-23 07:17:09 UTC
Still broken in 6.2.3.2
Comment 35 QA Administrators 2021-09-23 03:33:10 UTC Comment hidden (obsolete, spam)
Comment 36 Dennis Roczek 2021-09-27 15:35:23 UTC
(In reply to Yousuf Philips (jay) (retired) from comment #32)
> So <Default> tags in /[Content_Types].xml are to mention the default file
> extension of each content type used in the ooxml file and LO doesnt output
> these tags.
> 
</snip>

So basically:
1.) this is a bug in Windows Phone bug
2.) Windows Phone is dead since ages and nearly nobody uses it any longer (as lag of devices.

--> NOTOURBUG