Skip to content

[Backport 7.12] Fix string replacement in certutil http test #69580

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

Merged

Conversation

tvernum
Copy link
Contributor

@tvernum tvernum commented Feb 24, 2021

This test had 2 issues:

  1. It performed a replacement using a string literal on a randomly
    generated string. It is possible that the filename had ".csr"
    somewhere in the basename, which would then produce incorrect results
  2. It used the wrong base file for the substitution (key vs csr).

This fixes the bug by using an index based replacement rather than a
textual one.

Backport of: #69319, #69404

This test had 2 issues:
1. It performed a replacement using a string literal on a randomly
generated string. It is possible that the filename had ".csr"
somewhere in the basename, which would then produce incorrect results
2. It used the wrong base file for the substitution (key vs csr).

This fixes the bug by using an index based replacement rather than a
textual one.

Backport of: elastic#69319
Backport of: elastic#69404
@tvernum tvernum merged commit 8f92dc7 into elastic:7.12 Feb 25, 2021
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.

1 participant