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

[BUG] 🐛 $(userStorage) should not be accepted when us is null #614

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

CChemin
Copy link
Contributor

@CChemin CChemin commented Feb 8, 2022

No description provided.

@CChemin CChemin marked this pull request as draft February 10, 2022 09:06
@CChemin CChemin force-pushed the controller-improve-tests branch 4 times, most recently from 239b236 to d5e046e Compare February 10, 2022 13:46
@CChemin CChemin marked this pull request as ready for review February 10, 2022 13:47
@CChemin CChemin force-pushed the controller-improve-tests branch from d5e046e to 2dc3405 Compare February 10, 2022 15:37
@@ -191,6 +191,7 @@ private List<String> getSearchRoleList(
}
return regexpList.stream()
.map(regexp -> StrSubstitutor.replace(regexp, valueMap, "$(", ")"))
.filter(role -> !role.matches(".*\\$(.*).*"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in this expression parenthesis are not escaped (matching group expression), so the expression match
foo$foo and not only foo$(foo)foo
so any string with at least one $

CChemin added 2 commits April 27, 2022 19:56
Signed-off-by: CChemin <cecile.chemin@insee.fr>
Signed-off-by: CChemin <cecile.chemin@insee.fr>
@CChemin CChemin force-pushed the controller-improve-tests branch from 2dc3405 to c0edaa9 Compare April 27, 2022 17:56
… null

Signed-off-by: CChemin <cecile.chemin@insee.fr>
@CChemin CChemin force-pushed the controller-improve-tests branch from c0edaa9 to f79f82e Compare April 28, 2022 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants