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

            Bug ID: 494656
           Summary: If a folder has the wrong kind of characters, Dolphin
                    can't open or remove or rename it
    Classification: Applications
           Product: dolphin
           Version: 24.08.1
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: dolphin-bugs-n...@kde.org
          Reporter: e...@horse64.org
                CC: kfm-de...@kde.org
  Target Milestone: ---

Created attachment 174769
  --> https://bugs.kde.org/attachment.cgi?id=174769&action=edit
Attached animation that shows what happens when trying to interact with the
folder in Dolphin

SUMMARY

If a folder has the wrong kind of characters, Dolphin can't open or remove or
rename it

STEPS TO REPRODUCE

1. Create a maximum broken file name:

   $ python3
   Python 3.12.7 (main, Oct  7 2024, 07:18:03) [GCC 14.2.0] on linux
   Type "help", "copyright", "credits" or "license" for more information.
   >>> f = open("/dev/random", "rb")
   >>> s = f.read(64)
   >>> os.mkdir(s)

   (If the generated name has null bytes or forward slashes it might error,
   and you might need to repeat it)

2. Open Dolphin
3. Try to open or rename or delete folder

OBSERVED RESULT

See attached gif. Dolphin can't handle this.

EXPECTED RESULT

Dolphin uses some sort of surrogate encoding for non-Unicode paths so it
doesn't ever break down no matter the file name, since the average user will be
completely stuck at this point without any obvious options on how to fix this.

SOFTWARE/OS VERSIONS

Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: postmarketOS Edge based on Alpine
KDE Plasma Version: 6.2.0
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to