<?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>122653</bug_id>
          
          <creation_ts>2006-02-24 19:26:19 +0000</creation_ts>
          <short_desc>file-dialogue claims that pictures are not on the local-storage, yet they are</short_desc>
          <delta_ts>2017-07-26 05:13:07 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>digikam</product>
          <component>Database-Media</component>
          <version>0.10.0</version>
          <rep_platform>openSUSE</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="S. Burmeister">sven.burmeister</reporter>
          <assigned_to name="Digikam Developers">digikam-bugs-null</assigned_to>
          <cc>caulier.gilles</cc>
    
    <cc>languitar</cc>
    
    <cc>marcel.wiesweg</cc>
    
    <cc>mikmach</cc>
    
    <cc>mohammed.ahmed.anwer</cc>
    
    <cc>opensourcecat</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin>5.0.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>417121</commentid>
    <comment_count>0</comment_count>
    <who name="S. Burmeister">sven.burmeister</who>
    <bug_when>2006-02-24 19:26:20 +0000</bug_when>
    <thetext>Version:           0.8.1 (using KDE KDE 3.5.1)
Installed from:    SuSE RPMs
OS:                Linux

I select some pictures from within an album and drag them to another to move them there. I get the dialogue stating that the picture already exists. Yet the pictures are not shown, but instead there is the notice that they are not on a local-storag, which is wrong, as they are in my home-dir, which is on a local hdd.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>448619</commentid>
    <comment_count>1</comment_count>
    <who name="S. Burmeister">sven.burmeister</who>
    <bug_when>2006-06-21 20:26:51 +0000</bug_when>
    <thetext>Can nobody confirm this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>448877</commentid>
    <comment_count>2</comment_count>
    <who name="Mikolaj Machowski">mikmach</who>
    <bug_when>2006-06-22 16:21:37 +0000</bug_when>
    <thetext>Yes, it happens for me also.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>455810</commentid>
    <comment_count>3</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2006-07-25 19:04:43 +0000</bug_when>
    <thetext>Yes, of course i can confirm this bug.

I suspect than camera picture download bug #126427 is the same problem.

After investiguations, the problem is relevant of KURL construct by digiKam and passed to KDE kio-slave to copy/move the pictures.

The KURL is given by PAlbum class and use &quot;digikamalbum:/&quot; protocol witch is unkown by KDE kio-slave. This is why the dialog cannot found the image to display.

Not yet tested, but if i force in digiKam to use &quot;file:/&quot; protocol with kurl passed to KDE kio-slave, all will work fine.

Marcel, i would have your viewpoint about &quot;digikamalbum:/&quot; protocol: 

- The error come from PAlbum class where a full compatible kurl method need to be added, especially for KDE kio-slave...

or

- The error come from kio-slave protocol installation witch is not properlly installed and reconized by KDE...

or 

- Something is missing in digikamalbum kio-slave to be compliant with KDE rules.

Gilles</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>455885</commentid>
    <comment_count>4</comment_count>
    <who name="Marcel Wiesweg">marcel.wiesweg</who>
    <bug_when>2006-07-25 22:59:01 +0000</bug_when>
    <thetext>AlbumFolderView::contentsDropEvent will call DIO::copy with kioURLs.
DIO::copy will call KIO::copy.

KIO::copy will check if the dest exists, it does, so I think it is the KDE libs that will popup the overwrite dialog. Of course, it is unknown to KDE libs that digikamalbums:/ is actually a local file. Don&apos;t know how to change that.

Then, KDE libs will load the proper kioslave, and kio_digikamalbums::copy will get called. You have the debug statement from that method in your ~/.xsession-errors.

Then the copy method will somewhere return with KIO::ERR_ACCESS_DENIED, and the error message is sent to digikam.
So we have to fix the ioslave.

Or, some not-thought-through ideas:
- in albumfolderview, use normal file:/ URLs and afterwars do the same as in ImageWindow::saveAsIsComplete. Race-condition proof?
- use ForwardingSlaveBase for all file-related stuff in our ioslave - a pity, it&apos;s only available for KDE 3.4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>470969</commentid>
    <comment_count>5</comment_count>
    <who name="Marcel Wiesweg">marcel.wiesweg</who>
    <bug_when>2006-09-18 22:16:21 +0000</bug_when>
    <thetext>SVN commit 586141 by mwiesweg:

Provide the UDS_LOCAL_PATH entry.
Now the KDE replace file dialog will no longer think digikamalbums:/ is a remote file.

CCBUG: 122653


 M  +5 -1      digikamalbums.cpp  


--- trunk/extragear/graphics/digikam/kioslave/digikamalbums.cpp #586140:586141
@@ -1149,7 +1149,11 @@
     atom.m_uds = KIO::UDS_NAME;
     atom.m_str = QFileInfo(path).fileName();
     entry.append(atom);
-    
+
+    atom.m_uds = KIO::UDS_LOCAL_PATH;
+    atom.m_str = path;
+    entry.append(atom);
+
     return true;
 }
 
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>470973</commentid>
    <comment_count>6</comment_count>
    <who name="Marcel Wiesweg">marcel.wiesweg</who>
    <bug_when>2006-09-18 22:20:14 +0000</bug_when>
    <thetext>When I tested this, I got an error message, (#4), but now it seems to me this bug is only about the &quot;not on local storage&quot; message. This is fixed now, so I close this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>486972</commentid>
    <comment_count>7</comment_count>
    <who name="Marcel Wiesweg">marcel.wiesweg</who>
    <bug_when>2006-11-15 19:05:50 +0000</bug_when>
    <thetext>SVN commit 605173 by mwiesweg:

Revert fix for bug #122653, as a temporary fix for bug #137282

CCBUG: 137282, 122653


 M  +7 -0      digikamalbums.cpp  


--- trunk/extragear/graphics/digikam/kioslave/digikamalbums.cpp #605172:605173
@@ -1151,11 +1151,18 @@
     atom.m_str = QFileInfo(path).fileName();
     entry.append(atom);
 
+    /*
+    // If we provide the local path, a KIO::CopyJob will optimize away
+    // the use of our custom digikamalbums:/ ioslave, which breaks
+    // copying the database entry:
+    // Disabling this as a temporary solution for bug #137282
+    // This code is intended as a fix for bug #122653.
 #if KDE_IS_VERSION(3,4,0)
     atom.m_uds = KIO::UDS_LOCAL_PATH;
     atom.m_str = path;
     entry.append(atom);
 #endif
+    */
 
     return true;
 }
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>486974</commentid>
    <comment_count>8</comment_count>
    <who name="Marcel Wiesweg">marcel.wiesweg</who>
    <bug_when>2006-11-15 19:07:27 +0000</bug_when>
    <thetext>Reopening, see comment #7</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>560095</commentid>
    <comment_count>9</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2007-12-04 07:57:49 +0000</bug_when>
    <thetext>Marcel,

Do you know a new issue for this file ?

Gilles</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>560278</commentid>
    <comment_count>10</comment_count>
    <who name="Marcel Wiesweg">marcel.wiesweg</who>
    <bug_when>2007-12-04 18:31:32 +0000</bug_when>
    <thetext>I have not tried it for KDE4, for KDE3, the situation did not change as far as I see...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>675125</commentid>
    <comment_count>11</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2008-12-04 15:41:29 +0000</bug_when>
    <thetext>Marcel, 

What news with 0.10.0 ? It still valid ?

Gilles</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>675474</commentid>
    <comment_count>12</comment_count>
    <who name="Marcel Wiesweg">marcel.wiesweg</who>
    <bug_when>2008-12-04 23:41:20 +0000</bug_when>
    <thetext>Yes this is still valid. We can re-analyze if we have other means to fix this for KDE4 of course, I dont know currently.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>679813</commentid>
    <comment_count>13</comment_count>
    <who name="Marcel Wiesweg">marcel.wiesweg</who>
    <bug_when>2008-12-11 19:07:09 +0000</bug_when>
    <thetext>*** Bug 177500 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>679816</commentid>
    <comment_count>14</comment_count>
    <who name="Marcel Wiesweg">marcel.wiesweg</who>
    <bug_when>2008-12-11 19:08:11 +0000</bug_when>
    <thetext>I promote this bug to 0.10. We can see if we find a solution with KDE4, but it&apos;s difficult as the relevant dialog comes from kdelibs directly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>693665</commentid>
    <comment_count>15</comment_count>
    <who name="Marcel Wiesweg">marcel.wiesweg</who>
    <bug_when>2009-01-04 12:51:40 +0000</bug_when>
    <thetext>*** Bug 179585 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>785639</commentid>
    <comment_count>16</comment_count>
    <who name="Andi Clemens">andi.clemens</who>
    <bug_when>2009-07-02 22:43:00 +0000</bug_when>
    <thetext>Still not working (and maybe never will).
You get the &quot;remote src&quot; labels and when you click them, the thumbnail will appear.
Maybe we need to write a &quot;real&quot; slave for this, not only a wrapper, like here:
http://lxr.kde.org/source/KDE/kdebase/workspace/kcontrol/kfontinst/kio/KioFonts.h

But then again I don&apos;t know if you get the dialog (properly yes).

Andi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>785649</commentid>
    <comment_count>17</comment_count>
    <who name="Andi Clemens">andi.clemens</who>
    <bug_when>2009-07-02 22:54:39 +0000</bug_when>
    <thetext>Hmm but why is it even working when I click the label?
If this is possible, it should also be possible to display the thumbnail in the first place, right?

Andi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>785972</commentid>
    <comment_count>18</comment_count>
    <who name="Marcel Wiesweg">marcel.wiesweg</who>
    <bug_when>2009-07-03 16:36:17 +0000</bug_when>
    <thetext>The problem is in the depth of KIO, where our requests are identified as &quot;remote&quot; because the protocol is unknown and no UDS_LOCAL_PATH is provided.

The ioslave is not needed as much as in autumn of 2006, the fix from #5 may in fact be applicable now again.
Should we dare it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>848740</commentid>
    <comment_count>19</comment_count>
    <who name="Andi Clemens">andi.clemens</who>
    <bug_when>2009-10-22 11:38:51 +0000</bug_when>
    <thetext>*** Bug 211426 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>