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 1893963: Dont use lookbehinds regexp #7082
Bug 1893963: Dont use lookbehinds regexp #7082
Conversation
@yaacov: This pull request references Bugzilla bug 1893963, 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. |
@glekner please review |
/lgtm |
/lgtm cancel there is no need for regexes at all here, you can do just: cloudInitHelper.get(CloudInitDataFormKeys.PASSWORD) |
does the NAME works for you (we need name and password) ? |
I suppose you meant a key |
@suomiy this is a bug we need to fix and backport, lets merge it as is, and then make a bigger PR to add the missing field and re-factor the regexps only for 4.7, WDYT ? |
there is no refactoring needed, just adding one key is enough. Plus the regex approach is not working with base64 cloud init |
The helper is broken we need to fix it to support user, and then we will need to use the new feature we added to this helper class here. it's adding a fix to the the helper class bug in this bug fix. I would rather fix the helper class in a different PR, WDYT ? |
can you tell me how is the helper class broken? |
@suomiy it does not support |
that is not broken - that just means it is not possible to define all constants in existence which might appear in cloud init you can use a plain string |
although, having constants is more useful IMO |
fcc4657
to
84ba458
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: glekner, suomiy, yaacov 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 |
@yaacov: All pull requests linked via external trackers have merged: Bugzilla bug 1893963 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. |
/cherrypick release-4.6.z |
@yaacov: cannot checkout release-4.6.z: error checking out release-4.6.z: exit status 1. output: error: pathspec 'release-4.6.z' did not match any file(s) known to git 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. |
/cherrypick release-4.6 |
@yaacov: new pull request created: #7085 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. |
On Firefox 68.12.0esr (64-bit) and 66.0.2 (64-bit) when going to the Virtualization tab in the UI nothing is loading on the right side
FireFox 68 does not support lookbehinds regular expresions [1], this PR introduce a workaround supported by older browsers.
[1] https://kangax.github.io/compat-table/es2016plus/#test-RegExp_Lookbehind_Assertions