Bug: #Dolphin erroneously converts deliberately URI-encoded filename when navigated to via KFind integration

Preamble

I know that this isn’t the place to report bugs, so this can be locked if need be to incentivise discussion at the bug, just don’t revoke my ability to edit it, please.

It’s been reported here because without a Markdown processor at https://bugs.kde.org (understandable since GitHub - bugzilla/harmony: next generation bugzilla isn’t considered stable upstream yet) it would be mostly unreadable.

Bug

To reproduce:

  1. Invoke dolphin.

  2. Navigate to a directory (for the sake of convenience, $HOME/Downloads) with an ls of:

    RokeJulianLockhart@s1e8h4:~/Downloads> ls
    [`gpg`](file%3A%2F%2F%2Fusr%2Fbin%2Fenv%20-S%20tea%20gpg)
    
  3. Search for a string. I use

    743DAE2C1D437829

  4. Invoke kfind via dolphin’s GUI.

  5. Error appears

    20231120T231242GMT

    with a log similar to

    1. /Downloads

      cd '/home/RokeJulianLockhart/Downloads/[`gpg`](file%3A%2F%2F%2Fusr%2Fbin%2Fenv%20-S%20tea%20gpg)'
      
      RokeJulianLockhart@s1e8h4:~/Downloads>  cd '/home/RokeJulianLockhart/Downloads/[`gpg`](file%3A%2F%2F%2Fusr%2Fbin%2Fenv%20-S%20tea%20gpg)'
      
    2. /Downloads/[`gpg`](file%3A%2F%2F%2Fusr%2Fbin%2Fenv%20-S%20tea%20gpg)

      cd /run/user/1000/kio-fuse-ZhkAFa/baloosearch
      
      RokeJulianLockhart@s1e8h4:~/Downloads/[`gpg`](file%3A%2F%2F%2Fusr%2Fbin%2Fenv%20-S%20tea%20gpg)>  cd /run/user/1000/kio-fuse-ZhkAFa/baloosearch
      
    3. /run/user/1000/kio-fuse-ZhkAFa/baloosearch

      cd /run/user/1000/kio-fuse-ZhkAFa/baloosearchbaloosearch
      
      RokeJulianLockhart@s1e8h4:/run/user/1000/kio-fuse-ZhkAFa/baloosearch>  cd /run/user/1000/kio-fuse-ZhkAFa/baloosearchbaloosearch
      
    4. /run/user/1000/kio-fuse-ZhkAFa/baloosearch

      cd '/home/RokeJulianLockhart/Downloads/[`gpg`](file:/usr/bin/env -S tea gpg)'
      
      RokeJulianLockhart@s1e8h4:/run/user/1000/kio-fuse-ZhkAFa/baloosearch>  cd '/home/RokeJulianLockhart/Downloads/[`gpg`](file:/usr/bin/env -S tea gpg)'
      
    5. /run/user/1000/kio-fuse-ZhkAFa/baloosearch

      bash: cd: /home/RokeJulianLockhart/Downloads/[`gpg`](file:/usr/bin/env -S tea gpg): No such file or directory
      
    6. /run/user/1000/kio-fuse-ZhkAFa/baloosearch

      RokeJulianLockhart@s1e8h4:/run/user/1000/kio-fuse-ZhkAFa/baloosearch>
      
  6. Dolphin has instead re-navigated to /home/RokeJulianLockhart/Downloads/[gpg](file:/usr/bin/env -S tea gpg)/](file:///home/RokeJulianLockhart/Downloads/[%60gpg%60](file:/usr/bin/env%20-S%20tea%20gpg))

https://bugs.kde.org/show_bug.cgi?id=477306#c0

By the way, because this is an issue affecting both Log in to KDE Bugtracking System and Components for kfind, I’ve filed 1865756 - Allow more than one product per bug. with its https://wiki.mozilla.org/BMO/UserGuide/BugFields#version set to GitHub - bugzilla/harmony: next generation bugzilla so that it should eventually make its way into upstream, and thus hopefully https://bugs.kde.org.