[digikam] [Bug 341053] New: Text Filter broken

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 341053] New: Text Filter broken

DrSlony-4
https://bugs.kde.org/show_bug.cgi?id=341053

            Bug ID: 341053
           Summary: Text Filter broken
           Product: digikam
           Version: 4.5.0
          Platform: Gentoo Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Filters
          Assignee: [hidden email]
          Reporter: [hidden email]

The "Text Filter" is broken.

I have a folder full of PEF and DNG images. File names are:
2014-10-26_helsingborg_01.pef to 52, and some are in the DNG format.
Merged bracketed shots have this filename:
2014-10-26_helsingborg_21-25.dng (note the 21-25 part).
Also to test, I renamed the last photo to 2014-10-26_helsingborg_52 woof.pef
If I type "woof" in the text filter, I see:
2014-10-26_helsingborg_06-10.dng
2014-10-26_helsingborg_12-15.dng
2014-10-26_helsingborg_16-20.dng
2014-10-26_helsingborg_21-25.dng
2014-10-26_helsingborg_26-30.dng
2014-10-26_helsingborg_31-35.dng
2014-10-26_helsingborg_34.pef
2014-10-26_helsingborg_35.pef
2014-10-26_helsingborg_36-40.dng
2014-10-26_helsingborg_42-44.dng

If I type "gonzo", I see those same images. "gonzo" is a random word which I'm
100% sure does not exist in any of the files in any form, metadata or
otherwise.
If I type "pef", ".pef" or "*.pef" to see only PEF files, I see... all of them!

Reproducible: Always

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 341053] Text Filter broken

DrSlony-4
https://bugs.kde.org/show_bug.cgi?id=341053

--- Comment #1 from DrSlony <[hidden email]> ---
I hope this gets attention before 4.6, as it's quite a basic core functionality
that's broken.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 341053] Text Filter broken

Maik Qualmann
In reply to this post by DrSlony-4
https://bugs.kde.org/show_bug.cgi?id=341053

Maik Qualmann <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #2 from Maik Qualmann <[hidden email]> ---
Created attachment 89810
  --> https://bugs.kde.org/attachment.cgi?id=89810&action=edit
Imagefiltersettings.patch

I also have pictures with "gonzo" ;-) This images have a wrong pixel size (==0)
in the database.

Changes:

imagefiltersettings.h:

enum TextFilterFields
{
 None             = 0x00,
 ImageName        = 0x01,
 ImageTitle       = 0x02,
 ImageComment     = 0x04,
 TagName          = 0x08,
 AlbumName        = 0x10,
 ImageAspectRatio = 0x12, // AlbumName | ImageTitel ??? to -> 0x20
 ImagePixelSize   = 0x14, // AlbumName | ImageComment ??? to -> 0x40
 ...
 }

 imagefiltersettings.cpp:

 Only digits are accepted for ImagePixelSize, text would always be zero.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 341053] Text Filter broken [patch]

Gilles Caulier-4
In reply to this post by DrSlony-4
https://bugs.kde.org/show_bug.cgi?id=341053

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]
            Summary|Text Filter broken          |Text Filter broken [patch]

--- Comment #3 from Gilles Caulier <[hidden email]> ---
Maik,

Thanks a lots to review code and to build patch.

This ugly code are probably injected by students this summer, and i don't
detect it myself or with static code analyzer (Coverity).

I will review you patch before 4.6.0 release.

Best

Gilles Caulier

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 341053] Text Filter broken [patch]

Gilles Caulier-4
In reply to this post by DrSlony-4
https://bugs.kde.org/show_bug.cgi?id=341053

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Version Fixed In|                            |4.6.0
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
      Latest Commit|                            |http://commits.kde.org/digi
                   |                            |kam/d92e25b6a1b9ee328d03128
                   |                            |10241a3ecf2a21b2c

--- Comment #4 from Gilles Caulier <[hidden email]> ---
Git commit d92e25b6a1b9ee328d0312810241a3ecf2a21b2c by Gilles Caulier.
Committed on 03/12/2014 at 08:53.
Pushed by cgilles into branch 'master'.

apply patch #89810 from Maik Qualmann to fix text filtering enum values and
rules from FilterSettings about image pixel sizes filtering
FIXED-IN: 4.6.0

M  +2    -1    NEWS
M  +10   -7    libs/models/imagefiltersettings.cpp
M  +8    -8    libs/models/imagefiltersettings.h

http://commits.kde.org/digikam/d92e25b6a1b9ee328d0312810241a3ecf2a21b2c

--
You are receiving this mail because:
You are the assignee for the bug.


Make the world a better place. Donate to our year end fundraiser https://www.kde.org/fundraisers/yearend2014/
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel