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
Bug 1918153: incorrect escaping of HTML symbols in envars #215
Bug 1918153: incorrect escaping of HTML symbols in envars #215
Conversation
@alicerum: This pull request references Bugzilla bug 1918153, which is invalid:
Comment In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
3038e49
to
afebaa8
Compare
/retest |
@alicerum: This pull request references Bugzilla bug 1918153, which is invalid:
Comment In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
1 similar comment
@alicerum: This pull request references Bugzilla bug 1918153, which is invalid:
Comment In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/retest |
hey @alicerum - has your "onramping" progressed enough that you understand what is up with the bugzilla integration requirements as noted in #215 (comment) and the OWNERS file requirements as noted in #215 (comment) ? If not let us know and we can discuss either here or in scrum |
Letting you know! Discussing in scrum (or after) would be beneficial. |
afebaa8
to
4396a41
Compare
/bugzilla refresh |
@alicerum: This pull request references Bugzilla bug 1918153, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
When building from source using docker strategy, keys and values for environment variables from BuildConfig and labels have been marshalled to json strings to put them in quotes and do escaping. Problem was, this marshalling also escapes html symbols <>&, which should be allowed in values of environment variables and labels. Solution is to process keys and values with strconv.Quote function in order to escape only non-printable and control characters.
4396a41
to
7f90723
Compare
/bugzilla cc-qa |
@wewang58: This pull request references Bugzilla bug 1918153, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/lgtm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: adambkaplan, alicerum, wewang58 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@alicerum: All pull requests linked via external trackers have merged: Bugzilla bug 1918153 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Congratulations @alicerum \o/ Great start! |
When building from source using docker strategy, keys and values for environment variables from BuildConfig and labels have been marshalled to json strings to put them in quotes and do escaping.
Problem was, this marshalling also escapes HTML symbols
<>&
, which should be allowed for environment variables and labels.Solution is to process values with
strconv.Quote
function in order to escape only non-printable and control characters.With the BuildConfig provided in Bugzilla, and my changes I get this result: