06-04-2013 09:20 AM
I wanted to check if a bug is well known.
I have several portlets I have developped, in those portlets I get the connected user login via the API /RequestCenter/nsapi/directory/people/currentuser .
And then I show an alert with the name of the user.
The bug is, if I login with User1, go to the portlet, the alert shows "User1", and then if I logout and login with User2, the portlets shows "User1".
Are you aware of this bug? (I use internet explorer 8)
(There is a way around this, by using the following code:
var urlCompleteCurrentUser = 'http:' + "//" + window.location.host + '/RequestCenter/nsapi/directory/people/currentuser';
var reloadCurrentUser = window.open(urlCompleteCurrentUser);
reloadCurrentUser.close();
But frankly, this is ugly and can't be used in a "production environment")
06-04-2013 09:28 AM
What version of the software are you using?
What portlet type are you using?
06-05-2013 02:25 AM
I'm using Cisco portal 9.4.1, and a js portlet.
I also added the following lines in an existing CIAC portlet (Manage My VDCs in the "My Virtual Data Center" portal page):
var orga = getCurrentUserOrg();
alert ("orga");
alert(orga);
The portlet contains a function that gets the logged user organisation, and here too, the bug is present. The organisation of the previous user is displaying unless you restart IE.
Basically, all CIAC portlets that utilize information on the current logged user have the same bug, I haven't used the standard CIAC portlet much so I can't say, but I believe on top of the inconvenience, this generates security issues
(I would like to add I was able to delete the "site administrator" role from an admin using an OTA account some time ago - that might have been on 9.4.0 version thought).
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide