<?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>430134</bug_id>
          
          <creation_ts>2020-12-08 01:23:47 +0000</creation_ts>
          <short_desc>Face tags lost and captions mis-transferred after digiKam automatically renames a conflicting filename</short_desc>
          <delta_ts>2020-12-08 20:47:20 +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-Scan</component>
          <version>7.2.0</version>
          <rep_platform>Appimage</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="Mike Morrison">mike</reporter>
          <assigned_to name="Digikam Developers">digikam-bugs-null</assigned_to>
          <cc>caulier.gilles</cc>
    
    <cc>metzpinguin</cc>
          
          <cf_commitlink>https://invent.kde.org/graphics/digikam/commit/9fa4cedd71b5a645e8c3c8a4912b3044b4c82e1f</cf_commitlink>
          <cf_versionfixedin>7.2.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1982487</commentid>
    <comment_count>0</comment_count>
    <who name="Mike Morrison">mike</who>
    <bug_when>2020-12-08 01:23:47 +0000</bug_when>
    <thetext>SUMMARY
When digiKam automatically renames an image to resolve a duplicate filename during a move, the existing image&apos;s face tags can be lost. Additionally, the caption from the moved image can be incorrectly moved to the existing image.

STEPS TO REPRODUCE
1. Start with 2 different images, having the same filename, in 2 different albums. For example:
In album &quot;Friends&quot;, have a photo of a person, called &quot;photo.jpg&quot;.
In album &quot;Plants&quot;, have a photo of a flower, called &quot;photo.jpg&quot;.

2. Apply a face tag (e.g. &quot;Mike&quot;) to a region of the person photo.

3. Apply a caption (e.g. &quot;A nice flower&quot;) to the flower photo.

4. Right-click the flower photo and choose &quot;Move to Album...&quot;

5. Choose the &quot;Friends&quot; album as the destination.

6. digiKam will warn of a file conflict. Choose &quot;Rename automatically&quot;.

7. Look in the &quot;Friends&quot; album. Both photos are there. The flower photo has been renamed to &quot;photo_v1.jpg&quot;. But:

OBSERVED RESULT
The person&apos;s photo has lost its face tag.
The caption &quot;A nice flower&quot; has been removed from the flower photo, and applied to the person&apos;s photo.

EXPECTED RESULT
The person&apos;s photo should keep its face tag.
The flower photo should keep its caption.
The flower caption should not be applied to the person&apos;s photo.

SOFTWARE/OS VERSIONS
Ubuntu 20.10
digikam-7.2.0-beta2-20201202T061220-x86-64.appimage
KDE Plasma Version: 
KDE Frameworks Version: 5.74.0
Qt Version: 5.14.2

ADDITIONAL INFORMATION
Database: SQLite
Write This Information to the Metadata: None</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1982586</commentid>
    <comment_count>1</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2020-12-08 07:37:51 +0000</bug_when>
    <thetext>This is a problem with the Scan Controller. The hints that we give him on the way to the later scan are no longer correct because the file name has changed.

Maik</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1982745</commentid>
    <comment_count>2</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2020-12-08 20:47:20 +0000</bug_when>
    <thetext>Git commit 9fa4cedd71b5a645e8c3c8a4912b3044b4c82e1f by Maik Qualmann.
Committed on 08/12/2020 at 20:46.
Pushed by mqualmann into branch &apos;master&apos;.

fix scan item after move and renaming to album
FIXED-IN: 7.2.0

M  +2    -1    NEWS
M  +8    -1    core/libs/database/utils/ifaces/dio.cpp
M  +3    -1    core/libs/iojobs/iojob.cpp
M  +5    -3    core/libs/iojobs/iojobdata.cpp

https://invent.kde.org/graphics/digikam/commit/9fa4cedd71b5a645e8c3c8a4912b3044b4c82e1f</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>