Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-7219

Wrong description of missing target-name in simple-permission-mapper

    XMLWordPrintable

Details

    • Hide

      run CLI command:

      /subsystem=elytron/simple-permission-mapper=SomeMapper:add(permission-mappings=[{roles=[All],permissions=[{class-name="org.wildfly.security.auth.permission.ChangeRoleMapperPermission"}]}])
      

      see the command output with "Parameter 'name' may not be null":

      {
          "outcome" => "failed",
          "failure-description" => {
              "WFLYCTL0080: Failed services" => {"org.wildfly.security.permission-mapper.SomeMapper" => "org.jboss.msc.service.StartException in service org.wildfly.security.permission-mapper.SomeMapper: Failed to start service
          Caused by: java.lang.IllegalArgumentException: Parameter 'name' may not be null"},
              "WFLYCTL0412: Required services that are not installed:" => ["org.wildfly.security.permission-mapper.SomeMapper"],
              "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
          },
          "rolled-back" => true
      }
      
      Show
      run CLI command: /subsystem=elytron/simple-permission-mapper=SomeMapper:add(permission-mappings=[{roles=[All],permissions=[{ class- name= "org.wildfly.security.auth.permission.ChangeRoleMapperPermission" }]}]) see the command output with "Parameter ' name ' may not be null": { "outcome" => "failed" , "failure-description" => { "WFLYCTL0080: Failed services" => { "org.wildfly.security.permission-mapper.SomeMapper" => "org.jboss.msc.service.StartException in service org.wildfly.security.permission-mapper.SomeMapper: Failed to start service Caused by: java.lang.IllegalArgumentException: Parameter 'name' may not be null "}, "WFLYCTL0412: Required services that are not installed:" => [ "org.wildfly.security.permission-mapper.SomeMapper" ], "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined }, "rolled-back" => true }

    Description

      In case when simple-permission-mapper cannot be added through CLI command due to missing target-name attribute, then IllegalArgumentException with wrong description is thrown. It says: "Parameter 'name' may not be null". It should be "Parameter 'target-name' may not be null".

      Attachments

        Issue Links

          Activity

            People

              jkalina@redhat.com Jan Kalina (Inactive)
              olukas Ondrej Lukas (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: