← Back to team overview

dhis2-devs team mailing list archive

[Bug 1624062] Re: userSettings resource doesn't work properly


You are right, this have now been fixed in 224 and master (give our
server a bit of time to re-deploy)

** Changed in: dhis2
     Assignee: (unassigned) => Morten Olav Hansen (mortenoh)

** Changed in: dhis2
    Milestone: None => 2.25

** Changed in: dhis2
       Status: New => Fix Committed

You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.

  userSettings resource doesn't work properly

Status in DHIS:
  Fix Committed

Bug description:
  I'm trying to get keyUiLocale property for a particular user via API. I tried /api/userSettings/keyUiLocale?user=someUsername but it doesn't return proper results. I guess the problem is here: https://github.com/dhis2/dhis2-core/blob/master/dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/UserSettingController.java#L159, credentials.getUser() doesn't return a user with requested username but the owner of credentials object.

  Is there some other way to fetch keyUiLocale of a particular user (I
  need to get keyUiLocale of any user not only current)?

To manage notifications about this bug go to: