[kdeconnect] [Bug 523973] New: Sending multiple files via "Send files" drops some files with SecurityException

[email protected]
Newsgroups gmane.comp.kde.devel.bugs
Message-ID <[email protected]/>
https://bugs.kde.org/show_bug.cgi?id=523973

            Bug ID: 523973
           Summary: Sending multiple files via "Send files" drops some
                    files with SecurityException
    Classification: Applications
           Product: kdeconnect
      Version First unspecified
       Reported In:
          Platform: Android
                OS: Android 13.x
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: android-application
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

DESCRIPTION
multi-selecting several photos to send, some fail with "Recieving files
(Failed) Received incomplete file from: POCO F2 Pro: 1786099411184" on the
desktop app.

STEPS TO REPRODUCE
1. On the paired device, tap the target device -> "Send files"
2. In the system file picker, multi-select several images (5+) and confirm
3. Observe on the desktop: fewer files arrive than were selected, with the
desktop reporting "Recieving files (Failed) Received incomplete file from: POCO
F2 Pro: 1786099411184"

OBSERVED RESULT
A subset of the selected files fail to send. "adb logcat" shows, for the failed
files:


java.lang.SecurityException: Permission Denial: reading
com.android.providers.media.MediaDocumentsProvider
uri content://com.android.providers.media.documents/document/image%3A<id> from
pid=<pid>, uid=<uid>
requires that you obtain access using ACTION_OPEN_DOCUMENT or related APIs
        at ...ContentResolver.openInputStream(ContentResolver.java:1518)
        at org.kde.kdeconnect.helpers.FilesHelper.uriToNetworkPacket(...)
        at org.kde.kdeconnect.plugins.share.SharePlugin.sendUriList(...)


EXPECTED RESULT
All selected files are sent successfully.

SOFTWARE/OS VERSIONS
App Version: 1.35.12
OS: Android 13 (MIUI 14.0.1), POCO F2 Pro
KDE Plasma Version: 6.7.3
KDE Frameworks Version: 6.28.0
Qt Version: 6.11.1

ADDITIONAL INFORMATION
I have a patch/fix ready and will link it via MR

-- 
You are receiving this mail because:
You are watching all bug changes.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.