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

Reading the cacert field value as undefined in case it's empty #1424

Merged
merged 1 commit into from
Dec 31, 2024

Conversation

sgratch
Copy link
Collaborator

@sgratch sgratch commented Dec 30, 2024

Reference: https://issues.redhat.com/browse/MTV-1653

Fix a bug in which in case of an empty/undefined cacert field value, read it as undefined and not as 'undefined' (the result of (string(undefined) expr).

This fixes the verification if the cacert field is empty or not.

Screencast to show that this will fix bug https://issues.redhat.com/browse/MTV-1653

Screencast.from.2024-12-30.20-07-14.webm

Reference: https://issues.redhat.com/browse/MTV-1653

Fix a bug in which in case of an empty/undefined cacert field value,
read it as undefined and not as 'undefined' (the result of
(string(undefined) expr)

Signed-off-by: Sharon Gratch <[email protected]>
@sgratch sgratch requested a review from yaacov December 30, 2024 18:11
@sgratch sgratch added the bug Categorizes issue or PR as related to a bug. label Dec 30, 2024
@sgratch sgratch added this to the 2.8.0 milestone Dec 30, 2024
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 36.20%. Comparing base (13484d0) to head (a19c2a3).
Report is 172 commits behind head on main.

Files with missing lines Patch % Lines
...components/CertificateUpload/CertificateUpload.tsx 0.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1424      +/-   ##
==========================================
- Coverage   36.81%   36.20%   -0.62%     
==========================================
  Files         158      159       +1     
  Lines        2548     2580      +32     
  Branches      599      602       +3     
==========================================
- Hits          938      934       -4     
- Misses       1428     1631     +203     
+ Partials      182       15     -167     

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

@avivtur
Copy link
Collaborator

avivtur commented Dec 31, 2024

/lgtm

@metalice metalice merged commit b37b717 into kubev2v:main Dec 31, 2024
11 checks passed
@sgratch sgratch deleted the set-empty-cacert-field-as-undefined branch January 1, 2025 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants