Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up[WFCORE-3995] forbid invalid Sensitivity Constraint attribute read-wr… #3426
Conversation
This comment has been minimized.
This comment has been minimized.
|
There's a couple problems in this area:
|
c558f0b
to
4fdd3fd
This comment has been minimized.
This comment has been minimized.
|
I have rebased to
|
This comment has been minimized.
This comment has been minimized.
|
Hi @bstansberry can this be merged ? |
This comment has been minimized.
This comment has been minimized.
|
retest this please |
|
Sorry I let this fall in a crack! Minor change needed. Thanks for adding the rollback handling and for the good test coverage. |
| @@ -121,17 +119,29 @@ public void execute(OperationContext context, ModelNode operation) throws Operat | |||
|
|
|||
| @Override | |||
| public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { | |||
| final String attribute = operation.require(NAME).asString(); | |||
| PathAddress address = PathAddress.pathAddress(operation.get(OP_ADDR)); | |||
This comment has been minimized.
This comment has been minimized.
bstansberry
Apr 14, 2019
Contributor
If you need the address of the current op, use 'context.getCurrentAddress()'.
I don't think you need it though; see my next comment.
| PathAddress address = PathAddress.pathAddress(operation.get(OP_ADDR)); | ||
| ModelNode modelNode = context.readResourceFromRoot(address).getModel(); | ||
| // record model values for rollback handler | ||
| ModelNode configuredApplication = modelNode.get(ModelDescriptionConstants.CONFIGURED_APPLICATION); |
This comment has been minimized.
This comment has been minimized.
bstansberry
Apr 14, 2019
Contributor
These lines can come after L128 and the first line becomes
ModelNode modelNode = resource.getModel();
The Resource from context.readResourceForUpdate includes the data that you need to restore.
4fdd3fd
to
344c72d
This comment has been minimized.
This comment has been minimized.
|
Thanks, I have updated this one. |
8368040
into
wildfly:master
soul2zimate commentedAug 9, 2018
•
edited
…ite combinations.
issues: https://issues.jboss.org/browse/WFCORE-3995 and https://issues.jboss.org/browse/WFCORE-4061