Bug 483530 - Dolphin cannot copy and create files on disks connected via cifs using the mouse context menu and keyboard shortcuts.
Summary: Dolphin cannot copy and create files on disks connected via cifs using the mo...
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 24.02.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-14 10:04 UTC by newchipo
Modified: 2024-03-26 07:29 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 newchipo 2024-03-14 10:04:43 UTC
SUMMARY

If I open the context menu on the cifs disk, there will be no insert item in it. The create item will not be active.

If I press the Ctrl-V keyboard shortcuts, nothing will happen.

But if I use drag and drop, then the files are copied to such a disk without any problems.

The disk is connected with the following line in /etc/fstab:
//192.168.1.1/foto /home/user/Pictures cifs uid=0,credentials=/home/user/.smb,iocharset=utf8,vers=3.0,noperm 0 0

The terminal copies and creates files without problems.

If you connect such a disk via the Dolphin address bar (smb://192.168.1.1/foto), then copying and creating works without problems.

There was no such problem before switching to Plasma 6


STEPS TO REPRODUCE
1. Mount cifs folder to /home/user
2. Copy any file to buffer
3. Open the context menu on /home/user

OBSERVED RESULT
The "Insert" menu item is missing
The menu item "Create" is gray (inactive)

EXPECTED RESULT
The "Insert" menu item is present
The "Create" menu item is active

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux x86_64
Kernel: 6.7.9-arch1-1
(available in About System)
KDE Plasma Version: 6.0.2 
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Comment 1 spamless.9v5xj 2024-03-24 17:06:54 UTC
Also experiencing this issue; it seems like since KDE6 Dolphin is reading the (fake) file permissions, sees it is 755, and incorrectly thinks it has no write access.

Workaround for now is to replace noperm with file_mode=0777 and dir_mode=0777.
Comment 2 newchipo 2024-03-26 07:29:16 UTC
Add  where 1000 my user ID. 
I added this: uid=1000,gid=1000, where 1000 is my user's id. Now it works correctly.
//192.168.1.1/foto /home/user/Pictures cifs uid=0,credentials=/home/user/.smb,iocharset=utf8,vers=3.0,noperm,uid=1000,gid=1000 0 0