Skip to content
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

"is not empty" operator does not work on CPE attribute #6517

Open
Jipegien opened this issue Mar 29, 2024 · 1 comment · May be fixed by #6550
Open

"is not empty" operator does not work on CPE attribute #6517

Jipegien opened this issue Mar 29, 2024 · 1 comment · May be fixed by #6550
Assignees
Labels
bug use for describing something not working as expected filters temporarily used to identify filter issue to facilitate filter team’s work identification
Milestone

Comments

@Jipegien
Copy link
Member

Description

Filtering Softwares with "cpe is not empty" list Software with empty CPE.

@Jipegien Jipegien added the bug use for describing something not working as expected label Mar 29, 2024
@Jipegien Jipegien modified the milestones: Long-term candidates, Release 6.0.9 Mar 29, 2024
@Archidoit Archidoit added the filters temporarily used to identify filter issue to facilitate filter team’s work identification label Mar 29, 2024
@Archidoit
Copy link
Member

Archidoit commented Mar 29, 2024

The filter 'is not empty' is working. The problem is that the 'cpe' attribute is equal to "" (empty string) when it is undefined, instead of being really equal to null/undefined. Same problem for other fields (like swid, vendor, version, etc for Softwares).

We can either:

  • make the 'is not empty' operator take empty string into account
  • migrate empty string to null value + setting null value to those fields at software creation/edition instead of empty string

Chosen solution (validated with @Jipegien ) : make the 'is not empty' operator take empty string into account

@Archidoit Archidoit self-assigned this Apr 2, 2024
@SamuelHassine SamuelHassine modified the milestones: Release 6.0.9, Release 6.0.10 Apr 3, 2024
Archidoit added a commit that referenced this issue Apr 4, 2024
Archidoit added a commit that referenced this issue Apr 5, 2024
Archidoit added a commit that referenced this issue Apr 8, 2024
@SamuelHassine SamuelHassine modified the milestones: Release 6.0.10, Release 6.1.0 Apr 8, 2024
Archidoit added a commit that referenced this issue Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug use for describing something not working as expected filters temporarily used to identify filter issue to facilitate filter team’s work identification
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants