Bug 260312 - 'Apply To All' in RenameDialog is not applied throughout batch jobs
Summary: 'Apply To All' in RenameDialog is not applied throughout batch jobs
Status: CONFIRMED
Alias: None
Product: ark
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Elvis Angelaccio
URL:
Keywords: junior-jobs
: 271432 369126 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-12-16 20:35 UTC by Alexey Chernov
Modified: 2023-08-05 14:21 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Script to create a test case (221 bytes, application/octet-stream)
2010-12-19 02:31 UTC, Raphael Kubo da Costa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Chernov 2010-12-16 20:35:00 UTC
Version:           unspecified
OS:                Linux

'Apply To All' checkbox in 'File Already Exists' dialog is quite useless - it has no effect on further process

Reproducible: Always
Comment 1 Raphael Kubo da Costa 2010-12-17 16:26:05 UTC
Can you please provide steps to reproduce this problem? For example, did you manually launch Ark or did you use the service menus in Dolphin? What archive format were you extracting? What KDE version are you using?
Comment 2 Alexey Chernov 2010-12-17 16:52:41 UTC
Yes, surely. Sorry for not doing it in the report.
I launched Ark using service menu item "Extract to this folder". Archive format is RAR. KDE version is 4.5.4. I also should notice that I selected many files at once and let them to be extracted. So, steps to reproduce:
1. Select several files (RAR archives in my case). RAR archives are with internal folders i.e. when they are extracted there're several directories created.
2. Right-click on one of them and choose an option "Extract to this folder"
3. Stop the process somewhere in the middle (to make some  and redo steps 1 and 2 again.
4. Wait for the first dialog that the certain file exists. Check 'Apply To All' option and click OK. Do step 4 for every dialog appeared.
5. Wait for one of the next dialog windows concerning the file type you've already seen and checked as 'Apply To All'. Here's the problem.
Comment 3 Raphael Kubo da Costa 2010-12-19 02:31:10 UTC
Created attachment 55058 [details]
Script to create a test case

Can you make sure /tmp/test does not exist or does not contain anything relevant and then run this script?

It will create /tmp/test with three directories, dir1, dir1/dir11 and dir2. Each of them will have a file called hello.txt, as well as two archives, archive1.rar and archive2.rar. The former will contain dir1/, and the latter will contain dir2.

If I select both archives and choose "Extract Here" inside /tmp/test, it will first prompt me asking whether I want to replace /tmp/test/dir1/dir11/hello.txt. I choose "apply to all" and then choose either "Skip" or "Overwrite" (there is no 'OK' button). I'm then prompted about replacing /tmp/test/dir2/hello.txt.

Can you confirm if the same happens to you, and whether what you said is that the second dialog should not appear if you choose "Apply to all" in the first one?
Comment 4 Alexey Chernov 2010-12-19 13:41:00 UTC
Yes, you're exactly right. I did what you wrote and yes, the dialog appeared twice for hello.txt file in each dir1 and dir2  and this is exactly what I mean. I think the dialog should appear only once in this case.
Comment 5 Raphael Kubo da Costa 2010-12-19 18:52:05 UTC
Alright, confirming it then.
Comment 6 Alexey Chernov 2010-12-19 18:59:57 UTC
Thank you, Raphael.
Comment 7 Todd 2011-02-09 21:01:03 UTC
I can confirm this bug as well for KDE 4.6.0.
Comment 8 Raphael Kubo da Costa 2011-04-22 16:45:30 UTC
*** Bug 271432 has been marked as a duplicate of this bug. ***
Comment 9 Dotan Cohen 2011-04-22 17:00:47 UTC
To reproduce:
1) Acquire four rar packages, each containing an identical file called test.txt
2) Select all four rar files, right-click and choose Extract Here
3) When the dialogue asks to overwrite or skip test.txt, click "do this next
time" and click Skip

What happens:
The dialogue pops up twice more

What the user expects to happen:
The dialogue should not pop up, the files should just be skipped
Comment 10 Elvis Angelaccio 2016-09-21 09:00:51 UTC
*** Bug 369126 has been marked as a duplicate of this bug. ***
Comment 11 infiniteverma 2022-11-14 12:20:30 UTC
I'd like to work on this.
Comment 12 Justin Zobel 2023-08-05 14:21:45 UTC
 infiniteverma if you're still interested in working on this KDE uses Merge Requests as described here to add new code: https://community.kde.org/Infrastructure/GitLab#Submitting_a_merge_request