Bug 215298 - compressed packages created under symlinked folders are corrupted
Summary: compressed packages created under symlinked folders are corrupted
Status: RESOLVED DUPLICATE of bug 191821
Alias: None
Product: ark
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Harald Hvaal
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-19 17:54 UTC by Micael Capitão
Modified: 2009-12-29 04:11 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
broken archive created by ark (230 bytes, application/zip)
2009-12-22 16:05 UTC, Benjamin Schmitz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Micael Capitão 2009-11-19 17:54:41 UTC
Version:           2.13 (using KDE 4.3.3)
Compiler:          gcc 4.4.2 
OS:                Linux
Installed from:    Archlinux Packages

I dont't know if it is a duplicated of bug 192281 or not.
When in dolphin (in my home directory) I select files and folders to compress using the service menu, a perfect compressed package is created with all the files and folders selected in. The same occurs if I use ark directly.
I have many symlinks to folders in my home directory.
The problem occurs when I try to create compressed packages containing files and folders that are in those symlinked folders. It creates a package with all folders starting at ~/  and finishing in the directory where the package was created. It doesn't save the contents I selected, only saves the folders and some files... sometimes it creates an empty package.
If I go directly to the folder pointed by the symlink it works as expected.
Comment 1 Benjamin Schmitz 2009-12-22 16:05:18 UTC
Created attachment 39242 [details]
broken archive created by ark

Broken archive that was created by adding files from a symlinked directory.
Comment 2 Benjamin Schmitz 2009-12-22 16:05:39 UTC
This is indeed an annoying problem:

My home directory is located at "/home/ich". However, "/home/ich" is actually a symlink to a directory on another drive. This hasn't caused any problems so far, except when compressing archives with ark.

I have attached an example archive. To create this, I right-clicked the file "test.txt" in my home folder in dolphin and selected "Compress -> as ZIP archive". Look at the funny result it produced.

However, if I navigate to the "real" home directory without using the symlink the result is correct.
Comment 3 Raphael Kubo da Costa 2009-12-29 04:11:40 UTC
This is actually bug 191821; marking as a duplicate.

*** This bug has been marked as a duplicate of bug 191821 ***