[kio-extras] [Bug 472468] New: Characters illegal for FAT32 and NTFS break transfer and connection to Android device

petrk bugzilla_noreply at kde.org
Fri Jul 21 16:48:57 BST 2023


https://bugs.kde.org/show_bug.cgi?id=472468

            Bug ID: 472468
           Summary: Characters illegal for FAT32 and NTFS break transfer
                    and connection to Android device
    Classification: Frameworks and Libraries
           Product: kio-extras
           Version: 23.04.3
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: MTP
          Assignee: unassigned-bugs at kde.org
          Reporter: pepko94 at gmail.com
                CC: elvis.angelaccio at kde.org
  Target Milestone: ---

As you all are aware FAT32 and NTFS doesn't allow certain characters in
filenames. Unfortunately in recent versions of Android Google decided to go
with compatibility over what makes sense to "powerusers". There's a custom FUSE
layer over EXT4 on Android, and recently a change was made to disallow extra
characters in filenames, probably to make Windows users happy.

So in short:
1. Try to copy a file over MTP to an Android 13 device. Say, filename contains
":" or "colon" if you will.
2. Copy job times out when encountering offending file.
3. After about 30 seconds I get a dialog asking to retry, but MTP breaks.
4. "Skip" option is not doing anything, it times out like on step 2, only
"Cancel" option does its job. Browsing of MTP device is broken and it needs to
be reconnected to recover.


Can we fail without breaking connection? Ideally KIO would detect what the
problem is and propose a filename change.

21/07/2023 16:40        kernel  usb 6-2: new SuperSpeed USB device number 9
using xhci_hcd
21/07/2023 16:40        kernel  usb 6-2: New USB device found, idVendor=18d1,
idProduct=4ee1, bcdDevice= 4.40
21/07/2023 16:40        kernel  usb 6-2: New USB device strings: Mfr=1,
Product=2, SerialNumber=3
21/07/2023 16:40        kernel  usb 6-2: Product: Pixel 4a
21/07/2023 16:40        kernel  usb 6-2: Manufacturer: Google
21/07/2023 16:40        kernel  usb 6-2: SerialNumber: Redacted
21/07/2023 16:40        dolphin 16:40:04.878 INFO  DeviceManager:449           
    Device added: "mtp://Google_Pixel_4a_12021JEC201128/"
QList("mtp://Google_Pixel_4a_12021JEC201128/")

Snippet from logs:
21/07/2023 16:41        org.kde.kmtpd5  Error 2: PTP Layer error 02ff:
LIBMTP_Send_File_From_File_Descriptor(): Could not send object.
21/07/2023 16:41        org.kde.kmtpd5  Error 2: Error 02ff: PTP I/O Error


It's part a bug report because of MTP connection breaking, and a wishlist item
for filename correction logic.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Unassigned-bugs mailing list