Bug 424209

Summary: Selecting multiple files from "recent files" results in no file being actually used/opened
Product: [Frameworks and Libraries] frameworks-kio Reporter: Riccardo Robecchi <sephiroth_pk>
Component: Open/save dialogsAssignee: KIO Bugs <kio-bugs-null>
Status: ASSIGNED ---    
Severity: normal CC: kdelibs-bugs, meven.car, meven29
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot
Open/save dialogue
Error dialogue

Description Riccardo Robecchi 2020-07-14 18:40:03 UTC
Created attachment 130122 [details]
Screenshot

SUMMARY
Selecting multiple files in the "recent files" screen of the open/save dialogue results either in an error or in no files being actually selected.

STEPS TO REPRODUCE
1. Use Firefox to go to a page where you have a "select files" button and click it
2. select multiple files in the open/save dialogue
3. click "ok"

OBSERVED RESULT
None of the files is actually uploaded. You have to select files one by one for them to be uploaded. 
If you do the same in Kate, an error message is shown (see attached screenshot). The file name field reports this: "recentlyused:/files/file:///path/to/file". This makes the app unable to open the file.

EXPECTED RESULT
All the files selected are uploaded/opened correctly.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE neon
KDE Plasma Version: 5.19.3
KDE Frameworks Version: 5.72.0
Qt Version: 5.14.2

ADDITIONAL INFORMATION
Comment 1 Riccardo Robecchi 2020-07-14 18:40:29 UTC
Created attachment 130123 [details]
Open/save dialogue
Comment 2 Riccardo Robecchi 2020-07-14 18:41:00 UTC
Created attachment 130124 [details]
Error dialogue
Comment 3 Bug Janitor Service 2020-10-25 08:50:40 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/189
Comment 4 Riccardo Robecchi 2020-12-01 12:35:20 UTC
I just realised something that might be of interest. Selecting multiple files does not work if the files are on an external disk. I have been selecting multiple files stored on the internal drive of my notebook and I have had no issues, but as soon as I connected an external drive it wouldn't work anymore.
I hope this can help narrow down the source of the issue.
Comment 5 Riccardo Robecchi 2020-12-04 15:08:45 UTC
(In reply to Riccardo Robecchi from comment #4)
> I just realised something that might be of interest. Selecting multiple
> files does not work if the files are on an external disk. I have been
> selecting multiple files stored on the internal drive of my notebook and I
> have had no issues, but as soon as I connected an external drive it wouldn't
> work anymore.
> I hope this can help narrow down the source of the issue.

Scratch that, I did further testing and it doesn't work for files on the current disk as well. It did work though, so I do wonder what (if anything) changed.
Comment 6 Méven Car 2021-01-25 16:25:56 UTC
> It did work though, so I do wonder what (if anything) changed.

What changed is that we have a new kio worker recentlyused:/ that has replaced recentdocuments:/ because it is much more feature full, activity aware, syncs with kickoff, etc...

You can read my blog post about it http://www.bivouak.fr/recently-used-ioslave/

But it is not yet completely properly implemented, and io worker design is not very simple.
Comment 7 Riccardo Robecchi 2021-02-09 14:21:16 UTC
(In reply to Méven Car from comment #6)
> What changed is that we have a new kio worker recentlyused:/ that has
> replaced recentdocuments:/ because it is much more feature full, activity
> aware, syncs with kickoff, etc...
> 
> You can read my blog post about it
> http://www.bivouak.fr/recently-used-ioslave/
> 
> But it is not yet completely properly implemented, and io worker design is
> not very simple.

Oh, what I meant is that recentlyused:/ worked in November, then started not working again. So my assumption is that something must have changed in the meantime.