Bug 446721 - Figuring out "The file or folder \"\" does not exist" popup
Summary: Figuring out "The file or folder \"\" does not exist" popup
Status: RESOLVED NOT A BUG
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: Open/save dialogs (show other bugs)
Version: 5.60.0
Platform: Compiled Sources Linux
: NOR task
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-09 10:16 UTC by RJVB
Modified: 2021-12-09 19:23 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description RJVB 2021-12-09 10:16:50 UTC
SUMMARY
I'm running a utility against 5.60.0 on a machine where I'm blocked on that KF5 version. Everything works fine, but I'm getting a spurious error popup telling me that "File or folder \"\" does not exist" whenever a custom save dialog is opened.

I know this is probably considered an ancient version, so I'd just like to get some suggestions helping me find the source of the problem, i.e. where the code tries to access a file without name. Or a link to the KIO ticket where this issue was fixed, if this is indeed a known problem in earlier KIO version(s).
I've tried setting a breakpoint on SlaveBase::error() which seemed like it should be the place where the corresponding error code is set, but that never got triggered.

As far as I have been able to determine:

STEPS TO REPRODUCE
1. Open the file save dialog with
```
FileDialog::FileDialog(QDialog *parent, Qt::WindowFlags flags)
    : QDialog(parent, flags)
    , m_fileWidget(new KFileWidget(QUrl(QStringLiteral("kfiledialog:///foo")), this))
{
    setLayout(new QVBoxLayout);
    layout()->addWidget(m_fileWidget);
```

OBSERVED RESULT
The aforementioned error message pops up; after clicking it away I get the expected file dialog without any signs of trouble.

EXPECTED RESULT
No popup

KDE Frameworks Version: 5.60.0
Qt Version: 5.9.8

ADDITIONAL INFORMATION
I introduce the `kfiledialog:///` QUrl, the original code passed an empty QUrl which seemed like it could be the source of the problem. It didn't make a difference.
Comment 1 Nate Graham 2021-12-09 19:23:30 UTC
Probably better expressed as a question on kde-devel, as that is indeed a very ancient version. :)