Bug 406020 - Error message when kate shows the open file dialog after I open a file located in samba share
Summary: Error message when kate shows the open file dialog after I open a file locate...
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: 19.12.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-29 21:35 UTC by Patrick Silva
Modified: 2020-10-27 23:57 UTC (History)
4 users (show)

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


Attachments
screenshot (67.62 KB, image/png)
2019-03-29 21:35 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2019-03-29 21:35:25 UTC
Created attachment 119143 [details]
screenshot

STEPS TO REPRODUCE
1. open kate
2. press ctrl+o (open file dialog shows uo)
3. navigate to a samba share and open a text file
4. press ctrl+o again

OBSERVED RESULT
kate shows an error message: "the file or folder smb:// bla bla bla does not exist". See the screenshot please.

EXPECTED RESULT
no error message

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
(available in About System)
KDE Plasma Version: 5.15.3
KDE Frameworks Version: 5.56
Qt Version: 5.12.2

ADDITIONAL INFORMATION
also reproducible on neon dev unstable
Comment 1 Nate Graham 2019-04-01 18:13:27 UTC
Well, is that share accessible?
Comment 2 Patrick Silva 2019-04-01 18:19:50 UTC
Yes. After clik "Ok" in the error message, I can open another text file located in the same samba share.
Comment 3 Ahmad Samir 2019-04-09 20:21:26 UTC
I don't have access to a samba share to test, but somehow the QFileDialog is including the file name (IPs.txt) in the directory path...
Comment 4 Nate Graham 2019-04-18 21:15:58 UTC
(In reply to Ahmad Samir from comment #3)
> I don't have access to a samba share to test, but somehow the QFileDialog is
> including the file name (IPs.txt) in the directory path...

Can you reproduce that issue in other apps too, or only with Kate?
Comment 5 Ahmad Samir 2019-04-22 15:03:20 UTC
(In reply to Nate Graham from comment #4)
> (In reply to Ahmad Samir from comment #3)
> > I don't have access to a samba share to test, but somehow the QFileDialog is
> > including the file name (IPs.txt) in the directory path...
> 
> Can you reproduce that issue in other apps too, or only with Kate?

Couldn't reproduce it at all, since as I said, I don't have access to a samba server readily at hand.
Comment 6 Christoph Cullmann 2019-07-14 12:03:04 UTC
I tried this with Kate master and Kate 19.04.
This works for me as intended.

(samba 4.x server at work)
Comment 7 Patrick Silva 2019-07-15 00:03:05 UTC
I can reproduce this behavior on both Arch Linux and Neon unstable edition.
Comment 8 Christoph Cullmann 2019-07-15 06:01:56 UTC
Do other KDE applications work?

e.g. could you try if Krita can open a file over smb://?
Comment 9 Patrick Silva 2019-07-15 12:13:14 UTC
(In reply to Christoph Cullmann from comment #8)
> Do other KDE applications work?
> 
> e.g. could you try if Krita can open a file over smb://?

I tested krita, kolourpaint and okular.
I can't reproduce with KolourPaint and Okular.
Ktita not even can open a file over smb, and it shows no error message.
Comment 10 Patrick Silva 2019-07-18 03:14:45 UTC
bug 408174 seems related
Comment 11 Justin Zobel 2020-10-27 08:51:20 UTC
I've just tested this on git master without issue.

Can those affected please retest and confirm if the issue still persists.
Comment 12 Patrick Silva 2020-10-27 23:57:26 UTC
Tested Kate 20.08.2 on Arch Linux and master on neon unstable,
none of them displays the error message.