<?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>110932</bug_id>
          
          <creation_ts>2005-08-16 23:48:24 +0000</creation_ts>
          <short_desc>changing folder name over the media protocol locks the folder</short_desc>
          <delta_ts>2005-09-26 23:23:42 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kio</product>
          <component>media</component>
          <version>unspecified</version>
          <rep_platform>Mandriva RPMs</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>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="tropikhajma">tropikhajma</reporter>
          <assigned_to name="Kevin Ottens">ervin</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>366173</commentid>
    <comment_count>0</comment_count>
    <who name="tropikhajma">tropikhajma</who>
    <bug_when>2005-08-16 23:48:24 +0000</bug_when>
    <thetext>Version:            (using KDE KDE 3.4.2)
Installed from:    Mandriva RPMs
OS:                Linux

To reproduce:
start konqueror
enter media:/ into the location bar
navigate to location where you have enough permissions to rename folders - e.g. to your ~/
rename a folder
now the renamed folder turns to locked folder - it has a picture of a lock in the icon and when I try to enter it, it opens in new window (instead of the default)
It gets fixed when I refresh the view.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>375397</commentid>
    <comment_count>1</comment_count>
    <who name="Kevin Ottens">ervin</who>
    <bug_when>2005-09-23 23:02:45 +0000</bug_when>
    <thetext>Can reproduce this one, even in the 3.5 branch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>376386</commentid>
    <comment_count>2</comment_count>
    <who name="Kevin Ottens">ervin</who>
    <bug_when>2005-09-26 23:21:26 +0000</bug_when>
    <thetext>SVN commit 464310 by ervin:

We have to plan a refresh of an item if it uses UDS_LOCAL_PATH.
Thanks to dfaure for the patch.

CCBUG:110932


 M  +9 -4      kdirlister.cpp  


--- branches/KDE/3.5/kdelibs/kio/kio/kdirlister.cpp #464309:464310
@@ -755,10 +755,15 @@
   KFileItem *fileitem = findByURL( 0, oldurl );
   if ( fileitem )
   {
-    aboutToRefreshItem( fileitem );
-    fileitem-&gt;setURL( dst );
-    fileitem-&gt;refreshMimeType();
-    emitRefreshItem( fileitem );
+    if ( !fileitem-&gt;isLocalFile() &amp;&amp; !fileitem-&gt;localPath().isEmpty() ) // it uses UDS_LOCAL_PATH? ouch, needs an update then
+        FilesChanged( src );
+    else
+    {
+        aboutToRefreshItem( fileitem );
+        fileitem-&gt;setURL( dst );
+        fileitem-&gt;refreshMimeType();
+        emitRefreshItem( fileitem );
+    }
   }
 #ifdef DEBUG_CACHE
   printDebug();
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>376387</commentid>
    <comment_count>3</comment_count>
    <who name="Kevin Ottens">ervin</who>
    <bug_when>2005-09-26 23:23:42 +0000</bug_when>
    <thetext>SVN commit 464311 by ervin:

We have to plan a refresh of an item if it uses UDS_LOCAL_PATH.
Thanks to dfaure for the patch.
(forward port)

BUG:110932



 M  +9 -4      kdirlister.cpp  


--- trunk/KDE/kdelibs/kio/kio/kdirlister.cpp #464310:464311
@@ -761,10 +761,15 @@
   KFileItem *fileitem = findByURL( 0, oldurl );
   if ( fileitem )
   {
-    aboutToRefreshItem( fileitem );
-    fileitem-&gt;setURL( dst );
-    fileitem-&gt;refreshMimeType();
-    emitRefreshItem( fileitem );
+    if ( !fileitem-&gt;isLocalFile() &amp;&amp; !fileitem-&gt;localPath().isEmpty() ) // it uses UDS_LOCAL_PATH? ouch, needs an update then
+        FilesChanged( src );
+    else
+    {
+        aboutToRefreshItem( fileitem );
+        fileitem-&gt;setURL( dst );
+        fileitem-&gt;refreshMimeType();
+        emitRefreshItem( fileitem );
+    }
   }
 #ifdef DEBUG_CACHE
   printDebug();
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>