Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-5987

Try to add resource with OBJECT type attribute cause IllegalArgumentException

    XMLWordPrintable

Details

    • Bug
    • Status: Verified (View Workflow)
    • Blocker
    • Resolution: Done
    • 7.1.0.DR4
    • 7.1.0.DR5
    • 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}}]
    • Regression
    • Fix is merged upstream.

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: