Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-1787

Try to add resource with OBJECT type attribute cause IllegalArgumentException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 3.0.0.Alpha8
    • None
    • CLI
    • None
    • Hide
      • run EAP7.1.0.DR4
      • connect to EAP over jboss-cli.sh
      • process CLI command where is OBJECT type attribute

      some examples of CLI commands

      /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}}]
      
      Show
      run EAP7.1.0.DR4 connect to EAP over jboss-cli.sh process CLI command where is OBJECT type attribute some examples of CLI commands /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}}]

      Try to add resource with OBJECT type attribute cause IllegalArgumentException.

      Actual result:
      CLI operation failed with IllegalArgumentException

      Expected results:
      Success CLI operation

      My investigation:
      In my opinion is problem caused by this PR to wildfly-core
      https://github.com/wildfly/wildfly-core/pull/1698/files#diff-835f377f8fa5ec22368d701a8412f282R1333

      Look at lines 1333-1350 Util.java

              jdenise@redhat.com Jean Francois Denise
              hsvabek_jira Hynek Švábek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: