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

The "(Users|Group) properties file" text box ("Security Domain Configuration" screen -> Cache type: Property File) is not validated against empty/blank string

XMLWordPrintable

    • False
    • None
    • False
    • Hide
      1. Start the installer
      2. Reach the Security Domain Configuration screen and select "property File" as the value for the Cache type field.
      3. Clear the (Users|Groups) properties file text box.
      4. Click the "Next" button.

      The installer will move to the following screen.

      Show
      Start the installer Reach the Security Domain Configuration screen and select "property File" as the value for the Cache type field. Clear the (Users|Groups) properties file text box. Click the "Next" button. The installer will move to the following screen.

      The "(Users|Groups) properties file" text-box ("Security Domain Configuration" screen -> Cache type: Property File) allows users to enter empty/blank strings.

      This causes the installer to fail when moving to the next screen:

      ...
      $ java -Dinstaller.override.maven.repositories=/home/fburzigo/gui-installer-test/jboss-eap-8.0.0.GA-maven-repository/maven-repository/,https://repo1.maven.org/maven2 -Duser.home=/home/fburzigo/gui-installer-test/work -jar jboss-eap-8.0.0.GA-redhat-SNAPSHOT-installer.jar
      Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "String.isEmpty()" because the return value of "org.jboss.installer.common.FileChooserPanel.getText()" is null
      	at org.jboss.installer.screens.domain.PropertiesSecurityDomainPanel.getConfig(PropertiesSecurityDomainPanel.java:169)
      	at org.jboss.installer.screens.domain.SecurityDomainScreen.validate(SecurityDomainScreen.java:218)
      
      ...
      

            spyrkob Bartosz Spyrko-Smietanko
            fburzigo Fabio Burzigotti
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: