fix default version selection to allow for renamed "unspecified" versions
ClosedPublic

Authored by sitter on Sep 25 2019, 10:30 AM.

Details

Summary

plasmashell for example has a "master" instead of "unspecified". if we
still tried to file a bug against "unspecified" bugzilla will throw rather
unhelpful errors. instead as a fallback to finding a "proper" version, make
sure to set the "default" to something sane. if the hardcoded default
doesn't map to an actual version as per the API we pick the lowest possible
id and file against that instead. seeing as you cannot remove versions this
should technically be the "unspecified" version no matter what it was
renamed to.

BUG: 411983

Test Plan

can file bugs against plasmashell even when kcrash passed an empty or unmapped version

Diff Detail

Repository
R871 DrKonqi
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
sitter created this revision.Sep 25 2019, 10:30 AM
Restricted Application added a project: Plasma. · View Herald TranscriptSep 25 2019, 10:30 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
sitter requested review of this revision.Sep 25 2019, 10:30 AM
This revision was not accepted when it landed; it landed in state Needs Review.Sep 25 2019, 11:26 AM
This revision was automatically updated to reflect the committed changes.