Bug 1735687 - NEVRA parsing code doesn't respect glob syntax
Summary: NEVRA parsing code doesn't respect glob syntax
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: libdnf
Version: 37
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Lukáš Hrázký
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-01 09:18 UTC by Lukáš Hrázký
Modified: 2023-09-08 12:43 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-09-08 12:43:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Lukáš Hrázký 2019-08-01 09:18:44 UTC
The NEVRA parsing code doesn't respect glob syntax while parsing NEVRA forms. For example the dash sign can be inside a glob definition like e.g. "[a-f]" and the regexes parsing the strings can split the nevra in half. This results in the particular NEVRA form not matching anything.

There is a test for it in this PR:
https://github.com/rpm-software-management/ci-dnf-stack/pull/577

I will annotate the test with this bug's ID.

Comment 1 Ben Cotton 2019-08-13 17:02:56 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to '31'.

Comment 2 Ben Cotton 2019-08-13 17:27:38 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to 31.

Comment 3 Ben Cotton 2020-11-03 17:03:19 UTC
This message is a reminder that Fedora 31 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 31 on 2020-11-24.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '31'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 31 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 4 Lukáš Hrázký 2020-11-05 08:59:19 UTC
An example of a broken nevra with a glob: foo-[1-2].0-1

The dash in the [1-2] glob is treated as a delimiter between version and release.

Comment 5 Ben Cotton 2021-02-09 16:15:06 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle.
Changing version to 34.

Comment 6 Ben Cotton 2022-05-12 16:03:42 UTC
This message is a reminder that Fedora Linux 34 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 34 on 2022-06-07.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '34'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 34 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 7 Ben Cotton 2022-08-09 13:10:37 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 37 development cycle.
Changing version to 37.

Comment 8 Jaroslav Mracek 2023-09-08 12:43:46 UTC
I think that the issue was recently fixed in DNF5 - https://github.com/rpm-software-management/dnf5/pull/852, and https://github.com/rpm-software-management/dnf5/pull/847.

DNF5 is planned as a replacement of DNF in Fedora 41. We have no plan to modify the code in DNF because the parser in DNF5 uses completely different algorithm.


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