Bug 49944 - FILEOPEN: File Corruption
Summary: FILEOPEN: File Corruption
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.3 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-15 02:03 UTC by wasgij6
Modified: 2013-11-15 23:16 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
First Error (24.15 KB, image/gif)
2012-05-15 02:03 UTC, wasgij6
Details
Corrupt File.doc (17.19 KB, application/msword)
2012-05-18 14:01 UTC, wasgij6
Details
console logs with master (6.24 KB, text/plain)
2012-05-19 01:36 UTC, Julien Nabet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wasgij6 2012-05-15 02:03:03 UTC
Created attachment 61670 [details]
First Error

Problem description: When i create a .doc file with office 2011 for mac then save it to my flash drive, i try to open the file with libreoffice 3.5.3 and it says my file is corrupt.

Steps to reproduce:
1. create a .doc file with office 2011 for mac
2. save to flash drive
3. try to open file with libreoffice 3.5.3 on windows 7 x64

Current behavior: libreoffice says my file is corrupt and asks if i want to repair it, i click yes, then it says read error. To fix the problem i had to upload the file to google docs, then download the file. I think when google converts the file it fixes it. Also the file did not have any special formatting or fonts. 

Expected behavior: Open the file normally

Platform (if different from the browser): 
              
Browser: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:12.0) Gecko/20120427 Firefox/12.0
Comment 1 Julien Nabet 2012-05-18 06:28:57 UTC
Created attachment 61816 [details]
Corrupt File.doc

Did you try to open the file with unzip or equivalent ?

Could you attach the file so we can reproduce the problem ?
Comment 2 wasgij6 2012-05-18 14:01:06 UTC
On 5/18/2012 7:28 AM, bugzilla-daemon@freedesktop.org wrote:
> https://bugs.freedesktop.org/show_bug.cgi?id=49944
>
> Julien Nabet<serval2412@yahoo.fr>  changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>               Status|UNCONFIRMED                 |NEEDINFO
>                   CC|                            |serval2412@yahoo.fr
>       Ever Confirmed|0                           |1
>
> --- Comment #1 from Julien Nabet<serval2412@yahoo.fr>  2012-05-18 06:28:57 PDT ---
> Did you try to open the file with unzip or equivalent ?
>
> Could you attach the file so we can reproduce the problem ?
>
I will attach the document but please respect my privacy, this is my 
final paper for my college philosophy class.

thanks
Comment 3 Julien Nabet 2012-05-18 15:55:02 UTC
(In reply to comment #2)
> On 5/18/2012 7:28 AM, bugzilla-daemon@freedesktop.org wrote:
> > https://bugs.freedesktop.org/show_bug.cgi?id=49944
> >
> > Julien Nabet<serval2412@yahoo.fr>  changed:
> >
> >             What    |Removed                     |Added
> > ----------------------------------------------------------------------------
> >               Status|UNCONFIRMED                 |NEEDINFO
> >                   CC|                            |serval2412@yahoo.fr
> >       Ever Confirmed|0                           |1
> >
> > --- Comment #1 from Julien Nabet<serval2412@yahoo.fr>  2012-05-18 06:28:57 PDT ---
> > Did you try to open the file with unzip or equivalent ?
> >
> > Could you attach the file so we can reproduce the problem ?
> >
> I will attach the document but please respect my privacy, this is my 
> final paper for my college philosophy class.
> 
> thanks
Thank you for the file. About privacy, I'll respect it of course. Now don't forget that anybody can access this website...

On pc Debian x86-64, with master updated today, I reproduced the problem.

Noticed this on console :
warn:legacy.osl:27764:1:/home/julien/compile-libreoffice/libo/sw/source/filter/ww8/ww8par.cxx:5505: WinWord 95/97 Reader-Read ohne Storage

Now other questions :
1) can you open the file with Word viewer on Windows (it's free) ?
2) Can you open the file again from your Flashdisk drive with Macos Office 2011 ?
3) could you do the same thing but send the file from Mac to your pc by mail ?
4) can you try to create an xls file on Office 2011 for Mac and do the same thing (so this time with the flash drive) ?
Comment 4 wasgij6 2012-05-18 17:38:18 UTC
On 5/18/2012 4:55 PM, bugzilla-daemon@freedesktop.org wrote:
> https://bugs.freedesktop.org/show_bug.cgi?id=49944
>
> --- Comment #3 from Julien Nabet<serval2412@yahoo.fr>  2012-05-18 15:55:02 PDT ---
> (In reply to comment #2)
>> On 5/18/2012 7:28 AM, bugzilla-daemon@freedesktop.org wrote:
>>> https://bugs.freedesktop.org/show_bug.cgi?id=49944
>>>
>>> Julien Nabet<serval2412@yahoo.fr>   changed:
>>>
>>>              What    |Removed                     |Added
>>> ----------------------------------------------------------------------------
>>>                Status|UNCONFIRMED                 |NEEDINFO
>>>                    CC|                            |serval2412@yahoo.fr
>>>        Ever Confirmed|0                           |1
>>>
>>> --- Comment #1 from Julien Nabet<serval2412@yahoo.fr>   2012-05-18 06:28:57 PDT ---
>>> Did you try to open the file with unzip or equivalent ?
>>>
>>> Could you attach the file so we can reproduce the problem ?
>>>
>> I will attach the document but please respect my privacy, this is my
>> final paper for my college philosophy class.
>>
>> thanks
> Thank you for the file. About privacy, I'll respect it of course. Now don't
> forget that anybody can access this website...
>
> On pc Debian x86-64, with master updated today, I reproduced the problem.
>
> Noticed this on console :
> warn:legacy.osl:27764:1:/home/julien/compile-libreoffice/libo/sw/source/filter/ww8/ww8par.cxx:5505:
> WinWord 95/97 Reader-Read ohne Storage
>
> Now other questions :
> 1) can you open the file with Word viewer on Windows (it's free) ?
> 2) Can you open the file again from your Flashdisk drive with Macos Office 2011
> ?
> 3) could you do the same thing but send the file from Mac to your pc by mail ?
> 4) can you try to create an xls file on Office 2011 for Mac and do the same
> thing (so this time with the flash drive) ?
>
can my attachment be deleted?
Comment 5 wasgij6 2012-05-18 18:48:56 UTC
On 5/18/2012 4:55 PM, bugzilla-daemon@freedesktop.org wrote:
> https://bugs.freedesktop.org/show_bug.cgi?id=49944
>
> --- Comment #3 from Julien Nabet<serval2412@yahoo.fr>  2012-05-18 15:55:02 PDT ---
> (In reply to comment #2)
>> On 5/18/2012 7:28 AM, bugzilla-daemon@freedesktop.org wrote:
>>> https://bugs.freedesktop.org/show_bug.cgi?id=49944
>>>
>>> Julien Nabet<serval2412@yahoo.fr>   changed:
>>>
>>>              What    |Removed                     |Added
>>> ----------------------------------------------------------------------------
>>>                Status|UNCONFIRMED                 |NEEDINFO
>>>                    CC|                            |serval2412@yahoo.fr
>>>        Ever Confirmed|0                           |1
>>>
>>> --- Comment #1 from Julien Nabet<serval2412@yahoo.fr>   2012-05-18 06:28:57 PDT ---
>>> Did you try to open the file with unzip or equivalent ?
>>>
>>> Could you attach the file so we can reproduce the problem ?
>>>
>> I will attach the document but please respect my privacy, this is my
>> final paper for my college philosophy class.
>>
>> thanks
> Thank you for the file. About privacy, I'll respect it of course. Now don't
> forget that anybody can access this website...
>
> On pc Debian x86-64, with master updated today, I reproduced the problem.
>
> Noticed this on console :
> warn:legacy.osl:27764:1:/home/julien/compile-libreoffice/libo/sw/source/filter/ww8/ww8par.cxx:5505:
> WinWord 95/97 Reader-Read ohne Storage
>
> Now other questions :
> 1) can you open the file with Word viewer on Windows (it's free) ?
> 2) Can you open the file again from your Flashdisk drive with Macos Office 2011
> ?
> 3) could you do the same thing but send the file from Mac to your pc by mail ?
> 4) can you try to create an xls file on Office 2011 for Mac and do the same
> thing (so this time with the flash drive) ?
>
1. word viewer cannot open the file, it asks to convert the files text 
encoding then when it opens it shows weird characters.

as for the rest of your questions, i dont have access to the Mac 
machines anymore since school is out sorry
Comment 6 Julien Nabet 2012-05-18 22:20:51 UTC
About removing an attachment, I don't know if it's possible for a simple user like us. Perhaps it's possible to ask this to an admin but I don't know how it works.

About the problem, i sent you in private a file which opens ok on Linux (with 3.5 branch updated yesterday).
Comment 7 wasgij6 2012-05-18 23:39:41 UTC
(In reply to comment #6)
> About removing an attachment, I don't know if it's possible for a simple user
> like us. Perhaps it's possible to ask this to an admin but I don't know how it
> works.
> 
> About the problem, i sent you in private a file which opens ok on Linux (with
> 3.5 branch updated yesterday).

i opened the file ok. It must be a problem with Mac saving .doc files and the way libreoffice opens them
Comment 8 Julien Nabet 2012-05-19 01:36:28 UTC
Created attachment 61825 [details]
console logs with master

I noticed this with your file :
if you say no when LO asks you if you want to repair the file, it shows you another dialog box where there's only "OK" ("The file <filename> could not be repaired and therefore cannot be opened")
If you click "OK", it comes back to the first dialog box, etc.

If you do the same about less that ten times (I haven't counted), the file opens !

I've got the same behaviour with 3.5 and master, so I attached the console logs from master compiled sources.
Comment 9 Julien Nabet 2012-05-19 01:52:42 UTC
Finally, I also tested with Windows, it opens without problem.
I also made a last test :
- remove the extension ".doc" of the file, Linux LO opens it ok (with the same console messages)
Comment 10 wasgij6 2012-05-19 14:55:47 UTC
Thanks a lot for all your input. Hopefully this problem gets fixed soon. If any more information is needed let me know.
Comment 11 Julien Nabet 2012-05-21 13:55:55 UTC
Forgot to update the status since no more information is needed for the moment.
Comment 12 Teo91 2013-09-29 19:27:37 UTC
This bug is no more with LO 4.1.1 on Windows 7.

The document is opened correctly, no corruption.
Comment 13 Julien Nabet 2013-09-29 20:11:43 UTC
Since there's no specific fix, I'll put WFM.