Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-3885

add-user.sh doesn't correctly handle property files where final line does not terminate with a new line

    XMLWordPrintable

Details

    • Hide

      Run "bin/add-user.sh" and use following inputs:

      • b (application user)
      • <ENTER> (ApplicationRealm)
      • admin (username)
      • pass (password)
      • pass (re-enter password)
      • admin (roles)
      • yes
      Show
      Run "bin/add-user.sh" and use following inputs: b (application user) <ENTER> (ApplicationRealm) admin (username) pass (password) pass (re-enter password) admin (roles) yes

    Description

      As an example when adding an application user with the add-user.sh script the role(s) are not added correctly as they are added to the end of an existing (commented out line).

      For example after adding user admin with roles admin standalone/configuration/application-roles.properties contains:

      ...
      #guest=guestadmin=admin
      

      which results in the role not being available, this should obviously have been added to a new line like so:

      ...
      #guest=guest
      admin=admin
      

      Attachments

        Activity

          People

            darran.lofthouse@redhat.com Darran Lofthouse
            sthorger@redhat.com Stian Thorgersen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: