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

HC Main.getHostSystemProperties() does not handle additional equals in system properties properly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 8.0.0.CR1
    • 8.0.0.Beta1
    • Management
    • None

    Description

      -Djava.security.policy==/Users/kabir/tmp/permit.policy (note the extra '=') is a valid setting to just use that policy file (unlike -Djava.security.policy=/Users/kabir/tmp/permit.policy which adds it to the system wide and user policies)

      Main.getHostSystemProperties() currently handles this in a way that the value becomes null, while it should be '=/Users/kabir/tmp/permit.policy' which causes this problem when starting up the servers

      [Server:server-one] Exception in thread "main" java.security.AccessControlException: access denied (java.util.PropertyPermission module.path write)
      [Server:server-one]     at java.security.AccessControlContext.checkPermission(AccessControlContext.java:376)
      [Server:server-one]     at java.security.AccessController.checkPermission(AccessController.java:549)
      [Server:server-one]     at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
      [Server:server-one]     at java.lang.System.setProperty(System.java:741)
      [Server:server-one]     at org.jboss.modules.Main.main(Main.java:148)
      

      Attachments

        Activity

          People

            kkhan1@redhat.com Kabir Khan
            kkhan1@redhat.com Kabir Khan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: