[kde-cli-tools] [Bug 524432] New: kioclient copy --replace ... mtp:/... fails with Access denied

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

            Bug ID: 524432
           Summary: kioclient copy --replace ... mtp:/... fails with
                    Access denied
    Classification: Plasma
           Product: kde-cli-tools
      Version First 6.7.4
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

DESCRIPTION
When I try to copy a file to a MTP device with --overwrite, I get an "Access
denied" if I pass the filename as a destination. It works as expected if I pass
the *parent folder* as a destination.

STEPS TO REPRODUCE
1. Plug in an Android phone and enable MTP mode in its USB notification.
2. Create a small test file, eg. test.py.
3. kioclient copy --overwrite test.py 'mtp:/Pixel 9/Internal shared
storage/test.py'
4. Repeat step 3.

OBSERVED RESULT
kioclient: Access denied.
Could not write to mtp:/Pixel 9/Internal shared storage/test.py.

- If I remove `test.py` from the end of the destination path, it *succeeds* in
overwriting the file.
- If I do so and remove --overwrite, I get an error as expected, "kioclient: A
file named /Pixel 9/Internal shared storage/test.py already exists."

EXPECTED RESULT
I can overwrite files by full path as well as by its containing folder.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.7.4
KDE Frameworks Version: 6.29.0
Qt Version: 6.11.1
Kernel Version: 7.1.8-arch1-3 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-8559U CPU @ 2.70GHz
Memory: 16 GiB of RAM (15.5 GiB usable)
Graphics Processor: Intel® Iris® Plus Graphics 655
Manufacturer: Intel(R) Client Systems
Product Name: NUC8i7BEH
System Version: J72992-303

ADDITIONAL INFORMATION

-- 
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.