<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>191821</bug_id>
          
          <creation_ts>2009-05-06 17:00:26 +0000</creation_ts>
          <short_desc>Tree path wrong when compressing a dir in a symlink, contains ../../../</short_desc>
          <delta_ts>2010-01-01 21:24:43 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>ark</product>
          <component>general</component>
          <version>2.12</version>
          <rep_platform>Gentoo Packages</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="DrSlony">bugs</reporter>
          <assigned_to name="Harald Hvaal">metellius</assigned_to>
          <cc>abc.mikey</cc>
    
    <cc>adreeve</cc>
    
    <cc>budinero</cc>
    
    <cc>bugzilla</cc>
    
    <cc>komealy</cc>
    
    <cc>kris</cc>
    
    <cc>luizluca</cc>
    
    <cc>mathieudovan</cc>
    
    <cc>micael.capitao</cc>
    
    <cc>rakuco</cc>
    
    <cc>rbianco77</cc>
    
    <cc>webheaded</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>20</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>753099</commentid>
    <comment_count>0</comment_count>
    <who name="DrSlony">bugs</who>
    <bug_when>2009-05-06 17:00:26 +0000</bug_when>
    <thetext>Version:           2.12 (using KDE 4.2.2)
Compiler:          gcc-4.3.2-r3 
OS:                Linux
Installed from:    Gentoo Packages

I create an archive that I save as /home/drslony/temp/foo.zip
I add this dir to it:
/music/music/Infected Mushroom

/music is a symlink, it points to /mnt/sda6/

The resulting zip archive has this tree:
../../../music/music/Infected Mushroom/2007 - Vicious Delicious/files here

This bug does not happen if instead of selecting the Infected Mushroom dir using the /music symlink, I do it by going to /mnt/sda6/music/ and selecting Infected Mushroom from there, so its related to symlinks.

Here is a screenshot:
http://imagebin.ca/img/ZD-r4FXu.png</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>753412</commentid>
    <comment_count>1</comment_count>
    <who name="Raphael Kubo da Costa">rakuco</who>
    <bug_when>2009-05-07 06:22:21 +0000</bug_when>
    <thetext>I tried to reproduce it here but it worked well. Here&apos;s the procedure I followed:

cd /tmp
mkdir -p a/b
echo &apos;c&apos; &gt; a/b/c.txt
ln -s a z
mkdir -p x/y
# Call ark and create /tmp/x/y/bla.zip
# Click Add Folder and select /tmp/z

Is this what you&apos;ve done?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>759226</commentid>
    <comment_count>2</comment_count>
    <who name="Raphael Kubo da Costa">rakuco</who>
    <bug_when>2009-05-17 21:33:40 +0000</bug_when>
    <thetext>*** Bug 192281 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>759227</commentid>
    <comment_count>3</comment_count>
    <who name="Raphael Kubo da Costa">rakuco</who>
    <bug_when>2009-05-17 21:35:00 +0000</bug_when>
    <thetext>I can confirm this one on 4.2.2 after the comments in bug 192281. Later I&apos;ll check if this is still present with trunk, which uses clizipplugin.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>760461</commentid>
    <comment_count>4</comment_count>
    <who name="Facundo Aguilera">budinero</who>
    <bug_when>2009-05-19 21:39:54 +0000</bug_when>
    <thetext>I&apos;m having the same problem. When adding files from a symlink. 
Try:
$cd ~
$mkdir /tmp/pepe
$echo &apos;c&apos;&gt;/tmp/pepe/pepa.txt
$ln -s /tmp/pepe pepe_link
now create bla.zip somewhere, and add ~/pepe_link/pepa.txt
In addition, I have the same behavior with Squeeze.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>780792</commentid>
    <comment_count>5</comment_count>
    <who name="Facundo Aguilera">budinero</who>
    <bug_when>2009-06-23 22:45:36 +0000</bug_when>
    <thetext>Trunk has the same problem?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>780832</commentid>
    <comment_count>6</comment_count>
    <who name="Raphael Kubo da Costa">rakuco</who>
    <bug_when>2009-06-23 23:40:59 +0000</bug_when>
    <thetext>Yes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>814517</commentid>
    <comment_count>7</comment_count>
    <who name="DrSlony">bugs</who>
    <bug_when>2009-08-18 19:52:59 +0000</bug_when>
    <thetext>Any progress? Fixed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>814764</commentid>
    <comment_count>8</comment_count>
    <who name="Raphael Kubo da Costa">rakuco</who>
    <bug_when>2009-08-19 05:53:33 +0000</bug_when>
    <thetext>Not yet. Both Harald and I have been quite busy lately, so there hasn&apos;t been much time for either of us to give Ark much love.

Patches are welcome, though :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>814766</commentid>
    <comment_count>9</comment_count>
    <who name="Raphael Kubo da Costa">rakuco</who>
    <bug_when>2009-08-19 06:21:34 +0000</bug_when>
    <thetext>*** Bug 204123 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>818139</commentid>
    <comment_count>10</comment_count>
    <who name="Facundo Aguilera">budinero</who>
    <bug_when>2009-08-24 21:13:39 +0000</bug_when>
    <thetext>I don&apos;t have this problem using 7z format in 4.3 (and 7z is better than zip, rar...).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>819198</commentid>
    <comment_count>11</comment_count>
    <who name="Roberto Bianco">rbianco77</who>
    <bug_when>2009-08-26 16:28:27 +0000</bug_when>
    <thetext>I have same problem</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>828275</commentid>
    <comment_count>12</comment_count>
    <who name="DrSlony">bugs</who>
    <bug_when>2009-09-10 12:47:37 +0000</bug_when>
    <thetext>Ark-4.3.1, still not fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>834482</commentid>
    <comment_count>13</comment_count>
    <who name="Matty">mathieudovan</who>
    <bug_when>2009-09-23 03:55:31 +0000</bug_when>
    <thetext>Same problem using 4.2.4 in Slackware
Ark 2.1.2

Interestingly, Dolphin has weird behavior when working with symlinks. 

If for example a user has a link on the desktop pointing to /data/docs/folder, Dolphin will display /home/username/Desktop/data/docs/folder.

It seems that this could be related.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>835894</commentid>
    <comment_count>14</comment_count>
    <who name="Janet">bugzilla</who>
    <bug_when>2009-09-26 13:59:13 +0000</bug_when>
    <thetext>Cannot confirm dolphin part of Comment #13. Symlinks are shown fine in dolphin of 4.3.1 so this cannot be related.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>836029</commentid>
    <comment_count>15</comment_count>
    <who name="Matty">mathieudovan</who>
    <bug_when>2009-09-26 19:17:19 +0000</bug_when>
    <thetext>Janet:
Have you tried with symlinks that point to a different partition? This is when the behavior happens for me in Dolphin and the weird packaging in Ark.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>836185</commentid>
    <comment_count>16</comment_count>
    <who name="Janet">bugzilla</who>
    <bug_when>2009-09-27 04:14:45 +0000</bug_when>
    <thetext>@Matty: Yes, have tried that: /media/disk2part5/Multimedia/Samples linked to ~/Desktop/Samples shows as ~/Desktop/Samples in Dolphin.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>837654</commentid>
    <comment_count>17</comment_count>
    <who name="Matty">mathieudovan</who>
    <bug_when>2009-09-30 02:20:20 +0000</bug_when>
    <thetext>Ok, I know what is causing the link behavior in Dolphin. 

1. If you right click and select &quot;link to new location(URL)&quot; and enter the path, then everything is fine. When you open up Dolphin, you get the actual path.

2. When you drag a folder and select &quot;link here&quot;, the link that is created contains the relative path. 

So if you have:
/path/to/folder1
/home/matty/folder1 (where folder1 is the link to /path/to/folder1)

If you use method 1, Dolphin displays /path/to/folder1
method 2, Dolphin displays /home/matty/folder1 

Another thing to note is that when you use method 2, you also get a folder icon with a little arrow at the bottom left, indicating that it is a link. 

Perhaps this inconsistency should be addressed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>837661</commentid>
    <comment_count>18</comment_count>
    <who name="Raphael Kubo da Costa">rakuco</who>
    <bug_when>2009-09-30 03:03:14 +0000</bug_when>
    <thetext>Matty, I couldn&apos;t understand if the problem in Dolphin you&apos;ve described relates to Ark.

In case it doesn&apos;t, please file a separate bug report for Dolphin.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>837842</commentid>
    <comment_count>19</comment_count>
    <who name="Janet">bugzilla</who>
    <bug_when>2009-09-30 14:15:48 +0000</bug_when>
    <thetext>Matty, I&apos;m sure this has nothing to do with ark. And you mix the creation of symlinks and URLs, that&apos;s something totally different and no inconsistency.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>838289</commentid>
    <comment_count>20</comment_count>
    <who name="Matty">mathieudovan</who>
    <bug_when>2009-10-01 03:58:38 +0000</bug_when>
    <thetext>@Janet:
Ok I don&apos;t care to split hairs here, but when in Dolphin and you right-click and choose to compress you get,

incorrect behavior (described by the OP) when using symlinks,
correct behavior when using URL

I think its reasonable to think that this might help with troubleshooting the problem. Do with this information as you wish.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>844077</commentid>
    <comment_count>21</comment_count>
    <who name="Kris Moore">kris</who>
    <bug_when>2009-10-12 18:28:45 +0000</bug_when>
    <thetext>I&apos;m seeing this problem on PC-BSD as well, running Ark 2.1.3 and KDE 4.3.1. 

Its easily repeated, we have /home as a symlink to /usr/home, so when you navigate to a file under /home/ and add it, it ends up with a bunch of bogus &quot;../../../&quot; lines in the added file path. However, if you add the file from /usr/home directly, it works fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>846949</commentid>
    <comment_count>22</comment_count>
    <who name="Luiz Angelo De Luca">luizluca</who>
    <bug_when>2009-10-19 00:21:28 +0000</bug_when>
    <thetext>No big news but also present on Opensuse 11.1 x86_64 with 4.3.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>863661</commentid>
    <comment_count>23</comment_count>
    <who name="mikey">abc.mikey</who>
    <bug_when>2009-11-17 15:14:10 +0000</bug_when>
    <thetext>Can confirm for Gentoo AMD_64 with 4.3.1 Ark</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>873127</commentid>
    <comment_count>24</comment_count>
    <who name="webhead">webheaded</who>
    <bug_when>2009-12-04 01:14:53 +0000</bug_when>
    <thetext>I can confirm this bug as well with: 
Arch Linux x64.  
KDE 4.3.4
Ark 2.1.3

I&apos;ve been experiencing this for some time and finally decided to figure out what was going on.  Good to know it isn&apos;t just me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>888520</commentid>
    <comment_count>25</comment_count>
    <who name="Raphael Kubo da Costa">rakuco</who>
    <bug_when>2009-12-29 04:11:40 +0000</bug_when>
    <thetext>*** Bug 215298 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>888527</commentid>
    <comment_count>26</comment_count>
    <who name="Raphael Kubo da Costa">rakuco</who>
    <bug_when>2009-12-29 05:57:21 +0000</bug_when>
    <thetext>SVN commit 1067179 by rkcosta:

Do not call QDir::relativeFilePath() from QDir::current().

QDir::setCurrent() is called if global work dir is set, which ends
up resolving symlinks automatically. Creating a QDir and calling
relativeFilePath() on this object solves the problem.

BUG: 191821

 M  +12 -7     kerfuffle/cliinterface.cpp  
 M  +14 -9     plugins/libarchive/libarchivehandler.cpp  
 M  +2 -0      plugins/libarchive/libarchivehandler.h  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1067179</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>888529</commentid>
    <comment_count>27</comment_count>
    <who name="Raphael Kubo da Costa">rakuco</who>
    <bug_when>2009-12-29 06:08:13 +0000</bug_when>
    <thetext>SVN commit 1067183 by rkcosta:

Backport r1067179.

Do not call QDir::relativeFilePath() from QDir::current().

QDir::setCurrent() is called if global work dir is set, which ends
up resolving symlinks automatically. Creating a QDir and calling
relativeFilePath() on this object solves the problem.

CCBUG: 191821


 M  +12 -7     kerfuffle/cliinterface.cpp  
 M  +14 -9     plugins/libarchive/libarchivehandler.cpp  
 M  +2 -0      plugins/libarchive/libarchivehandler.h  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1067183</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>890304</commentid>
    <comment_count>28</comment_count>
    <who name="Raphael Kubo da Costa">rakuco</who>
    <bug_when>2010-01-01 21:24:43 +0000</bug_when>
    <thetext>*** Bug 220923 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>