Bug in v1.97: IPTC-Editor may corrupt IPTC data

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: helmut, XnTriq, xnview

Post Reply
KlausT
Posts: 20
Joined: Thu Dec 31, 2009 10:54 am
Location: Paderborn, Germany

Bug in v1.97: IPTC-Editor may corrupt IPTC data

Post by KlausT »

How to reproduce this bug in v1.97 on WinXP SP3:

1. in browser mode, select one or more pictures with IPTC data
2. call IPTC-editor
3. press "Clear All" button
4. add some new IPTC data (which means: not previously existing data)
5. from "Writing options", select "Combine new & curent values"
6. select "Add new values to current value ..."
7. select "Keep current value if new value is empty"
8. deselect "Replace only if current value is empty
9. write data, close IPTC editor and check results:

In case of "Write" to a single picture, only the new IPTC data will be stored to the file, all previously existing data are deleted; this is unexpected and contradicts the option "Keep current value if new value is empty".

In case of "Write all selected", XnView v1.97 shows expected behaviour, no data are lost.

Additional notes: XnView 1.96 works well for both write options; XnViewMP v0.21 behaves like v1.97.
Klaus (running Windows)
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

Re: Bug in v1.97: IPTC-Editor may corrupt IPTC data

Post by Clo »

:arrow: KlausT

:) Hello ! Welcome aboard !
…3. press "Clear All" button …
• IMHO, this removes all existing data… Please, test skipping that step. Image

:mrgreen: Kind regards
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice
KlausT
Posts: 20
Joined: Thu Dec 31, 2009 10:54 am
Location: Paderborn, Germany

Re: Bug in v1.97: IPTC-Editor may corrupt IPTC data

Post by KlausT »

Claude,
thanks for your welcome and for the hint concerning the "Clear All" button, but this is not my point. You are telling me a workaround to avoid the data loss, but this is not a solution to this obvious bug:

- there is a discrepancy between the option "Keep current value if new value is empty" and the result;
- the unexpected result with potential data loss is irreversible (there's no "preview" mode nor an "undo" function);
- there should be no difference with respect to the result in writing to a single or to more than one picture;
- there should be no incompatibility to v1.96.5 behaviour without good reasons.

I think, it is important to have a clear and consistent user interface, especially for a complex application like XnView. A workaround can help to overcome a problem until a bugfix is available. Please imagine what happens if the user interface consists of too many workarounds...

Thanks,
Klaus
Klaus (running Windows)
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Bug in v1.97: IPTC-Editor may corrupt IPTC data

Post by xnview »

KlausT wrote: In case of "Write" to a single picture, only the new IPTC data will be stored to the file, all previously existing data are deleted; this is unexpected and contradicts the option "Keep current value if new value is empty".
Ok, right. Could you send me your email by PM?
Pierre.
Post Reply