<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>509461</bug_id>
          
          <creation_ts>2025-09-13 15:38:27 +0000</creation_ts>
          <short_desc>&quot;Malformed url&quot; error when trying to rename a file located on desktop via file conflict dialog</short_desc>
          <delta_ts>2026-06-04 16:39:57 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>plasmashell</product>
          <component>Folder View widget</component>
          <version>6.4.5</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Patrick Silva">bugseforuns</reporter>
          <assigned_to name="Akseli Lahtinen">akselmo</assigned_to>
          <cc>akselmo</cc>
    
    <cc>hein</cc>
    
    <cc>nate</cc>
          
          <cf_commitlink>https://invent.kde.org/frameworks/kio/-/commit/07cb635012552165fc41d77dbbf89f8184aeded8</cf_commitlink>
          <cf_versionfixedin>Frameworks 6.27</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2454224</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick Silva">bugseforuns</who>
    <bug_when>2025-09-13 15:38:27 +0000</bug_when>
    <thetext>STEPS TO REPRODUCE
1. set your desktop do folder view layout
2. copy two files of the same type to desktop
3. try to rename one of the two files using the same name as the other file that you copied to desktop - file conflict dialog shows up
4. click on &quot;Suggest new name&quot; and then &quot;Rename&quot; buttons

OBSERVED RESULT
&quot;Malformed url&quot; error

EXPECTED RESULT
the file is renamed

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2
Graphics Platform: Wayland</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2454991</commentid>
    <comment_count>1</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-09-17 17:10:18 +0000</bug_when>
    <thetext>Can reproduce.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2518411</commentid>
    <comment_count>2</comment_count>
    <who name="Akseli Lahtinen">akselmo</who>
    <bug_when>2026-05-26 13:38:14 +0000</bug_when>
    <thetext>Can still repro this

Operating System: KDE Linux 2026-05-26
KDE Plasma Version: 6.7.80
KDE Frameworks Version: 6.27.0
Qt Version: 6.11.1
Kernel Version: 7.0.10-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 16 GiB of RAM (15.5 GiB usable)
Graphics Processor: AMD Radeon RX 6600</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2519709</commentid>
    <comment_count>3</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2026-06-01 11:19:08 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3767</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2519788</commentid>
    <comment_count>4</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2026-06-01 15:02:40 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/2252</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2520286</commentid>
    <comment_count>5</comment_count>
    <who name="Akseli Lahtinen">akselmo</who>
    <bug_when>2026-06-03 10:02:34 +0000</bug_when>
    <thetext>Git commit 07cb635012552165fc41d77dbbf89f8184aeded8 by Akseli Lahtinen.
Committed on 03/06/2026 at 09:54.
Pushed by akselmo into branch &apos;master&apos;.

KDirModel: Use mostLocalUrl for old url

When renaming files on desktop layer, the fileItem url can
be something like &quot;desktop:/&quot;

In those cases we want to look for the mostLocalUrl and
use that as our oldUrl instead, since it resolves
the url properly.

M  +4    -2    src/widgets/kdirmodel.cpp

https://invent.kde.org/frameworks/kio/-/commit/07cb635012552165fc41d77dbbf89f8184aeded8</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>