Skip to content

Fix wildfly_resource path validation regex - #374

Merged
bastelfreak merged 1 commit into
voxpupuli:masterfrom
g42-dev:fix-resource-path-validation
Jul 8, 2026
Merged

Fix wildfly_resource path validation regex#374
bastelfreak merged 1 commit into
voxpupuli:masterfrom
g42-dev:fix-resource-path-validation

Conversation

@g42-dev

@g42-dev g42-dev commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Update the regex in wildfly_resource to allow forward slashes, dots, colons, and dashes in unquoted values, while maintaining robust support for slashes in quoted values.

The previous implementation was too restrictive and failed to validate standard Wildfly CLI paths, such as file paths or datasources (e.g., data-source=java:jboss/datasources/ExampleDS).

This change ensures valid paths are accepted while maintaining strict validation for the overall key=value structure.

  • RSpec tests pass locally.
  • Deployed and tested successfully against live Wildfly nodes.

Update the regex in wildfly_resource to allow forward slashes,
dots, colons, and dashes in unquoted values.

The previous implementation was too restrictive and failed to
validate standard Wildfly CLI paths, such as file paths or
datasources (e.g., data-source=java:jboss/datasources/ExampleDS).

This change ensures valid paths are accepted while maintaining
strict validation for the overall key=value structure.
@g42-dev
g42-dev force-pushed the fix-resource-path-validation branch from 778b546 to ab84e47 Compare June 29, 2026 09:57
@bastelfreak bastelfreak added the bug Something isn't working label Jul 8, 2026
@bastelfreak
bastelfreak merged commit 8f38ad5 into voxpupuli:master Jul 8, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants