Uploaded image for project: 'PicketBox '
  1. PicketBox
  2. SECURITY-449

org.jboss.security.microcontainer.beans.Util uses locale sensitive toUpperCase, causing AS boot failure in Turkish locale

XMLWordPrintable

      A couple of users have run into issues with AS boot failure when using turkish locale. The boot fails with:

      11:56:51,955 ERROR [AbstractKernelController] Error installing to Start: name=jboss-web-policy state=Create
      java.lang.IllegalArgumentException: Invalid control flag: REQU?RED
      at org.jboss.security.microcontainer.beans.Util.getControlFlag(Util.java:57)
      at org.jboss.security.microcontainer.beans.AuthorizationPolicyBean.getPolicyInfo(AuthorizationPolicyBean.java:49)
      at org.jboss.security.microcontainer.beans.ApplicationPolicyBean.getApplicationPolicy(ApplicationPolicyBean.java:459)
      at org.jboss.security.microcontainer.beans.ApplicationPolicyBean.start(ApplicationPolicyBean.java:420)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)

      The complete details and the fix are mentioned in the comments of https://jira.jboss.org/jira/browse/JBAS-6651. I guess the Util class can just delegate the call to ControlFlag.valueOf(string), since the valueOf method does not have any locale specific implementation. Alternately, the Util class can be removed altogether, but it might be too much work if that class is being used in too many places.

            anil.saldhana Anil Saldanha (Inactive)
            jaikiran Jaikiran Pai (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: