Read access denied for member System.User_Language

2
Hi, We have an issue where a buyer or seller creates an account with the right userrole while he's logged in with a Guest userrole. After creating and commiting this new account with a default language the user will be redirected to a custom login page with the login widget. After loging in with the new credentials the user gets redirected to the default Mendix page instead of the first page of his environment. But the new user is logged in, but in the console the error message shows the following: com.mendix.core.objectmanagement.SecurityRuntimeException: Read access denied for member 'System.User_Language' of object 'MyFirstModule.Verkoper'     at com.mendix.core.objectmanagement.MendixObjectMemberImpl.checkReadAccess(MendixObjectMemberImpl.java:141)     at com.mendix.core.objectmanagement.MendixObjectMemberImpl.getValue(MendixObjectMemberImpl.java:187)     at com.mendix.core.objectmanagement.MendixObjectImpl.getValue(MendixObjectImpl.java:219)     at com.mendix.core.session.User.getLanguage(User.java:253)     at com.mendix.webui.actions.client.GetSessionDataAction.execute(GetSessionDataAction.scala:77)     at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply$mcV$sp(ClientRequestHandler.scala:312)     at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:302)     at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:302)     at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2$$anon$1.execute(ActionDispatching.scala:143)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)     at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2.apply(ActionDispatching.scala:145)     at scala.util.Try$.apply(Try.scala:192)     at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(ActionDispatching.scala:139)     at akka.actor.Actor$class.aroundReceive(Actor.scala:465)     at com.mendix.core.session.Worker.aroundReceive(ActionDispatching.scala:135)     at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)     at akka.actor.ActorCell.invoke(ActorCell.scala:487)     at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)     at akka.dispatch.Mailbox.run(Mailbox.scala:220)     at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)     at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)     at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)     at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)     at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)   When the user uses the same credentials in the second screen, the user will be redirected to the right page and everything is okay. The next time the user uses his login credentials there are no problems. Only the first time directly after creating his new account. When I use a LogOff Java action after creating the new account, the user is redirected to the home page of the application, but when the user go's to the login page and uses his credentials it works directly with no issues.   Can someone help me with this issue? My collegue thinks it has something to do that the application doesn't see the right userroles after login with an account that was created by a Guest role in the previous step. The usersole is set in the Microflow and the new user has the right userrole before commit.   Hope to hear from you!
asked
1 answers
2

This seems the same problem as this post: https://forum.mendix.com/link/questions/23192

Lucky for you he also builded a sollution. Try his sollution to see if it solves your problem also.

Regards,

Ronald

 

answered