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

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

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 8.0.0.Beta1
    • Fix Version/s: 8.0.0.CR1
    • Component/s: Management
    • Labels:
      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)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                kabirkhan Kabir Khan
                Reporter:
                kabirkhan Kabir Khan
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: