Re: [Dhis2-devs] User Module - Error deleting user

2016-06-16 Thread Morten Olav Hansen
Yeah, it should have rolled back.. so it partially deleting something? I don't think our `deletion handlers` does everything in the same transaction.. so it won't do a proper rollback.. -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Fri, Jun 17, 2016 at

[Dhis2-devs] DHIS 2.23 - all main sub-apps fail to load

2016-06-16 Thread Calle Hedberg
Hi We have a national instance for ART data that works as expected when running on my laptop (pg 9.5.3, Java 8.0.91, tomcat 8.0.32, war file from today), and we ran it without problems on a local training server setup last week. The database was moved to one of our many servers earlier today,

Re: [Dhis2-devs] Metadata import from 2.18 to 2.23

2016-06-16 Thread Juma Lungo
Dear Morten, Thank you for your quick reply on my query. This is very helpful. Lungo From: Morten Olav Hansen To: Juma Lungo Cc: dhis2-devs Sent: Thursday, June 16, 2016 4:58 AM Subject: Re: [Dhis2-devs] Metadata

Re: [Dhis2-devs] User Module - Error deleting user

2016-06-16 Thread Paulo Grácio
Hi Morten, this test case expects a failure(500) when deleting the admin user. The problem is that something is being deleted, once the user is not allowed to authenticate again. Please see log attached. Basically I was expecting the transaction to rollback and keep database state. BR, Paulo

Re: [Dhis2-devs] User Module - Error deleting user

2016-06-16 Thread Jason Pickering
Hi Paulo and Morten, Please see my earlier mail from today where I did a similar case with a user, but via the UI. https://lists.launchpad.net/dhis2-devs/msg45471.html which I think basically does the same thing. Not sure. Maybe you can point us to the exact test Paulo? Morten, this is a quite

Re: [Dhis2-devs] User Module - Error deleting user

2016-06-16 Thread Morten Olav Hansen
Paulo, I think what you expect is that the user is deleted. That will not happen, maybe 2.27. Pleases make sure Jason is feeling you actual cases we can fix. -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, Jun 16, 2016 at 11:44 PM, Paulo Grácio

[Dhis2-devs] Tracker capture app not loading on dhis2.23

2016-06-16 Thread Kamugunga Adolphe
Dear all, I am upgrading my local instance on ubuntu 14.04LTS from dhis2.22 to 2.23. The server seems to start correctly , i can use other apps but when i tried to access tracker capture app it stops and doesn't show anything up. Checking from Developer tools here is what it displays this

Re: [Dhis2-devs] User Module - Error deleting user

2016-06-16 Thread Paulo Grácio
I have created a test case that tries to delete the default admin user. I get back a 500 with the web message payload, but looks like something is being delete because after that I can't login into the application with that user and also http://localhost:8085/api/users?query=admin returns an empty

Re: [Dhis2-devs] Sync Anonymous Event Data along with coordinates code fix

2016-06-16 Thread Morten Olav Hansen
Ok, great. We like to turn off some of this Jackson magic as most of the time you don't really want to expose all fields/getter (unless you have a very strict DTO) -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, Jun 16, 2016 at 7:31 PM, Anilkumar

Re: [Dhis2-devs] Sync Anonymous Event Data along with coordinates code fix

2016-06-16 Thread Anilkumar Kodi
Hi Morten, We identified the problem and found solution as below. *Solution :* As you implemented disabling GETTERS and SETTERS in for deserializing, the same way we need to disable while serializing as well. Thank you so much for your help Regards, Anil On Thu, Jun 16, 2016 at 5:24 PM,

Re: [Dhis2-devs] Sync Anonymous Event Data along with coordinates code fix

2016-06-16 Thread Morten Olav Hansen
Hi If I was you I would use RenderService, this will have a properly pre-configured object mapper. When you just do new ObjectMapper() it uses all the defaults, which are incompatible with DHIS 2 (specifically it enabled auto-discovery) -- Morten Olav Hansen Senior Engineer, DHIS 2 University

Re: [Dhis2-devs] Sync Anonymous Event Data along with coordinates code fix

2016-06-16 Thread Anilkumar Kodi
Sorry Morten, executeAnonymousEventPush which we build for pushing anonymous event data, When we are getting events(which does not have valid and coordinateString field ) and when we are passing that to to write to request, at the time this payload was building. Any idea why are we getting

Re: [Dhis2-devs] Sync Anonymous Event Data along with coordinates code fix

2016-06-16 Thread Morten Olav Hansen
On Thu, Jun 16, 2016 at 6:02 PM, Anilkumar Kodi wrote: > executeAnonymousEventPush What is that? -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org ___ Mailing list:

Re: [Dhis2-devs] Sync Anonymous Event Data along with coordinates code fix

2016-06-16 Thread Anilkumar Kodi
It got added when we are serializing and sending request in the executeAnonymousEventPush. On Thu, Jun 16, 2016 at 3:34 PM, Morten Olav Hansen wrote: > Right, but I don't see why you have valid in the payload to start with? > normal event export will not include this > > -- >

Re: [Dhis2-devs] [Dhis2-users] Searching a person in all organization units and update he/she program stage

2016-06-16 Thread Kamugunga Adolphe
Thank you Ranga, Ours is web based and data managers need to use computers, we would like know how we can exploit the similar functionality from normal instance relying on internet. Regards *Adolphe Kamugunga* *MIS Technical Advisor* Mobile: +250 788 740 578 Email:kaa...@gmail.com Skype:

Re: [Dhis2-devs] Sync Anonymous Event Data along with coordinates code fix

2016-06-16 Thread Morten Olav Hansen
Right, but I don't see why you have valid in the payload to start with? normal event export will not include this -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, Jun 16, 2016 at 4:52 PM, Anilkumar Kodi wrote: > Hi Morten

Re: [Dhis2-devs] Sync Anonymous Event Data along with coordinates code fix

2016-06-16 Thread Anilkumar Kodi
Hi Morten This is related to the coordinate value itself. Please see this event payload thats getting posted to /api/events (POST).

[Dhis2-devs] Deleting a user

2016-06-16 Thread Jason Pickering
When attempting to delete a user (in this case, the user "system" from the SL demo database) (revision 23317) through the UI, we get this rather nasty stack trace and then a "Deleting" message through the UI. http://pastebin.com/TvJDFEtz It appears actually the user is deleted, but not

[Dhis2-devs] [Bug 1591697] Re: Feedback and Sending Messages via api/messageConversations fails with Null Pointer

2016-06-16 Thread Alex Tumwesigye
Here is a quick fix. There is need for an SMS gateway to be set for all the conditions for sending messages/SMS to be true. Just go to Mobile Configuration and add a fake generic http gateway (does not need to be real). See line 47 of this file:

Re: [Dhis2-devs] User Module - Error deleting user

2016-06-16 Thread Morten Olav Hansen
It will return same status as before (500) but now it will return a web message payload with info (from hibernate) -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, Jun 16, 2016 at 3:01 PM, Jason Pickering < jason.p.picker...@gmail.com> wrote: > I

Re: [Dhis2-devs] [Bug 1588797] Re: messageConversations api not sending email per user

2016-06-16 Thread Alex Tumwesigye
Dear Lars/ Mike, I have found a quick fix. There is need for an SMS gateway to be set for all the conditions for sending messages/SMS to be true. Just go to Mobile Configuration and add a fake generic http gateway (does not need to be real). See line 47 of this file:

Re: [Dhis2-devs] User Module - Error deleting user

2016-06-16 Thread Paulo Grácio
http://localhost:8085/api/users/URq9lLcM8ID 204 NO CONTENT The server has successfully fulfilled the request and that there is no additional content to send in the response payload body. On Thu, Jun 16, 2016 at 9:24 AM Morten Olav Hansen wrote: > 204? for which endpoint? that

Re: [Dhis2-devs] User Module - Error deleting user

2016-06-16 Thread Jason Pickering
I guess the scenario we need to test is for users which CANNOT be deleted for whatever reason. This is a bit more difficult to test, but should be able to be done with the "system" user .There are a whole slew of objects which are attached with FK references to userinfo, so it should be pretty

Re: [Dhis2-devs] User Module - Error deleting user

2016-06-16 Thread Morten Olav Hansen
Right, so the user was deleted? 204 is expected for that. It's only for server errors I have changed -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, Jun 16, 2016 at 2:26 PM, Paulo Grácio wrote: >

Re: [Dhis2-devs] User Module - Error deleting user

2016-06-16 Thread Morten Olav Hansen
204? for which endpoint? that doesn't sound right :) -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, Jun 16, 2016 at 2:22 PM, Paulo Grácio wrote: > Great, getting a 204. > > On Thu, Jun 16, 2016 at 8:39 AM Morten Olav Hansen

Re: [Dhis2-devs] User Module - Error deleting user

2016-06-16 Thread Paulo Grácio
Great, getting a 204. On Thu, Jun 16, 2016 at 8:39 AM Morten Olav Hansen wrote: > Hibernate exception should now be caught, and a web message sent back, > please try it out. Also added a new default exception handler, which > unwraps the message and sends back to the user

Re: [Dhis2-devs] User Module - Error deleting user

2016-06-16 Thread Morten Olav Hansen
Hibernate exception should now be caught, and a web message sent back, please try it out. Also added a new default exception handler, which unwraps the message and sends back to the user (full stack trace is still available on the server). @Paulo: deletions -should- be allowed... but I don't