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

            Bug ID: 434795
           Summary: Advanced search seems to notice internal tags
           Product: digikam
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Searches-Advanced
          Assignee: digikam-bugs-n...@kde.org
          Reporter: matti-kdeb...@twonth.com
  Target Milestone: ---

Created attachment 136955
  --> https://bugs.kde.org/attachment.cgi?id=136955&action=edit
search that by definition should return no photos but actually returns all my
untagged photos

SUMMARY
Advanced Search -> "Return items with tag" dropdown can be made to select and
search by tags that are not actually visible in the dropdown.

STEPS TO REPRODUCE
1. Create a new Advanced Search. Leave it as "Meet All of the following
conditions".
2. Under "Tags", click "Not Tagged".
3. Under "Tags", go to the "Return items with tag" dropdown. Right-click to get
the context menu, then click Select -> All Tags.
  b. Then *manually* deselect all the tags in the dropdown.
4. Search.

OBSERVED RESULT

The search returns all of my untagged photos.

When I close the dropdown, it says "22 Tags selected". There's no evidence of
what these tags are, and re-opening the dropdown shows all my tags deselected.

Clicking search then returns all untagged photos.

If I uncheck "Not Tagged" and try again, I get almost all of my photos --
everything except videos and some screencaps. That makes me think the 22
mystery tags are real tags that are used internally. 

EXPECTED RESULT

The search should return 0 photos, since the two clauses are contradictory.

"Return items with tag" will say "0 tags selected". If it DOES show that some
tags are selected, then the search should return 0 items, since "Not Tagged" is
also checked off.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Kubuntu 20.04
(available in About System)
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8

ADDITIONAL INFORMATION

When I go back into the "Return items with tags" dropdown and *manually*
deselect everything in the list, the dropdown still says "22 Tags selected",
and the search still returns all my non-tagged photos. This makes me think that
there are 22 real tags that are used internally, and Advanced Search is
accidentally selecting them.  

The reason this matters at all:

I was trying to search for photos that have zero of my non-People tags. There
seemed to be an easy way to construct the negative clause I needed: select the
People tree, then click Invert Selection. But this then encompassed the 22
mystery tags that don't belong to me and are on all of my photos, which in turn
led to the wrong search behavior.

I worked around this by just clicking all my non-People tags manually. It's a
pain, but totally doable.

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

Reply via email to