[
https://issues.jboss.org/browse/WFCORE-1790?page=com.atlassian.jira.plugi...
]
Brian Stansberry commented on WFCORE-1790:
------------------------------------------
An attribute of type OBJECT with a value-type of STRING is equivalent to a
Map<String,String>. A Map has no predefined set of valid keys, so there is no full
description of keys and values.
value-type – ModelType or complex structure – Only present if type is LIST or OBJECT. If
all elements in the LIST or all the values of the OBJECT type are of the same type, this
will be one of the ModelType enums BIG_DECIMAL, BIG_INTEGER, BOOLEAN, BYTES, DOUBLE, INT,
LONG, STRING. Otherwise, value-type will detail the structure of the attribute value,
enumerating the value's fields and the type of their value.
So, if the type of the ModelNode for the value-type description is ModelType.TYPE, then
the attribute is a Map<String, X> where X is indicated by the enum value. If the
type of the ModelNode for the value-type description is ModelType.OBJECT, then the keys in
the object are the legal fields and the values are the description of the field.
Invalid value-type for some operation arguments
-----------------------------------------------
Key: WFCORE-1790
URL:
https://issues.jboss.org/browse/WFCORE-1790
Project: WildFly Core
Issue Type: Bug
Components: Security, Server
Reporter: Jean-Francois Denise
Assignee: Darran Lofthouse
vault:add and authentication=<x>:add have arguments of type OBJECT with a
value-type of STRING. The arguments passed to the operations are complex-type, so the
value-type should be containing the complex type description.
Examples:
/core-service=vault:add(vault-options={KEYSTORE_PASSWORD=>MASK-20OB41ZkH8YzlPTICpKg5.,KEYSTORE_ALIAS=>jboss,SALT=>12345678,ITERATION_COUNT=>50,ENC_FILE_DIR=>/path/to/enc/file})
/subsystem=security/security-domain=test/authentication=classic:add(login-modules=[{code=UsersRoles,flag=required,module-options={usersProperties=$\{jboss.server.config.dir\}/users.properties,rolesProperties=$\{jboss.server.config.dir\}/roles.properties}}]
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)