-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
file.comment uses unanchored multiline search #54260
Comments
@OrangeDog Thank you for reporting this issue. I am seeing the same behavior. Thanks. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
This (high severity) issue still exists. |
Thank you for updating this issue. It is no longer marked as stale. |
Fixed by #51988 and released with Salt 3000 |
@DmitryKuzmenko it doesn't look fixed to me. Same behaviour as before.
|
My mistake. The board search doesn't work for |
I'm sorry if I'm wrong but this works for me and v3000 contains this patch
|
@DmitryKuzmenko are you saying you can no longer reproduce the issue, or just that the commit was released? |
Hm... It looks a bit confusing just because it looks fixed on my side...
|
That is odd. Full versions report for where I tested it:
|
@OrangeDog to consolidate our environments do you have an ability to try to reproduce this on a clean salt environment with a simple minion config like
with this sls file:
My results are the following:
|
@DmitryKuzmenko |
@frogunder you reproduced before. What do you see with v3000? |
Seems to work correctly for me on 3000. I pip3 installed salt.
|
Might be a good idea to create a Dockerfile to reproduce this (or, show that it's been fixed)? |
OK, now I cannot reproduce, and I've not changed anything from what I was doing in #54260 (comment) So I agree it is fixed, and I must've made some kind of mistake. Apologies. |
Description of Issue
When checking for
unanchor_regex
, salt uses a multiline search. This may cause incorrect results if e.g..
or\s
are used at the start of the pattern.Setup
State:
Target file:
Steps to Reproduce Issue
Running the above state incorrectly returns "Pattern already commented".
Versions Report
The text was updated successfully, but these errors were encountered: