[Bug 1624062] [NEW] userSettings resource doesn't work properly

Public bug reported:

Hi,
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)?

** Affects: dhis2
     Importance: Undecided
         Status: New

···

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1624062

Title:
  userSettings resource doesn't work properly

Status in DHIS:
  New

Bug description:
  Hi,
  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:
https://bugs.launchpad.net/dhis2/+bug/1624062/+subscriptions

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.
https://bugs.launchpad.net/bugs/1624062

Title:
  userSettings resource doesn't work properly

Status in DHIS:
  Fix Committed

Bug description:
  Hi,
  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:
https://bugs.launchpad.net/dhis2/+bug/1624062/+subscriptions

Great, thanks! Is it possible to fix this also in 2.22?

W dniu 2016-09-16 05:43:34 użytkownik Morten Olav Hansen <1624062@bugs.launchpad.net> napisał:

···

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.
https://bugs.launchpad.net/bugs/1624062

Title:
  userSettings resource doesn't work properly

Status in DHIS:
  Fix Committed

Bug description:
  Hi,
  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:
https://bugs.launchpad.net/dhis2/+bug/1624062/+subscriptions

_______________________________________________
Mailing list: DHIS 2 developers in Launchpad
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : DHIS 2 developers in Launchpad
More help : ListHelp - Launchpad Help

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1624062

Title:
  userSettings resource doesn't work properly

Status in DHIS:
  Fix Committed

Bug description:
  Hi,
  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:
https://bugs.launchpad.net/dhis2/+bug/1624062/+subscriptions

This have been backported to 222 and 223 now

···

--
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo

On Fri, Sep 16, 2016 at 3:39 PM, Kamil Krampa <kamilkrampa@op.pl> wrote:

Great, thanks! Is it possible to fix this also in 2.22?

W dniu 2016-09-16 05:43:34 użytkownik Morten Olav Hansen <
1624062@bugs.launchpad.net> napisał:
> 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.
> https://bugs.launchpad.net/bugs/1624062
>
> Title:
> userSettings resource doesn't work properly
>
> Status in DHIS:
> Fix Committed
>
> Bug description:
> Hi,
> 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:
dhis2-core/dhis-2 at master · dhis2/dhis2-core · GitHub
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:
> https://bugs.launchpad.net/dhis2/+bug/1624062/+subscriptions
>
> _______________________________________________
> Mailing list: DHIS 2 developers in Launchpad
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : DHIS 2 developers in Launchpad
> More help : ListHelp - Launchpad Help
>

--
You received this bug notification because you are a bug assignee.
https://bugs.launchpad.net/bugs/1624062

Title:
  userSettings resource doesn't work properly

Status in DHIS:
  Fix Committed

Bug description:
  Hi,
  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:
dhis2-core/dhis-2 at master · dhis2/dhis2-core · GitHub
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:
https://bugs.launchpad.net/dhis2/+bug/1624062/+subscriptions

** Changed in: dhis2
   Importance: Undecided => Medium

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1624062

Title:
  userSettings resource doesn't work properly

Status in DHIS:
  Fix Committed

Bug description:
  Hi,
  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:
https://bugs.launchpad.net/dhis2/+bug/1624062/+subscriptions