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
jason
(Jason Pickering)
2
Hi Lorill,
Thanks for the bug report. I created a bug for you here (https://bugs.launchpad.net/dhis2/+bug/1498786). This would be the preferred way to report bugs.
Once it has been fixed, the bug will be updated.
Best regards,
Jason
···
On Tue, Sep 22, 2015 at 11:49 PM, Lorill Crees lcrees@2paths.com wrote:
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
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp
–
Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049
Lars
(Lars Øverland)
3
Hi Lorill,
thanks for pointing this out. It has been fixed now in trunk and 2.20.
best regards,
Lars
···
On Wed, Sep 23, 2015 at 9:38 AM, Jason Pickering jason.p.pickering@gmail.com wrote:
Hi Lorill,
Thanks for the bug report. I created a bug for you here (https://bugs.launchpad.net/dhis2/+bug/1498786). This would be the preferred way to report bugs.
Once it has been fixed, the bug will be updated.
Best regards,
Jason
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp
–
On Tue, Sep 22, 2015 at 11:49 PM, Lorill Crees lcrees@2paths.com wrote:
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
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp
Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049
–
Lars Helge Øverland
Lead developer, DHIS 2
University of Oslo
Skype: larshelgeoverland
http://www.dhis2.org
Thanks Lars for the quick turnaround on this!
And thanks Jason for the info on bug reporting - I’ll create a report myself in the future.
Cheers,
Lorill
···
On Wed, Sep 23, 2015 at 12:48 AM, Lars Helge Øverland larshelge@gmail.com wrote:
Hi Lorill,
thanks for pointing this out. It has been fixed now in trunk and 2.20.
best regards,
Lars
On Wed, Sep 23, 2015 at 9:38 AM, Jason Pickering jason.p.pickering@gmail.com wrote:
Hi Lorill,
Thanks for the bug report. I created a bug for you here (https://bugs.launchpad.net/dhis2/+bug/1498786). This would be the preferred way to report bugs.
Once it has been fixed, the bug will be updated.
Best regards,
Jason
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp
–
Lars Helge Øverland
Lead developer, DHIS 2
University of Oslo
Skype: larshelgeoverland
http://www.dhis2.org
On Tue, Sep 22, 2015 at 11:49 PM, Lorill Crees lcrees@2paths.com wrote:
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
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp
Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049
–