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-3891: ensure unique names for default formatters #3713

Merged
merged 1 commit into from Apr 17, 2019

Conversation

@michpetrov
Copy link
Contributor

michpetrov commented Mar 27, 2019

Issue: WFCORE-3891

@jmesnil jmesnil requested a review from jamezp Mar 28, 2019
@@ -369,6 +369,9 @@ public void performRuntime(final OperationContext context, final ModelNode opera
}

final String name = context.getCurrentAddressValue();
if (name.endsWith(PatternFormatterResourceDefinition.DEFAULT_FORMATTER_SUFFIX)) {
throw new IllegalArgumentException("Formatter name cannot end with '" + PatternFormatterResourceDefinition.DEFAULT_FORMATTER_SUFFIX + "'");

This comment has been minimized.

Copy link
@jamezp

jamezp Apr 1, 2019

Member

This needs to be internationalized and I think an OperationFailedException would be a better one to throw.

@michpetrov michpetrov force-pushed the michpetrov:wfcore-3891 branch from 8839ff6 to 4b70321 Apr 9, 2019
@wildfly-ci wildfly-ci added the deps-ok label Apr 9, 2019
@michpetrov michpetrov force-pushed the michpetrov:wfcore-3891 branch from 4b70321 to 637a713 Apr 9, 2019
@jamezp
jamezp approved these changes Apr 16, 2019
@jmesnil jmesnil merged commit aadd115 into wildfly:master Apr 17, 2019
8 checks passed
8 checks passed
Dependency Tree (Pull Request) - merge TeamCity build finished
Details
Full integration - Linux Finished TeamCity Build WildFly Core / Pull Request / WildFly Core Full - Integration Linux - JDK 8 : Tests passed: 4852, ignored: 134
Details
Full integration - Windows Finished TeamCity Build WildFly Core / Pull Request / WildFly Core Full - Integration - Windows - JDK 8 : Tests passed: 4845, ignored: 139
Details
Linux - JDK 11 (Pull Request) - merge TeamCity build finished
Details
Linux - JDK 8 (Pull Request) - merge TeamCity build finished
Details
Linux - Security Manager - JDK 8 (Pull Request) - merge TeamCity build finished
Details
Windows - JDK 11 (Pull Request) - merge TeamCity build finished
Details
Windows - JDK 8 (Pull Request) - merge TeamCity build finished
Details
@michpetrov michpetrov deleted the michpetrov:wfcore-3891 branch May 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.