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

Fix setting/displaying timeout in EditNvtDetailsDialog #3057

Merged
merged 5 commits into from
Jul 23, 2021

Conversation

swaterkamp
Copy link
Member

@swaterkamp swaterkamp commented Jul 6, 2021

What:
Remove usage of convertTimeout() in EditNvtDetailsDialog

Why:
convertTimeout() used String.protoype.trim() which crashes since the timeout is parsed as number. Since the new parsing, this function is obsolete anyway.

Fixes AP-1004

How:
Manual tests to set and unset the timeout value and re-open the dialog.

Checklist:

  • Tests
  • CHANGELOG Entry
  • Labels for ports to other branches

The timeout is no longer parsed as string from the xml, which makes this 
function obsolete and removing it prevents crashes due to the call of 
String.prototype.trim()
@swaterkamp swaterkamp added port-to-stable Use mergifiy to port PR to stable port-to-21.10 labels Jul 6, 2021
@swaterkamp swaterkamp requested a review from sarahd93 July 6, 2021 09:12
@swaterkamp swaterkamp requested a review from a team as a code owner July 6, 2021 09:12
@swaterkamp swaterkamp self-assigned this Jul 6, 2021
@codecov
Copy link

codecov bot commented Jul 6, 2021

Codecov Report

Merging #3057 (3627b82) into gsa-20.08 (61694b1) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 3627b82 differs from pull request most recent head 2255df5. Consider uploading reports for the commit 2255df5 to get more accurate results
Impacted file tree graph

@@              Coverage Diff              @@
##           gsa-20.08    #3057      +/-   ##
=============================================
- Coverage      53.74%   53.73%   -0.01%     
=============================================
  Files           1073     1073              
  Lines          25912    25909       -3     
  Branches        7375     7374       -1     
=============================================
- Hits           13926    13923       -3     
  Misses         10882    10882              
  Partials        1104     1104              
Impacted Files Coverage Δ
.../src/web/pages/scanconfigs/editnvtdetailsdialog.js 87.93% <100.00%> (-0.60%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 61694b1...2255df5. Read the comment docs.

@bjoernricks bjoernricks merged commit be445f1 into gsa-20.08 Jul 23, 2021
@bjoernricks bjoernricks deleted the swaterkamp/timeout branch July 23, 2021 06:15
bjoernricks added a commit that referenced this pull request Jul 23, 2021
Fix setting/displaying timeout in EditNvtDetailsDialog (backport #3057)
@sarahd93 sarahd93 added the port-to-main Use mergifiy to port PR to master label Jul 23, 2021
sarahd93 added a commit that referenced this pull request Jul 23, 2021
Fix setting/displaying timeout in EditNvtDetailsDialog (backport #3057)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
port-to-main Use mergifiy to port PR to master port-to-stable Use mergifiy to port PR to stable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants