[Bug 231114] New: unused template fields overwrite existing used fields when applying template

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

[Bug 231114] New: unused template fields overwrite existing used fields when applying template

Gus Gustafson
https://bugs.kde.org/show_bug.cgi?id=231114

           Summary: unused template fields overwrite existing used fields
                    when applying template
           Product: digikam
           Version: 1.0.0
          Platform: Ubuntu Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: [hidden email]
        ReportedBy: [hidden email]


Version:           1.0.0 (using KDE 4.3.2)
OS:                Linux
Installed from:    Ubuntu Packages

Not sure if this is a bug or change request.

I use the metadata template to automatically fill a couple fields. However, I
do not use the template for setting the location fields, such as sublocation,
city, etc. In other words, those ones are left blank in the template.

However, I recently found that, after applying the template to a folder of
images, this caused all the data in those location fields to be deleted.

I think that if there is already data in a field, when you apply a template,
that data should not be touched unless the template has something different for
that field.  It is better to leave more information, which can always be
deleted later, than to delete information unexpectedly (at least, I did not
expect to happen.) Or, perhaps the best way is to allow user to choose, for
each field in template with null value, whether existing data will be removed.
So, maybe each field has a checkbox (that appears or becomes active when null
value is present) that you can check to "clear existing data?" or something.

Or, you can forget the checkbox and just let people clear fields on multiple
files once the sidebar metadata-edit feature (for fields other than comment) is
added, if that is something they need to do.

But I think it is bad to leave it deleting data.

Thanks for a great software.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 231114] unused template fields overwrite existing used fields when applying template

Marcel Wiesweg
https://bugs.kde.org/show_bug.cgi?id=231114





--- Comment #1 from Marcel Wiesweg <marcel wiesweg gmx de>  2010-03-17 19:03:56 ---
I think there is a very similar bug report already, but I dont find it right
now.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 231114] unused template fields overwrite existing used fields when applying template

Gus Gustafson
In reply to this post by Gus Gustafson
https://bugs.kde.org/show_bug.cgi?id=231114





--- Comment #2 from Gus Gustafson <efelthauser gmail com>  2010-03-17 19:19:19 ---
i wonder if you are referring to #203732:
https://bugs.kde.org/show_bug.cgi?id=203732
however, if so, that issue concerned inadvertent copying of the caption
field's data of the first file to the caption field of other files when
applying templates. it seemed to me the issue I describe is different, since
caption is not even a field that can be set by the template.


On Wed, Mar 17, 2010 at 1:03 PM, Marcel Wiesweg <[hidden email]>wrote:

> https://bugs.kde.org/show_bug.cgi?id=231114
>
>
>
>
>
> --- Comment #1 from Marcel Wiesweg <marcel wiesweg gmx de>  2010-03-17
> 19:03:56 ---
> I think there is a very similar bug report already, but I dont find it
> right
> now.
>
> --
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You reported the bug.
>

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 231114] unused template fields overwrite existing used fields when applying template

Marcel Wiesweg
In reply to this post by Gus Gustafson
https://bugs.kde.org/show_bug.cgi?id=231114





--- Comment #3 from Marcel Wiesweg <marcel wiesweg gmx de>  2010-03-17 21:43:50 ---
No you're right that's not this bug. At least I'm sure to have talked about
checkboxes or similar solutions a longer time ago.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 231114] unused template fields overwrite existing used fields when applying template

Milan Knizek
In reply to this post by Gus Gustafson
https://bugs.kde.org/show_bug.cgi?id=231114


Milan Knizek <[hidden email]> changed:

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




--- Comment #4 from Milan Knizek <knizek volny cz>  2010-04-14 20:16:32 ---
The topic is being discussed also here
https://bugs.kde.org/show_bug.cgi?id=144858

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 231114] unused template fields overwrite existing used fields when applying template

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


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]
          Component|general                     |Metadata




--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 231114] unused template fields overwrite existing used fields when applying template

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





--- Comment #5 from Gilles Caulier <caulier gilles gmail com>  2012-01-29 22:11:53 ---
*** Bug 292801 has been marked as a duplicate of this bug. ***

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 231114] unused template fields overwrite existing used fields when applying template

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


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|1.0.0                       |2.5.0




--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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 231114] unused template fields overwrite existing used fields when applying template

Gus Gustafson
In reply to this post by Gus Gustafson
https://bugs.kde.org/show_bug.cgi?id=231114

Gus Gustafson <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical

--- Comment #6 from Gus Gustafson <[hidden email]> ---
This is a critical bug. Using the template feature of digiKam causes unexpected
data loss. Templates actively delete metadata in fields that are not set in the
template.

I cannot use template, as they have deleted the City, Country, and Sublocation
data on many, many photos. This has thrown hours of work in the trash.

This is very bad behavior.

Users: You have been warned.

--
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 231114] unused template fields overwrite existing used fields when applying template

Gus Gustafson
In reply to this post by Gus Gustafson
https://bugs.kde.org/show_bug.cgi?id=231114

Gus Gustafson <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|2.5.0                       |2.8.0

--
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 231114] Uused template fields overwrite existing used fields when applying template

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

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|unused template fields      |Uused template fields
                   |overwrite existing used     |overwrite existing used
                   |fields when applying        |fields when applying
                   |template                    |template
           Severity|critical                    |normal

--
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 231114] Used template fields overwrite existing used fields when applying template

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

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Uused template fields       |Used template fields
                   |overwrite existing used     |overwrite existing used
                   |fields when applying        |fields when applying
                   |template                    |template

--
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 231114] Used template fields overwrite existing used fields when applying template

Gus Gustafson
In reply to this post by Gus Gustafson
https://bugs.kde.org/show_bug.cgi?id=231114

--- Comment #7 from Gus Gustafson <[hidden email]> ---
Hello Giles,
Hope you're doing well.
I see that you changed the first word in the title of this bug from "Unused" to
"Used", but I believe this is not correct. As I understand it, it is correct
originally. It is fields that are NOT used in the template that are actively
overwriting existing data in those fields...
This is why I no longer use templates in DigiKam, instead using exiv2 directly
for the desired fields...

--
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 231114] Used template fields overwrite existing used fields when applying template

Milan Knizek
In reply to this post by Gus Gustafson
https://bugs.kde.org/show_bug.cgi?id=231114

--- Comment #8 from Milan Knížek <[hidden email]> ---
(In reply to Gus Gustafson from comment #7)
> I see that you changed the first word in the title of this bug from "Unused"
> to "Used", but I believe this is not correct. As I understand it, it is
Well spotted.

I just tested again with digiKam 4.2.0 and indeed the application of the
template overwrites silently any data that existed, no matter that the
corresponding field in the template is empty.

Not only does it overwrite existing field text with an an empty one, it also
sets the various keys in XMP, even that there are empty and there is no reason
for such a key to be written to XMP.

As you wrote, it is dangerous to use the templates atm and probably not many
people use them anyway - at least based on the short "CC List" of this bug.

Perhaps the bug title should be changed to "Empty (unset) template fields erase
already populated fields of the image metadata once the template is applied"?

--
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 231114] TEMPLATE : Used fields overwrite existing used fields when applying template

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

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Used template fields        |TEMPLATE : Used fields
                   |overwrite existing used     |overwrite existing used
                   |fields when applying        |fields when applying
                   |template                    |template

--
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 231114] TEMPLATE : Used fields overwrite existing used fields when applying template

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

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|Metadata                    |Metadata-Template

--
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