It's fixed in latest master and will be available in 2.4.0.CR1 release
next week. Thanks for reporting this.
Marek
On 18/11/16 18:24, Jitendra Chouhan wrote:
Further update about issue is listed below.
We exported a realm from 2.2.1 and imported into keycloak 2.3.0.Final
instance. When tried to assign group to a newly created user this issue
comes but if assign group to migrated user(from 2.2.1 to 2.3.0) it works
fine, looks like there is some issue with UserModel.
Thanks,
JItendra Chouhan
On Fri, Nov 18, 2016 at 2:26 PM, Jitendra Chouhan <
jitendrachouhan03(a)gmail.com> wrote:
> Does anyone have idea about or faced problem in assigning group to user
> when keycloak-2.3.0.Final instance runs with mongo database? For detailed
> information please refer this email chain.
>
> Thanks,
> Jitendra Chouhan
>
> ---------- Forwarded message ----------
> From: Jitendra Chouhan <jitendrachouhan03(a)gmail.com>
> Date: Thu, Nov 17, 2016 at 10:43 PM
> Subject: Join Group Issue in keycloak2.3.0 with mongo db
> To: keycloak-user(a)lists.jboss.org
>
>
> Hi,
>
> We are evaluating keycloak-2.3.0 in standalone mode as well as with docker
> images. During our validations we came across issue with group assignment
> to user. Please find below listed information.
>
> Everything works fine when we do our testing keycloak-2.3.0 with default
> configuration which uses h2 database internally. We encounter issue with
> group assignment(others functionality working fine) when we use mongo db as
> external database to store information. Just to let you know we have
> configured mongo db related configuration in keycloak by referencing "
>
https://keycloak.gitbooks.io/server-installation-and-config
> uration/content/v/2.3/topics/mongo.html" link.
>
> Upon checking backed server logs we found below stack trace:
>
> Caused by: java.lang.NullPointerException
> at org.keycloak.models.mongo.keycloak.adapters.UserAdapter.isMe
> mberOf(UserAdapter.java:263)
> at org.keycloak.models.cache.infinispan.UserAdapter.isMemberOf(
> UserAdapter.java:368)
> at org.keycloak.services.resources.admin.UsersResource.joinGrou
> p(UsersResource.java:992)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
> ssorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
> thodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInje
> ctorImpl.java:139)
> at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget
> (ResourceMethodInvoker.java:295)
> at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(Resourc
> eMethodInvoker.java:249)
> at org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTarge
> tObject(ResourceLocatorInvoker.java:138)
> at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(Resour
> ceLocatorInvoker.java:107)
> at org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTarge
> tObject(ResourceLocatorInvoker.java:133)
> at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(Resour
> ceLocatorInvoker.java:107)
> at org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTarge
> tObject(ResourceLocatorInvoker.java:133)
> at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(Resour
> ceLocatorInvoker.java:101)
> at org.jboss.resteasy.core.SynchronousDispatcher.invoke(Synchro
> nousDispatcher.java:395)
>
>
> Everything works fine with keycloak-2.2.1 version. Please confirm if this
> is an issue or something is wrong.
>
> Thanks,
> Jitendra Chouhan
>
>
>
>
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user