Keep in mind that the system settings API endpoint only accepts text/plain, not json. So the value should be just es without quotes, not "es" with quotes:
curl -u admin:district https://play.dhis2.org/dev/api/systemSettings/keyUiLocale -X POST -H 'Content-Type: text/plain' -d es Nicolay Ramm Front end developer, DHIS 2 University of Oslo https://www.dhis2.org On Mon, Oct 3, 2016 at 2:13 PM, Jason Pickering <jason.p.picker...@gmail.com > wrote: > OK. I tried a direct post without the app,and got the same thing. Will try > again however just to be sure. > > Regards, > Jason > > > On Mon, Oct 3, 2016, 2:04 PM Nicolay Ramm <nico...@dhis2.org> wrote: > >> Hi Jason, >> >> is this happening with the settings app? It sounds like an issue that was >> fixed recently, where plain text values were being encoded as JSON. >> >> As long as you're running v25.0.5 or higher of the settings app, you >> should be fine. Check the browser console when you start the app. The >> version included with the latest snapshot should actually be v25.0.6, so >> your browser cache may be stale. >> >> >> Best regards, >> >> >> Nicolay Ramm >> Front end developer, DHIS 2 >> University of Oslo >> https://www.dhis2.org >> >> On Mon, Oct 3, 2016 at 9:32 AM, Jason Pickering < >> jason.p.picker...@gmail.com> wrote: >> >>> Hi Devs, >>> There seem to be some issues updating a users locale in the latest dev >>> snapshot. It is not possible to update a users locale. >>> >>> POST to >>> >>> https://play.dhis2.org/dev/api/25/userSettings/keyUiLocale >>> >>> with "es" (the header sent by the app when swtiching from English to >>> Spanish) >>> >>> yields an HTTP 500 >>> >>> { >>> "httpStatus": "Internal Server Error", >>> "httpStatusCode": 500, >>> "status": "ERROR", >>> "message": "Invalid locale format: \"es\"" >>> } >>> >>> >>> With GET to the same URL yields >>> >>> Unexpected 'e' >>> >>> which seems strange. >>> >>> Version:2.25-SNAPSHOT >>> Build revision:0cf6645 >>> >>> Regards, >>> Jason >>> >>> -- >>> Jason P. Pickering >>> email: jason.p.picker...@gmail.com >>> tel:+46764147049 >>> >>> _______________________________________________ >>> 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 >>> >>> >>
_______________________________________________ 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