! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
problems with extracting an archive holding the same file but in different fo...
Status:
RESOLVED: WONTFIX
Product:
Xarchiver
Component:
general

Comments

Description Bj 2006-08-16 10:16:02 CEST
1. I have the file "README.tar", that contains "README" and "folder/README".
2. extract the archive by using xarchiver -e README.tar or the thunar-archive-plugin (extract here).
3. don't change any settings in the extract dialog
4. click extract
5. you'll get an error notification. click to view the error log.
-> xarchiver exits without showing you the error.

when you enable "extract with full path" in the extract dialog, it works.

when extracting the archive from within xarchiver using the dialog, you can see the error message:
mv: will not overwrite just-created `/home/baze/TESTING/README/README' with `README'

now you have to click stop and then you get the notification:
An error occurred while trying to kill the process:
No such process

after clicking ok, the status bar stays at "Waiting for the process to abort..."



with the same thing but using a zip archive instead of .tar, -e extracts only "README" and skips folder/README.
Comment 1 Bj 2006-08-17 22:48:38 CEST
with -e the "extract with full path" option is ok now as it's inactive and checked, but this needs to be done for the extract dialog from within xarchiver too. when that is done too, this can be closed.
Comment 2 Giuseppe Torelli 2006-08-18 05:12:55 CEST
(In reply to comment #1)
> with -e the "extract with full path" option is ok now as it's inactive and
> checked, but this needs to be done for the extract dialog from within xarchiver
> too. when that is done too, this can be closed.
> 

If I do this the user will not be able to extract files without their path. I think you don't want this, right?
Comment 3 Bj 2006-08-18 05:23:51 CEST
well, but if you don't extract the folders in the archive, you run into the same problems with multiple files with the same name again.
imho keeping the folder structure is better ;)
Comment 4 Giuseppe Torelli 2006-08-18 05:26:42 CEST
(In reply to comment #3)
> well, but if you don't extract the folders in the archive, you run into the
> same problems with multiple files with the same name again.
> imho keeping the folder structure is better ;)
> 

I could disable this for tar only or a better solution would be to check if there are same filenames before running the tar command and asking the user what to do (overwrite/skip/cancel). I think I will implement the latter because it looks professional but I have to think how to code this.
Comment 5 Giuseppe Torelli 2006-09-13 10:28:46 CEST
Moved bug to 0.4.1svn
Comment 6 Giuseppe Torelli 2006-10-10 07:00:43 CEST
*** Bug 2341 has been marked as a duplicate of this bug. ***
Comment 7 Giuseppe Torelli 2006-11-08 14:15:41 CET
*** Bug 2534 has been marked as a duplicate of this bug. ***
Comment 8 Bj 2006-11-13 08:40:54 CET
i suggest setting "extract with full path" true for .tar* archives for now and make it insensitive. at least for the version you want to release with xfce4.4.0, so users that don't know about this bug won't suffer from it. it's not the best solution, but it's a workaround that, well, works ;)
Comment 9 Giuseppe Torelli 2006-11-13 08:46:05 CET
Another solution could be to write an entry in the FAQ.
Comment 10 Giuseppe Torelli 2007-12-19 12:25:05 CET
Marked the bug as WONTFIX because the actual behaviour is ok to me.

Bug #2176

Reported by:
Bj
Reported on: 2006-08-16
Last modified on: 2007-12-19
Duplicates (2):
  • 2341 mv: will not overwrite just-created
  • 2534 xarchiver extract any arciver with error.

People

Assignee:
Giuseppe Torelli
CC List:
2 users

Version

Version:
0.4.1svn

Attachments

Additional information