https://bugs.kde.org/show_bug.cgi?id=481180

            Bug ID: 481180
           Summary: digikam incorrectly reads metadata field "Subject"
                    when "HierarchicalSubject" is also present
    Classification: Applications
           Product: digikam
           Version: 8.1.0
          Platform: Debian testing
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: Tags-Engine
          Assignee: digikam-bugs-n...@kde.org
          Reporter: fale...@outlook.com
  Target Milestone: ---

SUMMARY
Keywords present in "Subject" are ignored if they are part of any
"HierarchicalSubject" keyword and they are not the last part of 
"HierarchicalSubject" keyword.

STEPS TO REPRODUCE
1. Prepare a picture with the following metadata fields (all other tag related
metadata empty):
 - Subject: France, Nord, Lille
 - HierarchicalSubject: places|France|Nord|Lille 
This can be done e.g. by command:
 - exiftool -Subject="France, Nord, Lille"
-HierarchicalSubject="places|France|Nord|Lille" image.jpg
in my case the tags are generated by darktable.
2. Add the picture into digikam database and read the metadata.

OBSERVED RESULT
Only the last level of the tag "places/France/Nord/Lille" is attached to the
picture. Hence, the picture cannot be found by searching for "France" or
"Nord", it can only be found by searching for "Lille".

EXPECTED RESULT
Either both middle levels ("France", "Nord") of the tag
"places/France/Nord/Lille" attached to the picture (preferably) or
non-hierarchical tags "France" and "Nord" attached to the picture.

ADDITIONAL INFORMATION
If the field "Subject" were to contain also an additional tag, let's say
"panorama" (while "HierarchicalSubject" being the same), the tag would also be
attached to the picture. There is no reason to ignore the tags ("France",
"Nord") from the example. Moreover, when digikam itself writes the read
metadata (only the last level of tag "places/France/Nord/Lille" attached), the
result differs:
 - Subject: Lille
 - HierarchicalSubject: places|France|Nord|Lille
Notice that only "Lille" is in the "Subject".

I don't see this topic in the release notes for digikam 8.2 (no idea about
8.3).

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian GNU/Linux 12
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to