Bug 1704831 - SWID dnf plugin uses the wrong info in error message if rpm2swidtag fails
Summary: SWID dnf plugin uses the wrong info in error message if rpm2swidtag fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: swid-tools
Version: 30
Hardware: All
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Jan Pazdziora
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-30 15:42 UTC by Stephen Tweedie
Modified: 2019-05-15 01:35 UTC (History)
2 users (show)

Fixed In Version: swid-tools-0.8.2-1.fc30
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-15 01:35:12 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Stephen Tweedie 2019-04-30 15:42:35 UTC
Description of problem:
Cosmetic issue: the SWID dnf plugin emits an error with incorrect/meaningless information about the package affected, if its invocation of rpm2swidtag fails to produce a valid tag.

Version-Release number of selected component (if applicable):
swid-tools-0.8.0-1.fc30.noarch


How reproducible:
100%


Steps to Reproduce:
1. Set up rpm2swidtag to fail silently, by setting the option
rpm2swidtag_command = /bin/true
in /etc/dnf/plugins/swidtags.conf

2. Install an rpm, eg.
# dnf install make

Actual results:
The SWID tag for rpm 4 should have been generated but could not be found


Expected results:
The rpm name should be given, not just the first char of the version.

Comment 1 Jan Pazdziora 2019-05-06 09:44:10 UTC
The issue has been fixed upstream:
https://github.com/swidtags/rpm2swidtag/commit/437b6ac875be28b52ac1678e27299cc460384d9b

Comment 2 Fedora Update System 2019-05-06 14:50:58 UTC
swid-tools-0.8.2-1.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-2c96e4701e

Comment 3 Fedora Update System 2019-05-06 21:04:04 UTC
swid-tools-0.8.2-1.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-2c96e4701e

Comment 4 Fedora Update System 2019-05-15 01:35:12 UTC
swid-tools-0.8.2-1.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.