UserInfoService getUserName almost always returns null
I have done following steps
1. Installed HPA IDE from HPAnywhere-CreateSetup-10.00.331-331-win64 on my machine 2. Generated "My Report Project" using HP wizard. 3. Added few changes to get user name and user id from UserInfoService. Also added HTML button to refresh data from server. Diff file is attached (small_changes.txt) 4. In admin console uploaded ZIP package 5. After pressing Refresh button in 3-4 times from 5 I am getting screenshot EmptyUserNameMostOfTheTime.png 6. In one case from 5 I am getting screenshot AdminUserNameOneFromFiveTimes.png 7. It seems that UserInfoService sometimes is returning current user admin and in rest cases returns null.
I have also attached full source code and ZIP package.
How can I get current username in the backend side everytime?