Bug 405176 - Dolphin disables "Paste x files" for empty directories that do not have a rootItem
Summary: Dolphin disables "Paste x files" for empty directories that do not have a roo...
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 18.12.2
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-07 11:42 UTC by Philippe ROUBACH
Modified: 2022-07-04 11:20 UTC (History)
4 users (show)

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


Attachments
log during i try to copy files (4.00 KB, text/x-log)
2019-03-27 14:58 UTC, Philippe ROUBACH
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe ROUBACH 2019-03-07 11:42:09 UTC
plasma 515.2
kde framework 5.55.0
qt 5.12.1
kde 18.12.2

kde kdeconnect 1.3.3
android kdeconnect 1.10.1

Samsung S2 Plus Lineageos 7.1.1
Samsung S7 android 8.0


this is true for all internal storage folder "download", "music" , "video", "picture"

also in case of "adaptable storage" mode for the sd card. in this case all these folders are moved to external storage.


you can't add any file into a folder "download" for example.

but if you create a folder "toto" in "download" then you can add a file in "download" but not in "toto".

but if you create a folder "titi" in "toto" then you can add a file in "toto" but not in  "titi".

etc.
Comment 1 Philippe ROUBACH 2019-03-26 17:25:25 UTC
android kdeconnect 1.12.6

problem still there
Comment 2 Erik Duisters 2019-03-27 07:51:53 UTC
Can you check if there are any Exceptions logged in android's logcat?
If you have Android Studio installed that is the easiest way to view it, if not:

Find out the process id of kdeconnect with: adb shell ps | grep kdeconnect
you will see something like: 

u0_a189   7819  1986  829832 40832 sys_epoll_ 00000000 S org.kde.kdeconnect_tp

Then to filter the logcat output:

adb logcat | grep 7819 > kdeconnect.log

Replace 7819 with the actual process id of you kdeconnect instance
Comment 3 Philippe ROUBACH 2019-03-27 14:58:55 UTC
Created attachment 119084 [details]
log during i try to copy files

the accurate definition of the copy problem:

if in folder picture i right click in a folder then the option "past 3 files" is in grey
then i can't copy files

if i create toto folder in picture then if i right click in picture the option "past 3 files" is no more in grey and i can copy files.
Comment 4 Erik Duisters 2019-03-27 15:15:56 UTC
The log you attached does not show anything interesting but it did show me that you are using a fairly old version of kdeconnect on android. Can you upgrade to v1.12.6 and try again?

Please do note that with v1.12.6 you will have to configure which storage locations you want to share with the desktop. You can do that using the Filesystem expose settings accessed from the overflow menu (tripple dots in upper right corner)->Plugin Settings
Comment 5 Philippe ROUBACH 2019-03-27 15:27:44 UTC
There is an error somewhere. I updated to 1.12.6 before experimenting.

I know this because I had to define storage locations.
Comment 6 Erik Duisters 2019-03-28 12:57:44 UTC
Sorry for the confusion but now I understand the problem. Dolphin disables its "Paste x files" menu entry while it does allow to create new files/folders and drag and drop copy and move. I'll investigate a little further but I don't think this is anything kdeconnect related
Comment 7 Philippe ROUBACH 2019-03-28 13:49:27 UTC
a kio problem ?
Comment 8 Philippe ROUBACH 2019-03-31 09:53:47 UTC
it is not as simple as a kio problem.

because i try to copy to /DCIM/Camera/ then i got the option "copy x files" in dolphin contextual menu. the option is not in grey.
Comment 9 Erik Duisters 2019-04-06 12:20:07 UTC
Dolphin disables its "Paste x files" menu entry for empty directories that do not have a rootItem. It does does allow to create new files/folders and drag and drop copy and move. This happens when a file system does not provide the . and .. entries like sshfs. see also BUG 330001 and https://github.com/libfuse/sshfs/issues/28
Comment 10 Justin Zobel 2020-10-29 09:40:52 UTC
Is this still an issue on recent versions of KDE Connect? I see that the linked Github issue for libfuse has been resolved.
Comment 11 Philippe ROUBACH 2020-10-30 14:24:26 UTC
kde apps 20.08.2
kde plsama 5.20.2
kde frameworks 5.75.0
qt 5.15.1

kdeconnect kde 20.08.2
kdeconnect android 1.14.2

problem still there
Comment 12 Christoph Feck 2020-11-09 23:43:25 UTC
Requested information was added with comment 11; changing status.
Comment 13 Philippe ROUBACH 2022-07-04 11:20:56 UTC
plasma 5.25.2
kde framework 5.95.0
qt 5.15.2
kde gears 22.04.2

kdeconnect 22.04.2

Problem still there