Bug 452232 - Mismatch between location bar and directory contents when saving more than one remote files locally
Summary: Mismatch between location bar and directory contents when saving more than on...
Status: REPORTED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: Open/save dialogs (other bugs)
Version First Reported In: 5.92.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-03 17:34 UTC by Stefano Crocco
Modified: 2022-04-03 17:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
The contents of the "Save" dialog after saving for the second time (103.77 KB, image/png)
2022-04-03 17:34 UTC, Stefano Crocco
Details
The contents of the "Save" dialog when saving for the first time (23.34 KB, image/png)
2022-04-03 17:35 UTC, Stefano Crocco
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefano Crocco 2022-04-03 17:34:45 UTC
Created attachment 147937 [details]
The contents of the "Save" dialog after saving for the second time

When I try to save more than one remote file to my system using the same application (I tried with Kate and Okular), the second time the "Save as" dialog displays the contents of the directory I saved the first file, while the location bar contains the remote URL of the file. Pressing the "Save" button will attempt to save the file remotely. I don't know if this is a bug or it's the intended behavior: in this case, however, I think it's very confusing.

These are the steps to reproduce the issue:
- launch Kate and open any remote file by entering its URL in the "Open" dialog. For example: https://www.kde.org
- save the file using the "Save copy as", for example as /tmp/kde.html. You'll notice that the dialog shows no contents (I suppose because I can't access the contents of the remote directory)
- save again the file using "Save as" (notice that the file displayed in Kate is still the remote one, since in the previous step we saved a copy). The URL listed in the location bar is https://www.kde.org, but the widget below shows the contents of the /tmp directory, including the kde.html file we just created. Entering a name for the file and pressing the save button will display a dialog complaining about not having access to the remote URL.

Note that the use of "Save copy us" is just a trick to make things simpler. The problem is the same if use "Save as", then we open another remote URL and save it.
Comment 1 Stefano Crocco 2022-04-03 17:35:36 UTC
Created attachment 147938 [details]
The contents of the "Save" dialog when saving for the first time