Bug 253392 - openoffice fails to open filename with spaces decompressed from ark
Summary: openoffice fails to open filename with spaces decompressed from ark
Status: RESOLVED DUPLICATE of bug 176646
Alias: None
Product: ark
Classification: Applications
Component: general (show other bugs)
Version: 2.15
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Harald Hvaal
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-06 15:28 UTC by Guillaume COEUGNET
Modified: 2010-10-14 16:11 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screeshot of the error during opening (172.71 KB, application/x-gzip)
2010-10-07 14:26 UTC, Guillaume COEUGNET
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume COEUGNET 2010-10-06 15:28:26 UTC
Version:           2.15 (using KDE 4.5.1) 
OS:                Linux

Trying to open an odt  file which contains spaces in is path failed with openoffice.
Trying to view a text file which contains spaces in is path succeed with ark viewer

Reproducible: Always

Steps to Reproduce:
Create a zip archive of a directory name with space in it which contains an odt file. 

Actual Results:  
Open the archive with ark and try to view the ODT file leads to a message "file not found" emitted by openoffice.

Expected Results:  
Openoffice should succeed in opening the ODT file

I guess backslashing the space is required. But, as viewing a text file with ark succeed, I would like to know if a wrong string is passed to openoffice (with spaces un-backslashed) from ark or if the bug is more on openoffice side.

Thanks for any answer.
Guillaume.
Comment 1 Raphael Kubo da Costa 2010-10-07 06:51:10 UTC
How do you view the ODT and the text file? Do both open in Ark's internal previewer?
Comment 2 Guillaume COEUGNET 2010-10-07 08:33:02 UTC
Hello Raphael,

The OFT file is opened with OpenOffice. The textfile is opened with ark internal viewer. I'll try to post some screenshots during the day.

Regards,
Guillaume.
Comment 3 Guillaume COEUGNET 2010-10-07 14:26:28 UTC
Created attachment 52314 [details]
Screeshot of the error during opening

This attachement describe the bug. It contains 4 sceenshots (in french):
- ark_dl represents the file download and opening with ark
- ark_view shows the contains of the archive
- ark_open shows the error returned by openoffice
- ark_verify shows that the file exists but was not able to be opened with OOo. The error is probably located near "RECETTE" and "2". There is a space there which is maybe bad interpreted.

I made a mistake, the problem doesn't occured always but only with this ZIP. I try to reproduce the problem under linux unsuccessfully.
It's a professional archive created under Windows XP by another guy. I'm not sure it's due to Windows charset because I have created a zip of files in a directory which contains spaces under Windows XP and opened it from ark and openoffice with no problem...
Comment 4 Raphael Kubo da Costa 2010-10-07 16:36:06 UTC
Hm, I've created a sample zip file here which I'm going to attach and was able to open its files without any problem.

If you extract this zip archive manually and then recompress it, can you then open its files? What if you ask the person who created this archive to zip a text file according to that file naming scheme, especially with the "\" character?

I'm beggining to suspect this is actually bug 176646.
Comment 5 Guillaume COEUGNET 2010-10-14 15:11:17 UTC
Hi !!

On Linux : Decompress the archive and recompress it leads to successfull opening of the ODT files in the archive

On Windows : Decompress the archive and recompress it leads to successfull opening of the ODT files in the archive too ....

Am I expected to understand that the archive was badly created ?? However it's not the first time I encountered this issue (that makes me open this bug report) 

Guillaume
Comment 6 Raphael Kubo da Costa 2010-10-14 15:52:42 UTC
Yes, from what you say this is actually bug 176646 -- the zip file created on Windows is using "\" as its path separator instead of "/", which is not valid according to the zip specification (or at least says Harald in the other bug report).

It might be the case that Ark needs to work around this bug and accept invalid files.

*** This bug has been marked as a duplicate of bug 176646 ***
Comment 7 Guillaume COEUGNET 2010-10-14 16:02:06 UTC
Indeed, maybe it would be usefull that ark handles this Windows lake of seriousness...
Thanks to help me knowing what happened there.

As it's a duplicate bug, maybe this report should be closed ?

Regards,
Guillaume.