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

WFCORE-7065 Migrate JBoss Modules module identifier validator from org.wildfly:wildfly-clustering-common #6257

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

pferraro
Copy link
Contributor

@pferraro pferraro marked this pull request as ready for review November 22, 2024 14:39
public class ModuleNameValidator extends ModelTypeValidator {
public static final ParameterValidator INSTANCE = new ModuleNameValidator();
// Ensure module name is valid with filesystem module repository, permitting deprecated slot, if present
private static final Predicate<String> MODULE_NAME_TESTER = Pattern.compile("(?:^\\w+|\\w+\\.\\w+|\\w+\\Q\\:\\E\\w+)+(?:\\:(?:\\w+|\\w+\\.\\w+))?$").asMatchPredicate();
Copy link
Collaborator

Choose a reason for hiding this comment

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

@ropalka Does the JBoss Module expose any API to validate a module identifier? Maybe it could be useful to have something there

Copy link
Collaborator

@yersan yersan left a comment

Choose a reason for hiding this comment

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

Validation is according with current JBoss Modules documentation, so LGTM

@yersan yersan added the ready-for-merge This PR is ready to be merged and fulfills all requirements label Nov 26, 2024
@yersan yersan merged commit 9ac15c5 into wildfly:main Nov 26, 2024
13 checks passed
@yersan
Copy link
Collaborator

yersan commented Nov 26, 2024

Thanks @pferraro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge This PR is ready to be merged and fulfills all requirements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants