AnsweredAssumed Answered

ThreadLocal<String> authenticatedUserIdThreadLocal sometimes null

Question asked by ahmed.mahfouz on Apr 3, 2017
Latest reply on Apr 5, 2017 by gdharley

I have implemented a small widget to allow the users to add comments to a task. I use AngularJS and I use activiti-reset and I pass the basic authentication hash as a http header. the problem that authenticatedUserIdThreadLocal.get() is inconsistent and it doesn't return always the authenticated and sometimes it returns null.

 

 

as you can see in the picture the user id is available and printed. but just in the middle there was no user id.

 

Any idea how to resolve such issue? I would really appreciate it.

Outcomes