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-3298: do not try to modify protected nodes #3737

Merged
merged 1 commit into from Apr 29, 2019

Conversation

@michpetrov
Copy link
Contributor

michpetrov commented Apr 10, 2019

Issue: WFCORE-3298

@wildfly-ci wildfly-ci added the deps-ok label Apr 10, 2019
@@ -220,7 +220,7 @@ public EnumValidator(final Class<E> enumType, final boolean nullable, final boo
public void validateParameter(String parameterName, ModelNode value) throws OperationFailedException {
super.validateParameter(parameterName, value);
ModelType type = value.getType();
if (type == ModelType.STRING ) {
if (type == ModelType.STRING && !value.isProtected()) {

This comment has been minimized.

Copy link
@bstansberry

bstansberry Apr 14, 2019

Contributor

This if (!value.isProtected()) can only guard the 'value.set(enumValue.toString());' call. Having it here disables the validation. The value being protected doesn't mean it doesn't need validation.

@michpetrov michpetrov force-pushed the michpetrov:wfcore-3298 branch from 160bc90 to bfad1d2 Apr 15, 2019
@kabir kabir removed the deps-ok label Apr 15, 2019
@wildfly-ci wildfly-ci added the deps-ok label Apr 15, 2019
@michpetrov michpetrov force-pushed the michpetrov:wfcore-3298 branch from bfad1d2 to 0d4059b Apr 15, 2019
@bstansberry

This comment has been minimized.

Copy link
Contributor

bstansberry commented Apr 26, 2019

retest this please

@jmesnil jmesnil merged commit d210280 into wildfly:master Apr 29, 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: 4863, ignored: 134
Details
Full integration - Windows Finished TeamCity Build WildFly Core / Pull Request / WildFly Core Full - Integration - Windows - JDK 8 : Tests passed: 4856, 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-3298 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

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