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

Correct search queries containing colons #9624

Merged
merged 1 commit into from
Feb 26, 2024
Merged

Conversation

Maffooch
Copy link
Contributor

When tagging objects in the formate of metadata-key:metadata-value, searching with the simple search operation will throw out the metadata-value portion due to the splitting of all colons in given search query. Splitting only on the first colon will correct this behavior

Before:

[25/Feb/2024 02:27:55] DEBUG [dojo.search.views:425] query:     tag:owner:someone product:prod
[25/Feb/2024 02:27:55] DEBUG [dojo.search.views:426] operators: {'tag': ['owner'], 'product': ['prod']}
[25/Feb/2024 02:27:55] DEBUG [dojo.search.views:427] keywords:  []

After:

[25/Feb/2024 02:28:24] DEBUG [dojo.search.views:425] query:     tag:owner:someone product:prod
[25/Feb/2024 02:28:24] DEBUG [dojo.search.views:426] operators: {'tag': ['owner:someone'], 'product': ['prod']}
[25/Feb/2024 02:28:24] DEBUG [dojo.search.views:427] keywords:  []

[sc-4492]

Copy link

Contextual Security Analysis

As DryRun Security performs checks, we’ll summarize them here. You can always dive into the detailed results in the section below for checks.

Status DryRun Security Check
Sensitive Functions Analyzer
Configured Sensitive Files Analyzer
Sensitive Files Analyzer

Chat with your AI-powered Security Buddy by typing @dryrunsecurity followed by your question into a comment.
Example: @dryrunsecurity What are common security issues with web application cookies?

Install and configure more repositories at DryRun Security

Copy link
Contributor

@mtesauro mtesauro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@Maffooch Maffooch merged commit 3626414 into DefectDojo:bugfix Feb 26, 2024
121 checks passed
@Maffooch Maffooch deleted the tags branch February 26, 2024 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants