[Bug 1498786] [NEW] user-settings-npe

Public bug reported:

Hi,

I am accessing the User Settings via the api, and if certain settings
for a user are not set, the api is throwing a 500 Null Pointer
exception.

For example, on the demo server, this call properly returns "en":
https://apps.dhis2.org/demo/api/userSettings/keyUiLocale?user=admin

whereas this call throws a null pointer:
https://apps.dhis2.org/demo/api/userSettings/keyUiLocale?user=mobile

Also, some keys return Class Cast exceptions, such as this key:
keyMessageEmailNotification
https://apps.dhis2.org/demo/api/userSettings/keyMessageEmailNotification?user=admin
Request processing failed; nested exception is java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String

This is for version 2.20.

Is it possible to fix these? Thanks,

Lorill

** Affects: dhis2
     Importance: Medium
     Assignee: Lars Helge Øverland (larshelge)
         Status: Confirmed

** Changed in: dhis2
       Status: New => Confirmed

** Changed in: dhis2
     Assignee: (unassigned) => Lars Helge Øverland (larshelge)

···

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

Title:
  user-settings-npe

Status in DHIS:
  Confirmed

Bug description:
  Hi,

  I am accessing the User Settings via the api, and if certain settings
  for a user are not set, the api is throwing a 500 Null Pointer
  exception.

  For example, on the demo server, this call properly returns "en":
  DHIS2 App Hub

  whereas this call throws a null pointer:
  DHIS2 App Hub

  Also, some keys return Class Cast exceptions, such as this key:
  keyMessageEmailNotification
  DHIS2 App Hub
  Request processing failed; nested exception is java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String

  This is for version 2.20.

  Is it possible to fix these? Thanks,

  Lorill

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1498786/+subscriptions

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

** 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/1498786

Title:
  user-settings-npe

Status in DHIS:
  Confirmed

Bug description:
  Hi,

  I am accessing the User Settings via the api, and if certain settings
  for a user are not set, the api is throwing a 500 Null Pointer
  exception.

  For example, on the demo server, this call properly returns "en":
  DHIS2 App Hub

  whereas this call throws a null pointer:
  DHIS2 App Hub

  Also, some keys return Class Cast exceptions, such as this key:
  keyMessageEmailNotification
  DHIS2 App Hub
  Request processing failed; nested exception is java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String

  This is for version 2.20.

  Is it possible to fix these? Thanks,

  Lorill

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1498786/+subscriptions

** Changed in: dhis2
       Status: Confirmed => 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/1498786

Title:
  user-settings-npe

Status in DHIS:
  Fix Committed

Bug description:
  Hi,

  I am accessing the User Settings via the api, and if certain settings
  for a user are not set, the api is throwing a 500 Null Pointer
  exception.

  For example, on the demo server, this call properly returns "en":
  DHIS2 App Hub

  whereas this call throws a null pointer:
  DHIS2 App Hub

  Also, some keys return Class Cast exceptions, such as this key:
  keyMessageEmailNotification
  DHIS2 App Hub
  Request processing failed; nested exception is java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String

  This is for version 2.20.

  Is it possible to fix these? Thanks,

  Lorill

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1498786/+subscriptions

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

···

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

Title:
  user-settings-npe

Status in DHIS:
  Fix Released

Bug description:
  Hi,

  I am accessing the User Settings via the api, and if certain settings
  for a user are not set, the api is throwing a 500 Null Pointer
  exception.

  For example, on the demo server, this call properly returns "en":
  DHIS2 App Hub

  whereas this call throws a null pointer:
  DHIS2 App Hub

  Also, some keys return Class Cast exceptions, such as this key:
  keyMessageEmailNotification
  DHIS2 App Hub
  Request processing failed; nested exception is java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String

  This is for version 2.20.

  Is it possible to fix these? Thanks,

  Lorill

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1498786/+subscriptions