Bug 485984 - SMB and NFS shares do not show folder previews
Summary: SMB and NFS shares do not show folder previews
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 6.1.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
: 485946 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-04-22 21:24 UTC by Patrick Gianelli
Modified: 2024-05-14 20:05 UTC (History)
7 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Gianelli 2024-04-22 21:24:54 UTC
SUMMARY
Folder previews work locally, but no longer work for network shares, either NFS or SMB.

STEPS TO REPRODUCE
1. Mount an NFS share, eg 'mount -t nfs -o nconnect=8 192.168.1.10:/mnt/user/Test /home/user/Test'
2. Set remote previews to be allowed for large files (I set it to 1024 MiB)
3. Verify file previews work as expected

OBSERVED RESULT
No previews show for remote folders.

EXPECTED RESULT
Previews show in icon view for remote folders. Worked until recently?
Comment 1 Patrick Gianelli 2024-04-22 21:44:56 UTC
Is this being caused by KIO changes?

There was a revert a year ago to fix issues with remote folders and the revert was reverted:
https://invent.kde.org/frameworks/kio/-/commit/fa1887892641c06abed7a7ef959c40303b243498
Comment 3 AF 2024-04-28 03:29:39 UTC
I can reproduce this issue as well. None of the network shares from my NAS have visible folder previews anymore.
Comment 4 Sergey Katunin 2024-04-28 11:22:28 UTC
(In reply to AF from comment #3)
> I can reproduce this issue as well. None of the network shares from my NAS
> have visible folder previews anymore.

Currently, after kio/!1534, the preview of deleted folders is disabled by default.
But after kio/!1533 you can enable preview for remote folders with:
in the kdeglobals file,
the [PreviewSettings] section,
the EnableRemoteFolderThumbnail parameter.

A little bit later, a setting will be added to configure this via the GUI in Dolphin.
Comment 5 Sergey Katunin 2024-04-28 11:24:35 UTC
>  Currently, after kio/!1534, the preview of deleted folders is disabled by default.

Sorry, I mean the preview of remote* folders
Comment 6 Alex Logashov 2024-04-28 14:47:14 UTC
(In reply to Sergey Katunin from comment #4)
> the [PreviewSettings] section,
> the EnableRemoteFolderThumbnail parameter.

I've tried this and it doesn't work for me
I've got remote NFS share mounted to /nfs/RemoteFolder and neither image nor video thumbnails show up
I've got kio 6.1.0, kio-extras 24.02.2, kio-fuse 5.1.0, kio5 5.115.0 and dolphin 24.02.2 installed
Comment 7 Sergey Katunin 2024-04-28 19:49:12 UTC
(In reply to Alex Logashov from comment #6)
> (In reply to Sergey Katunin from comment #4)
> > the [PreviewSettings] section,
> > the EnableRemoteFolderThumbnail parameter.
> 
> I've tried this and it doesn't work for me
> I've got remote NFS share mounted to /nfs/RemoteFolder and neither image nor
> video thumbnails show up
> I've got kio 6.1.0, kio-extras 24.02.2, kio-fuse 5.1.0, kio5 5.115.0 and
> dolphin 24.02.2 installed

I think this is due to the fact that the change with this option did not get into kio 6.1.0. So far only in the master branch. I think we should expect this in the next KIO release.
Comment 8 Patrick Gianelli 2024-05-03 20:45:48 UTC
(In reply to Sergey Katunin from comment #7)
> I think this is due to the fact that the change with this option did not get
> into kio 6.1.0. So far only in the master branch. I think we should expect
> this in the next KIO release.

Could these changes have been staged to be released at the same time? At least then there would have been a documented workaround vs it looking like a new regression happened.
Comment 9 Alex Logashov 2024-05-14 16:22:48 UTC
I've updated to kio 6.2. Thumbnails still don't work in nfs mounts. Which version will it be fixed in?
Comment 10 Patrick Gianelli 2024-05-14 18:12:01 UTC
(In reply to Alex Logashov from comment #9)
> I've updated to kio 6.2. Thumbnails still don't work in nfs mounts. Which
> version will it be fixed in?

I've updated to the latest that's available for Fedora 40, Dolphin 24.02.2 and it is working for me.

In ~/.config/kdeglobals

I have: 
[PreviewSettings]
EnableRemoteFolderThumbnail=true
Comment 11 Barry G 2024-05-14 18:17:10 UTC
I'm also affected by this bug and can confirm the kio 6.2.0 + the config settings fixes it for my NFS shares. Thanks!
Comment 12 Alex Logashov 2024-05-14 18:39:52 UTC
I'm on Arch with Dolphin 24.02.2 installed. I had to set a value for MaximumRemoteSize for previews to work. I think there used to be no limit option. Setting specific value is inconvinient since I don't know how big files can get.
Comment 13 Sergey Katunin 2024-05-14 19:41:31 UTC
(In reply to Alex Logashov from comment #12)
> I'm on Arch with Dolphin 24.02.2 installed. I had to set a value for
> MaximumRemoteSize for previews to work. I think there used to be no limit
> option. Setting specific value is inconvinient since I don't know how big
> files can get.

Dolphin does not affect this behavior, it is affected by KIO.

A zero value of MaximumRemoteSize means that preview will be created for no file.
This was done on purpose (and it was so until recent changes), because creating previews for remote files is more expensive in terms of using network resources, so the most appropriate default value would be to turn off these previews.

But do you really need to build previews for super-large remote files, with a size of 1 TiB or more? If yes, then you can specify such a limit (for example, 10 or 100 or 1000 TiB) in Dolphin settings or manually in `kdeglobals` file.

P.S The GUI setting for `EnableRemoteFolderThumbnail` will most likely be in the next Dolphin release. Maybe at 24.05? (https://invent.kde.org/system/dolphin/-/commit/cb75b5a7decfe10cfc26240c1d5bbf65224cf424)
Comment 14 Sergey Katunin 2024-05-14 20:05:36 UTC
*** Bug 485946 has been marked as a duplicate of this bug. ***