Bug 406683 - 4 "undefined" entries on Edit Metadata dialog.
Summary: 4 "undefined" entries on Edit Metadata dialog.
Status: RESOLVED INTENTIONAL
Alias: None
Product: krita
Classification: Applications
Component: Usability (show other bugs)
Version: nightly build (please specify the git hash!)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
: 410343 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-04-19 16:57 UTC by Sabri Ünal
Modified: 2019-07-29 08:42 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
a screenshot of the bug (124.30 KB, image/png)
2019-04-19 16:57 UTC, Sabri Ünal
Details
test file (2.24 MB, image/jpeg)
2019-04-24 18:47 UTC, Sabri Ünal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sabri Ünal 2019-04-19 16:57:10 UTC
Created attachment 119508 [details]
a screenshot of the bug

Edit Metadata dialog has 4 "Undefined" entries on the Light source dropdown list

STEPS TO REPRODUCE
1. Choose Layer - Edit Metadata - Exif - Postprogressing
2. Click on "Light source" dropdown list.

SOFTWARE/OS VERSIONS

Krita

 Version: 4.2.0-pre-alpha
 Languages: en
 Hidpi: true

Qt

  Version (compiled): 5.9.5
  Version (loaded): 5.9.5

OS Information

  Build ABI: x86_64-little_endian-lp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: linux
  Kernel Version: 4.15.0-48-lowlatency
  Pretty Productname: Ubuntu 18.04.2 LTS
  Product Type: ubuntu
  Product Version: 18.04


Hardware Information

  GPU Acceleration: auto
  Memory: 15923 Mb
  Number of Cores: 8
  Swap Location: /tmp
Comment 1 Halla Rempt 2019-04-24 13:52:33 UTC
Can you attach the image with which this happens? The entries are dependent on what's part of the metadata inside the image.
Comment 2 Sabri Ünal 2019-04-24 18:47:01 UTC
Created attachment 119616 [details]
test file

I have tested on this file.

Even if you test on a new file, there are 4 "Undefined" entries on the Light Source drop-down list.
Comment 3 Bug Janitor Service 2019-04-25 04:33:13 UTC
Thanks for your comment!

Automatically switching the status of this bug to REPORTED so that the KDE team
knows that the bug is ready to get confirmed.

In the future you may also do this yourself when providing needed information.
Comment 4 Halla Rempt 2019-05-10 07:17:20 UTC
Hm... Okay, so this is actually hard-coded in exif.ui. I don't know why, and the original author has long since left the project. It's always been this way, from the very beginning so I assume it's because the number of options has to conform to some kind of schema document.

I'm not going to touch this, sorry. It'll have to wait until someone with lots of  knowledge of and deep interest in metadata comes along.
Comment 5 Halla Rempt 2019-05-10 07:22:17 UTC
Okay, it's actually correct... As I should have expected. https://www.awaresystems.be/imaging/tiff/tifftags/privateifd/exif/lightsource.html shows the exif light source values. As you can see, there are gaps in the numbering. A combobox cannot have those gaps, so Cyrille inserted Undefined entries where necessary.

So this was certainly intentional and while weird, it's not a bug.
Comment 6 Halla Rempt 2019-07-29 08:42:48 UTC
*** Bug 410343 has been marked as a duplicate of this bug. ***