-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Advisory --advisory-severities
and type filters produce union instead of intersection
#1401
Comments
I confirm the bug. --advisory-severities option is document as "limit…", but it does not do an intersection:
|
I think the reason is compatibility with old dnf which is unfortunately also doing an union. I agree that the docs should definitely be fixed (both man pages and |
This is a difference in comparison to DNF4 and it also intorduce a different behavior than DNF5 upgrade command. Closes: rpm-software-management#1401
This is a difference in comparison to DNF4 and it also intorduce a different behavior than DNF5 upgrade command. Closes: rpm-software-management#1401
This is a difference in comparison to DNF4 and it also intorduce a different behavior than DNF5 upgrade command. Closes: rpm-software-management#1401
I have created a patch, but I am not sure whether we should modify the behavior or modify DNF5 in more complex way. I think that both following command should target the same set of advisories (The PR change behavior for all commands), but is it OK?
What do you think? |
Both commands should behave the same. I'm for changing it to an intersection because users who want an union can use the options in separate calls. Contrary with the union behavior, users cannot not achieve the intersection. |
I agree that all the commands should behave the same. I also prefer intersection but changing it now could be quite unexpected for users. |
@kontura May I ask you when you would prefer that the change happen? |
I think the best time was when we introduced the advisory options to dnf5 but since the change was rejected at that time due to compatibility concerns I wanted to mention it. |
I am still not sure whether the change make sense from I think that command But other combination might be difficult
Other combination might be difficult
The same problem is related to CVEs. What about to only modify applying and operator between type and severity? (#1467) |
It allows to better specify user request when user wants to update only advisory with certain type and severity. Closes: rpm-software-management#1401
I will repeat myself, I like the new behavior more.
Does severity exists in non-security advisories? |
Yes, severity is used with other types of advisories, but not so often
|
For example,
dnf5 advisory list --security --advisory-severities=critical
shows all advisories that are either or type security or have critical severity (so even e.g. moderate securities or critical bugfixes are shown).I believe that other filter combinations produce intersection (except when specifying multiple type filters, but that makes sense if viewed as if it was just one list option), so this is inconsistent. If there is a reason for this behavior, it should be at least documented.
The text was updated successfully, but these errors were encountered: