0 Replies Latest reply on May 14, 2008 3:39 PM by devilbot.tw

    Username and Role name in other language

    devilbot.tw

      Hi,

      I found that if I register a user using chinese characters as username. Although the registration process will be successful, the login process fails without any exceptions. If I create a role whose name contains chinese character, the portal will throw exception if I want to access the role (edit the properties, add members, etc.) Hereunder is the exception:


      03:29:27,218 ERROR [STDERR] org.jboss.portal.identity.IdentityException: No such role & #20094;& #26479;
      03:29:27,218 ERROR [STDERR] at org.jboss.portal.identity.db.HibernateRoleModuleImpl.findRoleByName(HibernateRoleModuleImpl.java:108)
      03:29:27,218 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      03:29:27,218 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      03:29:27,234 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      03:29:27,234 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      03:29:27,234 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      03:29:27,234 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      03:29:27,234 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      03:29:27,234 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      03:29:27,234 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      03:29:27,234 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      03:29:27,250 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      03:29:27,250 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      03:29:27,250 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      03:29:27,250 ERROR [STDERR] at $Proxy260.findRoleByName(Unknown Source)
      03:29:27,250 ERROR [STDERR] at org.jboss.portal.core.identity.ui.common.IdentityRoleBean.getUIRole(IdentityRoleBean.java:121)
      03:29:27,250 ERROR [STDERR] at org.jboss.portal.core.identity.ui.actions.EditRoleAction.editRole(EditRoleAction.java:81)
      03:29:27,265 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      03:29:27,265 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      03:29:27,265 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      Seems that the forum will automatically do a "native2ascii -reverse". I put a space between & and # to prevent the undesired convert. I am using the portal 2.6.5.GA bundle. Any comment will be apprecated.

      //Austin