Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
gexiv2
gexiv2
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 22
    • Issues 22
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 2
    • Merge Requests 2
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • GNOME
  • gexiv2gexiv2
  • Issues
  • #61

Closed
Open
Opened Nov 19, 2020 by postscript-dev@postscript-devContributor

Incorrect xmpText and langAlt (Xmp) return values from gexiv2_metadata_[try_]get_tag_multiple()

This issue applies to gexiv2 0.12.1.X and others earlier.

When calling gexiv2_metadata_[try_]get_tag_multiple() with an existing xmpText or langAlt type (Xmp) tag, the return value is incorrect.

xmpText:

An xmpText type only contains a single value. If getting a tag (e.g. Xmp.dc.subject) containing the value 1234, the return value would be

array[0] = "1234"
array[1] = "1234"
array[2] = "1234"
array[3] = "1234"
array[4] = nullptr

instead of

array[0] = "1234"
array[1] = nullptr

langAlt:

langAlt types contain language definitions with an optional default value which is always returned in the 0'th position of the array. If getting a tag (e.g. Xmp.dc.title) containing the value "lang=\"x-default\" Monday, lang=\"fr\" Lundi, lang=\"de\" Montag", the return value would be

array[0] = "Monday"
array[1] = "Monday"
array[2] = "Monday"
array[3] = nullptr

instead of

array[0] = "lang=\"x-default\" Monday"
array[1] = "lang=\"fr\" Lundi"
array[2] = "lang=\"de\" Montag"
array[3] = nullptr
Edited Nov 20, 2020 by postscript-dev
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: GNOME/gexiv2#61