dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #50012
Re: BUG - 2.27 - Logged as different user
Hello, Thank you both for the answers :
Knut:
1. SJ has not been logged in my computer at all. This is the frightening
part of the issue.
2. Clearing browser cache does not resolve the issue. Sometimes when going
to account and doing Ctrl+F5 that works but creates the problem for the
others. (this time with my name RJ instead SJ).
Bob:
1. Thank you for your suggestion. We are going to analyze with the system
administrators.
2. I've tryied to disable apache cache but nothing changed.
I've found an interesting thing:
DHIS2 retrieves the correct user information through these four paths:
/api/me?fields=%3Aall%2CorganisationUnits%5Bid%5D%2CuserGroups%5Bid%5D%2CuserCredentials%5B%3Aall%2C!user%2CuserRoles%5Bid%5D
/api/me
/api/me/user-account.json?_=1504260368320
/api/23/me/user-account.json
at the same time (I mean, *in the same page load*) DHIS2 retrieves the
other user information through these two urls:
/api/me?fields=:all,organisationUnits%5Bid%5D,userGroups%5Bid%5D,userCredentials%5B:all,!user,userRoles%5Bid%5D
/api/26/me.json (4 times)
but
Thank you ! I'm updating the JIRa ticket.
2017-08-28 17:24 GMT+02:00 Bob Jolliffe <bobjolliffe@xxxxxxxxx>:
> If you are getting remnants of SJ's session appearing on your computer
> it might mean some stuff is being (incorrectly) cached on the server
> side. Do you have nginx or apache cache enabled. If so try disabling
> that.
>
> On 28 August 2017 at 10:51, Ramón José Jiménez Pomareta
> <dhis2@xxxxxxxxxxx> wrote:
> > I think that can be useful:
> > Usually SJ is an user has been recently or is currently logged on another
> > computer.
> >
> >
> > 2017-08-28 11:44 GMT+02:00 Ramón José Jiménez Pomareta <
> dhis2@xxxxxxxxxxx>:
> >>
> >> Hello,
> >>
> >>
> >> When I log with my credentials (ramon), DHIS2 shows SJ and the name of
> >> another user on the top right corner instead of mine (RJ and Ramon
> Jimenez).
> >> The apps I can see are the apps allowed for SJ. I am not able to see
> mines.
> >> On the server log, I am logged correctly and there's no trace about SJ.
> >>
> >> When I go to Account I see my real username and if I do Control+F5 all
> >> becomes OK.
> >>
> >> I can live with that bug, but not all the non-IT users using the
> platform:
> >> that's very confusing for them, and very risky if they could use other
> apps
> >> they should not use.
> >>
> >>
> >> I've open a ticket on JIRA
> >> https://jira.dhis2.org/browse/DHIS2-2102
> >>
> >> Thank you !
> >
> >
> >
> > _______________________________________________
> > Mailing list: https://launchpad.net/~dhis2-devs
> > Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~dhis2-devs
> > More help : https://help.launchpad.net/ListHelp
> >
>
Follow ups
References