Bug 215298

Summary: compressed packages created under symlinked folders are corrupted
Product: [Applications] ark Reporter: Micael Capitão <micael.capitao>
Component: generalAssignee: Harald Hvaal <metellius>
Status: RESOLVED DUPLICATE    
Severity: normal CC: rakuco, vortex
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: broken archive created by ark

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 ***