(vCenter version 5.5.0 build 1945276 on Linux vCenter appliance)
Hello,
We have a vCenter plugin using the 5.5.1 SDK and the HTML bridge. We are calling WEB_PLATFORM.getUserSession() to get the username and other info. We see that call fail and generate a JavaScript exception for users that are created on the appliance using useradd. The call works fine for the root user, and on Windows vCenters.
The browser's JavaScript console shows these error messages coming from "inside" the call (and we see the JavaScript exception):
Uncaught SyntaxError: Unexpected token ILLEGAL
ErrorHandling.js:127 Error: Failed conversion between PP_Var and V8 value
To set up these users, we created them by running useradd and passwd from the command line, then using the vCenter UI, we added the users and assigned them to the Administrator role.
Does anyone have an guidance as to what we can do to prevent this error? We need the userid, so we don't want to just trap and ignore the error.
Thanks!