Bug 1746349 - Incorrect parsing of "--setopt" with repositories with dots
Summary: Incorrect parsing of "--setopt" with repositories with dots
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: dnf
Version: 8.2
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: rc
: 8.0
Assignee: Jaroslav Rohel
QA Contact: Eva Mrakova
URL:
Whiteboard:
Depends On:
Blocks: 1702678
TreeView+ depends on / blocked
 
Reported: 2019-08-28 09:01 UTC by Jaroslav Rohel
Modified: 2019-11-05 22:22 UTC (History)
5 users (show)

Fixed In Version: dnf-4.2.7-5.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1753343 (view as bug list)
Environment:
Last Closed: 2019-11-05 22:22:23 UTC
Type: Bug
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2019:3583 None None None 2019-11-05 22:22:31 UTC

Description Jaroslav Rohel 2019-08-28 09:01:08 UTC
Description of problem:

The "--setopt" have a problem with repositories with dots in id. The option parser uses first dot as a delimiter.
Repository id may contain dots but option name can't. -> So, the last dot is delimiter and not the first one.
   
Example:
"--setopt=re.po.option=value " is parsed as repo id "re" and option "po.option". Correct result is repo id "re.po" and option "option".

Comment 1 Jaroslav Rohel 2019-08-28 09:09:24 UTC
I made fix in upstream PR https://github.com/rpm-software-management/dnf/pull/1466 .

Comment 2 Jaroslav Rohel 2019-08-28 09:11:53 UTC
The bug was catch during testing config-repo plugin https://bugzilla.redhat.com/show_bug.cgi?id=1702678 .

Comment 12 errata-xmlrpc 2019-11-05 22:22:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2019:3583


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