[jboss-jira] [JBoss JIRA] Created: (SECURITY-449) org.jboss.security.microcontainer.beans.Util uses locale sensitive toUpperCase, causing AS boot failure in Turkish locale

jaikiran pai (JIRA) jira-events at lists.jboss.org
Sat Dec 19 03:31:30 EST 2009


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

                 Key: SECURITY-449
                 URL: https://jira.jboss.org/jira/browse/SECURITY-449
             Project: JBoss Security and Identity Management
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: JBossSX
         Environment: JBoss AS 5.1.0, JBoss AS 6.0.0.M1
            Reporter: jaikiran pai
            Assignee: Anil Saldhana


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.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list