Error while creating a UserGroupProvider

  Written by The Jahia Team
 
Sysadmins
   Estimated reading time:
7.1.2.1

While writing a UserGroupProvider, adding String values to j:publicProperties generate the following error:

java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.String

Cause

Before Jahia 7.1.2.0, in External UserGroupProvider j:publicProperties does not support String Arrays

Solution

Upgrade to 7.1.2.x Pour information, Jahia propose un exemple de code de user/group provider:
https://github.com/Jahia/LDAP-provider