[Bug 308712] New: Geolocation window corrupts XMP files

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

[Bug 308712] New: Geolocation window corrupts XMP files

james-2
https://bugs.kde.org/show_bug.cgi?id=308712

            Bug ID: 308712
          Severity: normal
           Version: 2.8.0
          Priority: NOR
          Assignee: [hidden email]
           Summary: Geolocation window corrupts XMP files
    Classification: Unclassified
                OS: Linux
          Reporter: [hidden email]
          Hardware: Ubuntu Packages
            Status: UNCONFIRMED
         Component: Geolocation
           Product: digikam

Digikam will not write Geolocation information to an XMP sidecar file; instead,
a corrupt sidecar file is generated. If a sidecar file already exists, it is
overwritten by the corrupt file.

Reproducible: Always

Steps to Reproduce:
0. Set Digikam to write metadata to sidecar files
1. Select image, open Geolocation dialog from Image menu
2. Drag image onto map
3. Click Apply
Actual Results:  
XMP file is generated with only "<?xml version="1.0" encoding="UTF-8"?>" as the
contents.

Expected Results:  
Geolocation information is written to the XMP file.

--
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 308712] Geolocation window corrupts XMP files

Gilles Caulier-4
https://bugs.kde.org/show_bug.cgi?id=308712

Gilles Caulier <[hidden email]> changed:

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

--- Comment #1 from Gilles Caulier <[hidden email]> ---
It's probably relevant of Exiv2. Can you reproduce using Exiv2 command line
tool  ?

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
|

[Bug 308712] Geolocation window corrupts XMP files

james-2
In reply to this post by james-2
https://bugs.kde.org/show_bug.cgi?id=308712

--- Comment #2 from [hidden email] ---
Sorry, I wouldn't know what parameters or options I should be giving the exiv2
command line tool.

--
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 308712] Geolocation window corrupts XMP files

james-2
In reply to this post by james-2
https://bugs.kde.org/show_bug.cgi?id=308712

--- Comment #3 from [hidden email] ---
I did a test with the same image in Geeqie. That too issued the same truncated
XMP file when writing metadata. In the terminal window was the message:

  Error: XMP Toolkit error 4: Invalid UTF-8 sequence length
  Error: Failed to encode XMP metadata.
  Error: XMP Toolkit error 4: Invalid UTF-8 sequence length
  Error: Failed to encode XMP metadata.

The image in question was taken by a Samsung Galaxy S3 which for some reason
embeds the caption "ΓΈ;" (including two nonprintable characters) in every
photo. I re-tested Digikam with an image from a Canon 550D (which embeds no
such nonsense), and the bug did not occur.

Googling these error messages turned up this:
http://dev.exiv2.org/boards/3/topics/1073

Is it possible that exiv2 is being fed non-UTF-8 characters, triggering the
error?

--
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 308712] Geolocation window corrupts XMP files

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

--- Comment #4 from Gilles Caulier <[hidden email]> ---
Andreas,

Comment #3 is for you...

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
|

[Bug 308712] Geolocation window corrupts XMP files

Marcel Wiesweg
In reply to this post by james-2
https://bugs.kde.org/show_bug.cgi?id=308712

--- Comment #5 from Marcel Wiesweg <[hidden email]> ---
I understand to reproduce, one needs a special file which contains possibly
invalid data in the XMP. Can you provide an image file for testing?

--
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 308712] Geolocation window corrupts XMP files

james-2
In reply to this post by james-2
https://bugs.kde.org/show_bug.cgi?id=308712

--- Comment #6 from [hidden email] ---
Created attachment 74761
  --> https://bugs.kde.org/attachment.cgi?id=74761&action=edit
Image with strange value in EXIF User Comment field

No problem, here you go. Shrunken from original but still exhibits the problem.

--
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 308712] Geolocation window corrupts XMP files

Marcel Wiesweg
In reply to this post by james-2
https://bugs.kde.org/show_bug.cgi?id=308712

--- Comment #7 from Marcel Wiesweg <[hidden email]> ---
The attached photo does not seem to have any metadata, neither Exif, not IPTC,
XMP nor a JPEG comment.

--
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 308712] Geolocation window corrupts XMP files

Marcel Wiesweg
In reply to this post by james-2
https://bugs.kde.org/show_bug.cgi?id=308712

Marcel Wiesweg <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEEDSINFO
         Resolution|---                         |WAITINGFORINFO

--- Comment #8 from Marcel Wiesweg <[hidden email]> ---
Not reproducible as provided image does not seem to have any metadata

--
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 308712] Geolocation window corrupts XMP files

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

--- Comment #9 from Gilles Caulier <[hidden email]> ---
New digiKam 4.11.0 is available :

https://www.digikam.org/node/740

Can you reproduce the problem with this release ?

--
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 308712] Geolocation window corrupts XMP files

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

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDSINFO                   |RESOLVED

--
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 308712] Geolocation window corrupts XMP files

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

--- Comment #10 from Gilles Caulier <[hidden email]> ---
digiKam 4.12.0 is out :

https://www.digikam.org/node/741

We need a fresh feedback using this release please...
Thanks in advance.

--
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 308712] Geolocation window corrupts XMP files

bugzilla_noreply
In reply to this post by james-2
https://bugs.kde.org/show_bug.cgi?id=308712

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Version Fixed In|                            |5.1.0
         Resolution|WAITINGFORINFO              |FIXED

--- Comment #11 from [hidden email] ---
This problem is not reproducible using last digiKam 5.0.0 + Exiv2 0.25.
I close this file now. Don't hesitate to re-open if necessary.
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