Skip to content

[Backport 2.11] Add throw for empty strings in rules with modifier contains, startwith, and endswith#885

Merged
jowg-amazon merged 1 commit into2.11from
backport/backport-860-to-2.11
Mar 12, 2024
Merged

[Backport 2.11] Add throw for empty strings in rules with modifier contains, startwith, and endswith#885
jowg-amazon merged 1 commit into2.11from
backport/backport-860-to-2.11

Conversation

@opensearch-trigger-bot
Copy link
Copy Markdown
Contributor

Backport f4ee7bb from #860

…h, and endswith (#860)

* add validation for empty strings with contains, startswith and endswith modifiers

Signed-off-by: Joanne Wang <jowg@amazon.com>

* throw exception if empty string with contains, startswith, or endswith

Signed-off-by: Joanne Wang <jowg@amazon.com>

* change var name

Signed-off-by: Joanne Wang <jowg@amazon.com>

* add modifiers to log

Signed-off-by: Joanne Wang <jowg@amazon.com>

---------

Signed-off-by: Joanne Wang <jowg@amazon.com>
(cherry picked from commit f4ee7bb)
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 7, 2024

Codecov Report

Attention: Patch coverage is 80.00000% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 24.73%. Comparing base (aa1a3c9) to head (25f61a1).

Files Patch % Lines
...ityanalytics/rules/objects/SigmaDetectionItem.java 80.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               2.11     #885      +/-   ##
============================================
+ Coverage     24.71%   24.73%   +0.01%     
- Complexity      947      952       +5     
============================================
  Files           255      255              
  Lines         11353    11357       +4     
  Branches       1280     1282       +2     
============================================
+ Hits           2806     2809       +3     
  Misses         8298     8298              
- Partials        249      250       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jowg-amazon jowg-amazon merged commit efade2c into 2.11 Mar 12, 2024
@github-actions github-actions bot deleted the backport/backport-860-to-2.11 branch March 12, 2024 00:07
opensearch-trigger-bot bot added a commit that referenced this pull request Mar 14, 2024
…h, and endswith (#860) (#885)

* add validation for empty strings with contains, startswith and endswith modifiers

Signed-off-by: Joanne Wang <jowg@amazon.com>

* throw exception if empty string with contains, startswith, or endswith

Signed-off-by: Joanne Wang <jowg@amazon.com>

* change var name

Signed-off-by: Joanne Wang <jowg@amazon.com>

* add modifiers to log

Signed-off-by: Joanne Wang <jowg@amazon.com>

---------

Signed-off-by: Joanne Wang <jowg@amazon.com>
(cherry picked from commit f4ee7bb)

Co-authored-by: Joanne Wang <jowg@amazon.com>
(cherry picked from commit efade2c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants