Re: [Dhis2-devs] Problem creating a data export in 2.30

2018-10-14 Thread Morten Olav Hansen
Please remember that on the play servers, the admin user is not actually a
superuser (it does not have ALL). So normal sharing rules applies.

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
Team Integration Lead
University of Oslo
http://www.dhis2.org


On Fri, Oct 12, 2018 at 12:58 AM Viet Nguyen  wrote:

> Hi Elmarie,
>
> Yes, the export data value function is also controlled by sharing
> settings.
>
>
>
> On Thu, Oct 11, 2018 at 9:12 PM Elmarie Claasen  wrote:
>
>> Hi Viet,
>>
>>
>>
>> I think we may be onto what is causing the issue. Is the exporting of
>> data also controlled by sharing settings? I did an export again today of
>> all datasets in Play demo for Sep 2018 with username admin/district and
>> only get the attached export file though it appears there are many more
>> records in the database than only these 3 for Sep 2018.
>>
>>
>>
>> Regards,
>>
>>
>>
>> *Elmarie Claasen*
>>
>> [image: Hisp logo]
>>
>> Project Manager
>>
>> Health Information Systems Program
>>
>> Tel:  041-367 1027
>>
>> Cell: 082 374 2209
>>
>> E-mail: elma...@hisp.org
>>
>> Skype:  elmarie.claasen52
>>
>>
>>
>> *From:* Viet Nguyen 
>> *Sent:* Thursday, October 11, 2018 12:35 PM
>> *To:* Elmarie Claasen 
>> *Cc:* dhis2-users ; dhis2-devs <
>> dhis2-devs@lists.launchpad.net>; mahla...@hisp.org
>> *Subject:* Re: [Dhis2-devs] Problem creating a data export in 2.30
>>
>>
>>
>> I can't reproduce the issue you described on play/2.30, even for
>> September period.
>>
>>
>>
>> Could you provide more info such as steps to reproduce on play/2.30
>> server and export parameters.
>>
>>
>>
>> On Wed, Oct 10, 2018 at 5:50 PM Elmarie Claasen  wrote:
>>
>> Hi all,
>>
>>
>>
>> We having a problem in creating a data export in 2.30 instance on local
>> instance. The file generated is empty. There is no error in the browser
>> console or in the log file in fact no entry in the log file at the time
>> when the export is generated.
>>
>>
>>
>> The version used
>>
>> Version:
>>
>> 2.30
>>
>> Build revision:
>>
>> ade885d
>>
>> Build date:
>>
>> 2018-10-08 03:06
>>
>>
>>
>> The Play demo does not create the same problem when data is exported for
>> July there are data in the export file but when exported for Sep for all or
>> any datasets the export also comes up empty.
>>
>>
>>
>> Regards,
>>
>>
>>
>> *Elmarie Claasen*
>>
>> [image: Hisp logo]
>>
>> Project Manager
>>
>> Health Information Systems Program
>>
>> Tel:  041-367 1027
>>
>> Cell: 082 374 2209
>>
>> E-mail: elma...@hisp.org
>>
>> Skype:  elmarie.claasen52
>>
>>
>>
>>
>>
>> *This message and any attachments are subject to a disclaimer published
>> at http://www.hisp.org/policies.html#comms_disclaimer
>> <http://www.hisp.org/policies.html#comms_disclaimer>.  Please read the
>> disclaimer before opening any attachment or taking any other action in
>> terms of this electronic transmission.  If you cannot access the
>> disclaimer, kindly send an email to disclai...@hisp.org
>>  and a copy will be provided to you. By replying to
>> this e-mail or opening any attachment you agree to be bound by the
>> provisions of the disclaimer.*
>>
>> ___
>> 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
>>
>>
>>
>>
>> --
>>
>>
>>
>> Viet Nguyen
>>
>> Software Developer, DHIS 2
>>
>> University of Oslo
>>
>> http://www.dhis2.org
>>
>>
>>
>>
>>
>> *This message and any attachments are subject to a disclaimer published
>> at http://www.hisp.org/policies.html#comms_disclaimer
>> <http://www.hisp.org/policies.html#comms_disclaimer>.  Please read the
>> disclaimer before opening any attachment or taking any other action in
>> terms of this electronic transmission.  If you cannot access the
>> disclaimer, kindly send an email to disclai...@hisp.org
>>  and a copy will be provided to you. By replying to
>> this e-mail or opening any attachment you agree to be bound by the
>> provisions of the disclaimer.*
>>
>
>
> --
>
> Viet Nguyen
> Software Developer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
>
> ___
> 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


Re: [Dhis2-devs] Metadata import not working v2.30

2018-10-05 Thread Morten Olav Hansen
Hi

As a possible workaround, you can also use the command line...

curl -X POST -d @filename.xml -H "Content-Type: application/xml" -u
username:password http://server/api/metadata

That should give you the full error report

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
Team Integration Lead
University of Oslo
http://www.dhis2.org


On Fri, Oct 5, 2018 at 5:13 PM Muhammad Adeel  wrote:

> Hi Norberto,
>
> Sorry about the last email subject had *DHIS v2.30*.
> I am consulting with Backend devs to look at this issue.
> If you can forward us the XML file we can validate the import as well.
>
> Regards,
> Adeel
>
> On Fri, Oct 5, 2018 at 11:37 AM Norberto Banze 
> wrote:
>
>> Hi Devs,
>>
>> I am having issues importing data using xml file. The report I get from
>> the LOGGER is that all metadata have been ignored but it doesn't' give me
>> any report with errors.
>>
>> Can someone help with this.
>>
>> I have downloaded category options in XML format and edited public access
>> from rw to rwrw because I want all users to be able to edit and view
>> metadata and capture and view data. The quicker way I found to edit the
>> sharing access on all categories was through this process. But when i try
>> to upload the file no success and no error.
>>
>> Best,
>> NB
>> ___
>> 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
>
___
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


Re: [Dhis2-devs] Metadata Import not Working for 2.29

2018-09-23 Thread Morten Olav Hansen
Yes, if you look at the error message it says

java.lang.IllegalArgumentException: No enum constant
org.hisp.dhis.common.ValueType.Sum

So there is something wrong in the metadata you sent...

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
Team Integration Lead
University of Oslo
http://www.dhis2.org


On Sat, Sep 22, 2018 at 3:43 PM Ifeanyi Okoye 
wrote:

> Hi Morten,
> Was this response for me? I didn’t mention anything about a value type.
> We were trying to do a metadata import.
>
>
> Regards,
>
> Ifeanyi
>
> On Saturday, September 22, 2018, 07:55, Morten Olav Hansen <
> mor...@dhis2.org> wrote:
>
> Hi
>
> There is no ValueType called SUM, maybe you are thinking about
> AggregationType column?
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> Team Integration Lead
> University of Oslo
> http://www.dhis2.org
>
>
> On Fri, Sep 21, 2018 at 11:59 PM Ifeanyi Okoye 
> wrote:
>
> Dear All,
>
> We are DHIS 2.29 Build revision: 1797422
>
> We tried to do some metadata import using CSV for data elements and it
> would not run. There is no error or activity on the console but in the logs
> this is what we see
>
> * ERROR 2018-09-21 08:03:50,012 Unexpected error occurred in scheduled
> task. (TaskUtils.java [taskScheduler-23])
> java.lang.IllegalArgumentException: No enum constant
> org.hisp.dhis.common.ValueType.Sum
> at java.lang.Enum.valueOf(Enum.java:238)
> at org.hisp.dhis.common.ValueType.valueOf(ValueType.java:46)
> at
> org.hisp.dhis.dxf2.csv.DefaultCsvImportService.dataElementsFromCsv(DefaultCsvImportService.java:321)
> at
> org.hisp.dhis.dxf2.csv.DefaultCsvImportService.fromCsv(DefaultCsvImportService.java:115)
> at
> org.hisp.dhis.importexport.action.util.ImportMetaDataCsvTask.call(ImportMetaDataCsvTask.java:87)
> at
> org.hisp.dhis.security.SecurityContextRunnable.run(SecurityContextRunnable.java:57)
> at
> org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
>
> Can anybody help out with this?
>
> Thank you.
>
>
>
> Warm Regards,
>
> Ifeanyi
>
> Read DrMaestro's Blog
> www.ifeanyiokoye.com
> ___
> 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


Re: [Dhis2-devs] Metadata Import not Working for 2.29

2018-09-21 Thread Morten Olav Hansen
Hi

There is no ValueType called SUM, maybe you are thinking about
AggregationType column?

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
Team Integration Lead
University of Oslo
http://www.dhis2.org


On Fri, Sep 21, 2018 at 11:59 PM Ifeanyi Okoye 
wrote:

> Dear All,
>
> We are DHIS 2.29 Build revision: 1797422
>
> We tried to do some metadata import using CSV for data elements and it
> would not run. There is no error or activity on the console but in the logs
> this is what we see
>
> * ERROR 2018-09-21 08:03:50,012 Unexpected error occurred in scheduled
> task. (TaskUtils.java [taskScheduler-23])
> java.lang.IllegalArgumentException: No enum constant
> org.hisp.dhis.common.ValueType.Sum
> at java.lang.Enum.valueOf(Enum.java:238)
> at org.hisp.dhis.common.ValueType.valueOf(ValueType.java:46)
> at
> org.hisp.dhis.dxf2.csv.DefaultCsvImportService.dataElementsFromCsv(DefaultCsvImportService.java:321)
> at
> org.hisp.dhis.dxf2.csv.DefaultCsvImportService.fromCsv(DefaultCsvImportService.java:115)
> at
> org.hisp.dhis.importexport.action.util.ImportMetaDataCsvTask.call(ImportMetaDataCsvTask.java:87)
> at
> org.hisp.dhis.security.SecurityContextRunnable.run(SecurityContextRunnable.java:57)
> at
> org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
>
> Can anybody help out with this?
>
> Thank you.
>
>
>
> Warm Regards,
>
> Ifeanyi
>
> Read DrMaestro's Blog
> www.ifeanyiokoye.com
> ___
> 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


Re: [Dhis2-devs] ver 2.29 , can't import metadata.

2018-09-09 Thread Morten Olav Hansen
Hi

it seems something is wrong with your attribute references. Do they already
exist in the system? or are you importing them as part of the metadata file?

Assuming they are part of the same file, this would clearly be a bug.

Would you mind filing a bug at jira.dhis2.org ?

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
Team Integration Lead
University of Oslo
http://www.dhis2.org


On Sun, Sep 9, 2018 at 1:32 PM 林晓东  wrote:

> dry run is ok
>
> 在 2018-09-06 23:35:15,"Dusabe Eric"  写道:
>
> You are right whenever there is an error while importing it keeps showing
> that it is still running. you can try a dry run and check if everything is
> fine first.
>
>
> *Eric Dusabe*
>
> Senior Developer
>
> *HISP RWANDA*
>
> m: (+250) 788743445
>
> a: KG 113 St, Kigali – Rwanda
>
> w: hisprwanda.org e: dusabe.e...@hisprwanda.org
>
>
>
> On Thu, Sep 6, 2018 at 3:44 AM 林晓东  wrote:
>
>> 2018-09-06 09:43:25 (admin) Creating 147 object(s) of type Option
>> 2018-09-06 09:43:25 (admin) Creating 1 object(s) of type Constant
>> 2018-09-06 09:43:25 (admin) Creating 2 object(s) of type UserGroup
>> 2018-09-06 09:43:25 (admin) Updating 1 object(s) of type User
>> 2018-09-06 09:43:25 (admin) Creating 9 object(s) of type User
>> 2018-09-06 09:43:25 (admin) Updating 1 object(s) of type
>> UserAuthorityGroup
>> 2018-09-06 09:43:24 (admin) Creating 4 object(s) of type
>> UserAuthorityGroup
>> 2018-09-06 09:43:18 (admin) Import:Start
>>
>>
>>
>> --
>> 此致
>>
>>林晓东
>>
>> 莫愁前路无知己,天下谁人不识君。
>>
>> 在 2018-09-04 21:54:16,"Dusabe Eric"  写道:
>>
>> Hi,
>>
>> I hope it is not too late for you, can you share the screen (import page)
>> by clicking on "*Display import summary*" link, below the import
>> form for more detail on the error, it seems like it was not able to insert
>> the *AttributeValue *entity because it is missing the referenced
>> Attribute entity; the missing Attribute needs to be inserted first.
>>
>> Regards
>>
>> *Eric Dusabe*
>>
>> Senior Developer
>>
>> *HISP **Rwanda*
>>
>> m: (+250) 788743445
>>
>> a: KG 113 St, Kigali – Rwanda
>>
>> w: hisprwanda.org e: dusabe.e...@hisprwanda.org
>>
>>
>>
>>
>> On Tue, Sep 4, 2018 at 5:07 AM 林晓东  wrote:
>>
>>> hi,all
>>>   I have a new installed 2.29 instance.  got error when import metadata
>>> from other 2.29 instance.
>>> -
>>>   * WARN  2018-09-04 10:38:13,888 HHH000437: Attempting to save one or
>>> more entities that have a non-nullable association with an unsaved
>>> transient entity. The unsaved
>>>  transient entity must be saved in an operation prior to saving these
>>> dependent entities.
>>> Unsaved transient entity: ([org.hisp.dhis.attribute.Attribute#0])
>>> Dependent entities:
>>> ([[org.hisp.dhis.attribute.AttributeValue#75]])
>>> Non-nullable association(s):
>>> ([org.hisp.dhis.attribute.AttributeValue.attribute])
>>> (UnresolvedEntityInsertActions.java [taskScheduler-23])
>>> * ERROR 2018-09-04 10:38:13,898 Unexpected error occurred in scheduled
>>> task. (TaskUtils.java [taskScheduler-23])
>>> org.hibernate.TransientPropertyValueException: Not-null property
>>> references a transient value - transient instance must be saved before
>>> current operation : org.hisp.
>>> dhis.attribute.AttributeValue.attribute ->
>>> org.hisp.dhis.attribute.Attribute
>>> at
>>> org.hibernate.action.internal.UnresolvedEntityInsertActions.checkNoUnresolvedActionsAfterOperation(UnresolvedEntityInsertActions.java:122)
>>> at
>>> org.hibernate.engine.spi.ActionQueue.checkNoUnresolvedActionsAfterOperation(ActionQueue.java:421)
>>> at
>>> org.hibernate.internal.SessionImpl.checkNoUnresolvedActionsAfterOperation(SessionImpl.java:630)
>>> at
>>> org.hibernate.internal.SessionImpl.fireSave(SessionImpl.java:693)
>>> at org.hibernate.internal.SessionImpl.save(SessionImpl.java:683)
>>> at org.hibernate.internal.SessionImpl.save(SessionImpl.java:678)
>>> at
>>> org.hisp.dhis.dxf2.metadata.objectbundle.hooks.IdentifiableObjectBundleHook.handleAttributeValues(IdentifiableObjectBundleHook.java:97)
>>> at
>>> org.hisp.dhis.dxf2.metadata.objectbundle.hooks.IdentifiableObjectBundleHook.preCreate(IdentifiableObjectBundleHook.java:55)
>>> at
>>

Re: [Dhis2-devs] CVE-2018-11776 struts exploit | impact to DHIS 2?

2018-09-09 Thread Morten Olav Hansen
Hi Stephan

Let me include Lars reply from a thread where we were discussing this.

"""
we did an assessment of this last week and concluded that we are not
affected by this vulnerability. This due to the two conditions mentioned
(use of namespaces and alwaysSelectFullNamespace config property).

That said we have patched all versions from 2.28 and later and you can
fetch the new builds from dhis2.org/downloads.
"""

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
Team Integration Lead
University of Oslo
http://www.dhis2.org


On Sat, Sep 8, 2018 at 3:19 AM Stephen Macauley <
stephen.macau...@inductivehealth.com> wrote:

> DHIS2 Dev Team,
>
>
>
> Can you comment on the recent CVE-2018-11776
> <https://cwiki.apache.org/confluence/display/WW/S2-057> vulnerability in
> Struts 2.0 being contained in DHIS 2 (specially Version 2.25).  I did not
> see any recent threads about this on DHIS 2 DEV or USERS mailing lists.
>
>
>
> Additional details on the vulnerability (and patch from Apache) is
> available here:
> https://krebsonsecurity.com/2018/08/experts-urge-rapid-patching-of-struts-bug/?_ke=eyJrbF9lbWFpbCI6ICJtYXR0aGV3LmRvbGxhY2tlckBnbWFpbC5jb20iLCAia2xfY29tcGFueV9pZCI6ICJlN1lDM3UifQ%3D%3D
>
>
>
> Many thanks in advance,
>
> -Stephen
> ___
> 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


Re: [Dhis2-devs] Query around OAuth implicit grant

2018-09-09 Thread Morten Olav Hansen
Hi

To support OpenID connect we would have to upgrade to Spring Security 5
(and that would also mean Spring 5), this is not a high priority for us
right now.

We don't have any plans to support DHIS2 being a OAuth2 client (you might
be able to do this in your own apps using a OAuth2 JS library maybe..)

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
Team Integration Lead
University of Oslo
http://www.dhis2.org


On Fri, Sep 7, 2018 at 5:54 AM Lorill Crees  wrote:

> Hi Morten,
>
> 1. What is the timeline for the DHIS 2 upgrade to the latest OAuth 2
> Spring libraries and the implementation of OpenID Connect?
>
> 2. Is there anything in the DHIS 2 roadmap for enabling DHIS 2 to be an
> Oauth2 client in order to authenticate against another Oauth2 provider?
>
> Thanks,
>
> Lorill
>
> On Fri, Aug 3, 2018 at 8:39 PM Morten Olav Hansen 
> wrote:
>
>> Hi Rajeswari & Gaurav
>>
>> We don't have any immediate plans to expand our OAuth2 implementation,
>> not until we upgrade to the latest OAuth2 Spring libraries (which require
>> spring 5), and then also implement OpenID Connect.
>>
>> That said, we do support authorization code which I think should serve
>> your purposes well? yes I know the implicit grant is a bit simpler to
>> setup, but I think the authorization code approach should work fine for you
>> also.
>>
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> Team Integration Lead
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Fri, Aug 3, 2018 at 5:07 PM, Rajeswari Gottipati <
>> rajes...@thoughtworks.com> wrote:
>>
>>> Hi DHIS,
>>>
>>> We have gone through DHIS OAuth documentation and found that DHIS has
>>> implemented Authorization code grant. We are planning to use DHIS OAuth
>>> in our application and our application is pure java script based.
>>>
>>> As our application is SPA (single page application) hence we are looking
>>> for implicit grant OAuth. Are there any plans to implement this in near
>>> future.
>>>
>>> Thanks,
>>> Rajeswari & Gaurav.
>>>
>>
>> ___
>> 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
>>
>
>
> --
> Lorill Crees
> Project Leader / Senior Developer
> 2Paths Solutions Ltd. <http://www.2paths.com>
>
> lcr...@2paths.com
> skype: lorill2paths
> (604) 689-4123 x 15
>
___
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


Re: [Dhis2-devs] Updating multiple events via the WebAPI

2018-08-28 Thread Morten Olav Hansen
Hi Farai

No, this is not possible (with PUT). What you can do, is to just do a POST,
but set strategy=CREATE_AND_UPDATE and that should give you what you want
(strategy=UPDATE if you are sure its all updates only)

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
Team Integration Lead
University of Oslo
http://www.dhis2.org


On Tue, Aug 28, 2018 at 11:57 AM Farai Mutero  wrote:

> Hi Team
>
> The DHIS2 Developer documentation discusses here
> <https://docs.dhis2.org/master/en/developer/html/webapi_tracker_api.html#webapi_events>,
> the ability to POST multiple events to the Web API in a single payload,
> which is absolutely useful. Is this feature also available for updating
> existing events via a PUT request, In DHIS2 2.27 and later?
>
> Regards
> --
> Farai Mutero
>
> ___
> 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


Re: [Dhis2-devs] DHIS2 tables of unknown origin/purpose

2018-08-27 Thread Morten Olav Hansen
I think the reason they have not been automatically removed is exactly
that... they might have been retired, but we don't want to remove just in
case you have something there of value... regarding all the tables, I don't
recognize all of them myself.. but translation has been replaced by other
tables, metadatafilter is not in use anymore, the rest like importobject...
I'm not sure if i have ever seen actually..

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
Team Integration Lead
University of Oslo
http://www.dhis2.org


On Mon, Aug 27, 2018 at 6:29 PM Calle Hedberg 
wrote:

> Morten,
>
> Sorry, I meant to say how do we know ALL of those tables are not relevant
> any more? I agree with you that they most likely are, but it is preferable
> to know for sure (and actually that such tables are automatically removed)
>
> Regards
> calle
>
> On Mon, 27 Aug 2018 at 13:27, Calle Hedberg 
> wrote:
>
>> Morten,
>>
>> That is the dilemma - how do we know those tables are irrelevant? And if
>> they are - why doesn't the startup routines (tablealteror etc) remove them?
>>
>> Regards
>> Calle
>>
>> On Mon, 27 Aug 2018 at 13:12, Morten Olav Hansen 
>> wrote:
>>
>>> Hi Calle
>>>
>>> I'm not going to start digging down in the HBM history we have... but if
>>> you see tables not relevant anymore, you can just delete them.. most of
>>> this is not relevant anymore I'm sure
>>>
>>> --
>>> Morten Olav Hansen
>>> Senior Engineer, DHIS 2
>>> Team Integration Lead
>>> University of Oslo
>>> http://www.dhis2.org
>>>
>>>
>>> On Sat, Aug 25, 2018 at 8:32 PM Calle Hedberg 
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> Further to the list above, here are six additional tables we have in
>>>> one instance that do not exist in the standard current 2.28 data model:
>>>>
>>>> *Query12*
>>>> table_name
>>>> importdatavalue
>>>> importobject
>>>> instanceconfig
>>>> metadatafilter
>>>> trackedentityattributegroup
>>>> translation
>>>>
>>>> On Fri, 24 Aug 2018 at 13:48, Calle Hedberg 
>>>> wrote:
>>>>
>>>>> Devs,
>>>>>
>>>>> While investigating the many duplicates and gaps found in many
>>>>> existing 2.28 instances - most of them created in version 2.18 - 2.22 and
>>>>> then upgraded over time - we also found a number of tables (and at least
>>>>> one field) that no longer exist in a "clean" 2.28 instance.
>>>>>
>>>>> The single "missing" field is the field trackedentityattributeid in
>>>>> table datadimensionitem. Is that field outdated?
>>>>>
>>>>> The tables are below - can somebody please indicate if these are
>>>>> outdated tables no longer in use? (Jason P - note a number of them relate
>>>>> to translations. You might know if they are redundant?)
>>>>>
>>>>> Regards
>>>>> Calle
>>>>>
>>>>> table_name
>>>>>
>>>>> dependencysynchstatus
>>>>> desynchstatus
>>>>> desynchstatus
>>>>> indicatorsynchstatus
>>>>> indicatorsynchstatus
>>>>> instance_businessrules
>>>>> maplayertranslations
>>>>> maplayertranslations
>>>>> metadatafiltertranslations
>>>>> metadatafiltertranslations
>>>>> metadatasynchlog
>>>>> organisationunitsynchstatus
>>>>> organisationunitsynchstatus
>>>>> predictororglevels
>>>>> programinstance_outboundsms
>>>>> programinstance_outboundsms
>>>>> programstageinstance_outboundsms
>>>>> programstageinstance_outboundsms
>>>>> programvalidation
>>>>> programvalidation
>>>>> programvalidation
>>>>> programvalidationtranslations
>>>>> programvalidationtranslations
>>>>> trackedentityattributegrouptranslations
>>>>> trackedentityattributegrouptranslations
>>>>> trackedentityaudit
>>>>> trackedentityinstancereminder
>>>>> trackedentityinstancereminder
>>>>> trackedentityinstancereminder
>>>>> trackedentityinstanceremindertranslations
>>>>> trackedentityinstanceremindertranslatio

Re: [Dhis2-devs] DHIS2 tables of unknown origin/purpose

2018-08-27 Thread Morten Olav Hansen
Hi Calle

I'm not going to start digging down in the HBM history we have... but if
you see tables not relevant anymore, you can just delete them.. most of
this is not relevant anymore I'm sure

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
Team Integration Lead
University of Oslo
http://www.dhis2.org


On Sat, Aug 25, 2018 at 8:32 PM Calle Hedberg 
wrote:

> Hi,
>
> Further to the list above, here are six additional tables we have in one
> instance that do not exist in the standard current 2.28 data model:
>
> *Query12*
> table_name
> importdatavalue
> importobject
> instanceconfig
> metadatafilter
> trackedentityattributegroup
> translation
>
> On Fri, 24 Aug 2018 at 13:48, Calle Hedberg 
> wrote:
>
>> Devs,
>>
>> While investigating the many duplicates and gaps found in many existing
>> 2.28 instances - most of them created in version 2.18 - 2.22 and then
>> upgraded over time - we also found a number of tables (and at least one
>> field) that no longer exist in a "clean" 2.28 instance.
>>
>> The single "missing" field is the field trackedentityattributeid in table 
>> datadimensionitem.
>> Is that field outdated?
>>
>> The tables are below - can somebody please indicate if these are outdated
>> tables no longer in use? (Jason P - note a number of them relate to
>> translations. You might know if they are redundant?)
>>
>> Regards
>> Calle
>>
>> table_name
>>
>> dependencysynchstatus
>> desynchstatus
>> desynchstatus
>> indicatorsynchstatus
>> indicatorsynchstatus
>> instance_businessrules
>> maplayertranslations
>> maplayertranslations
>> metadatafiltertranslations
>> metadatafiltertranslations
>> metadatasynchlog
>> organisationunitsynchstatus
>> organisationunitsynchstatus
>> predictororglevels
>> programinstance_outboundsms
>> programinstance_outboundsms
>> programstageinstance_outboundsms
>> programstageinstance_outboundsms
>> programvalidation
>> programvalidation
>> programvalidation
>> programvalidationtranslations
>> programvalidationtranslations
>> trackedentityattributegrouptranslations
>> trackedentityattributegrouptranslations
>> trackedentityaudit
>> trackedentityinstancereminder
>> trackedentityinstancereminder
>> trackedentityinstancereminder
>> trackedentityinstanceremindertranslations
>> trackedentityinstanceremindertranslations
>> validationrulegroupusergroupstoalert
>> validationrulegroupusergroupstoalert
>> validationrulesynchstatus
>> validationrulesynchstatus
>>
>> --
>>
>> ***
>>
>> Calle Hedberg
>>
>> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
>>
>> Tel/fax (home): +27-21-685-6472
>>
>> Cell: +27-82-853-5352
>>
>> Iridium SatPhone: +8816-315-19119
>>
>> Email: calle.hedb...@gmail.com
>>
>> Skype: calle_hedberg
>>
>> ***
>>
>>
>
> --
>
> ***
>
> Calle Hedberg
>
> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
>
> Tel/fax (home): +27-21-685-6472
>
> Cell: +27-82-853-5352
>
> Iridium SatPhone: +8816-315-19119
>
> Email: calle.hedb...@gmail.com
>
> Skype: calle_hedberg
>
> ***
>
> ___
> 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


Re: [Dhis2-devs] [Dhis2-users] User roles un-assigned some authorities after restarting the server

2018-08-23 Thread Morten Olav Hansen
Ok, so it might be a different issue... we had an issue sneak in a few days
ago that didn't properly save the authority changes.. maybe Viet can comment

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
Team Integration Lead
University of Oslo
http://www.dhis2.org


On Thu, Aug 23, 2018 at 3:17 PM Em Le Hong  wrote:

> Hi Morten,
>
> I can't reproduce this issue on DHIS2 demo servers because we need to
> restart the server.
>
> On Thu, Aug 23, 2018 at 3:07 PM Morten Olav Hansen 
> wrote:
>
>> Hi Em, please try and see if you can reproduce on our play servers
>>
>> https://play.dhis2.org/2.29/
>> https://play.dhis2.org/2.30/
>>
>> Also adding in Viet, who made some fixes I think might be relevant to
>> this..
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> Team Integration Lead
>> University of Oslo
>> http://www.dhis2.org
>>
>>
>> On Thu, Aug 23, 2018 at 11:02 AM Em Le Hong 
>> wrote:
>>
>>> Hi all,
>>>
>>> Does anyone notice that DHIS2 2.29 generated some new authorities for
>>> user roles like in screenshots below
>>> [image: image.png]
>>> When we assigned these user roles to a user, it works fine. But these
>>> authorities will be un-assigned from user role after we restart the server.
>>>
>>> Is it a bug or something else? Because we need to restart the server to
>>> test, so I can't test on DHIS2 demo server to compare.
>>>
>>> I created a ticket on Jira for Dev to check if it is the same with Demo
>>> https://jira.dhis2.org/browse/DHIS2-4462
>>>
>>> Sincerely,
>>>
>>> --
>>> *Em Le Hong*
>>> DHIS2 Implementation| *HISP Vietnam *
>>> em.hispviet...@gmail.com | *Skype:* em.hispviet...@gmail.com
>>>
>>>
>>>
>>>
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-users
>>> Post to : dhis2-us...@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>
>
> --
> *Em Le Hong*
> DHIS2 Implementation| *HISP Vietnam *
> em.hispviet...@gmail.com | *Skype:* em.hispviet...@gmail.com
>
>
>
>
>
>
___
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


Re: [Dhis2-devs] [Dhis2-users] User roles un-assigned some authorities after restarting the server

2018-08-23 Thread Morten Olav Hansen
Hi Em, please try and see if you can reproduce on our play servers

https://play.dhis2.org/2.29/
https://play.dhis2.org/2.30/

Also adding in Viet, who made some fixes I think might be relevant to this..

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
Team Integration Lead
University of Oslo
http://www.dhis2.org


On Thu, Aug 23, 2018 at 11:02 AM Em Le Hong 
wrote:

> Hi all,
>
> Does anyone notice that DHIS2 2.29 generated some new authorities for user
> roles like in screenshots below
> [image: image.png]
> When we assigned these user roles to a user, it works fine. But these
> authorities will be un-assigned from user role after we restart the server.
>
> Is it a bug or something else? Because we need to restart the server to
> test, so I can't test on DHIS2 demo server to compare.
>
> I created a ticket on Jira for Dev to check if it is the same with Demo
> https://jira.dhis2.org/browse/DHIS2-4462
>
> Sincerely,
>
> --
> *Em Le Hong*
> DHIS2 Implementation| *HISP Vietnam *
> em.hispviet...@gmail.com | *Skype:* em.hispviet...@gmail.com
>
>
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> 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


Re: [Dhis2-devs] [Dhis2-users] HOW TO DOWNLOAD TEI'S FROM 2.29 TRACKER CAPTURE

2018-08-22 Thread Morten Olav Hansen
I mean the name of your actual .war file, not the version of DHIS2... since
you are getting a 404, it means you are pointing to an invalid URL, and
that error is coming from tomcat and not dhis2.. which means you are
probably not pointing to the right path on your tomcat server.

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
Team Integration Lead
University of Oslo
http://www.dhis2.org


On Wed, Aug 22, 2018 at 2:42 PM Stanley Kalyati  wrote:

> Dear Morten,
>
> Yes it is 2.29.
>
>
>
> On Wed, Aug 22, 2018 at 9:29 AM Morten Olav Hansen 
> wrote:
>
>> Hi
>>
>> Is your war file named 2.29? if not the start of that path is wrong (we
>> have 2.29 2.28 etc on your play server to be able to have multiple
>> instances..)
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> Team Integration Lead
>> University of Oslo
>> http://www.dhis2.org
>>
>>
>> On Wed, Aug 22, 2018 at 2:13 PM Markus Bekken 
>> wrote:
>>
>>> Hey again!
>>> Can you send me the full link you are trying, and also the link to the
>>> login page of your dhis instance?
>>>
>>> Markus
>>>
>>> 22. aug. 2018 kl. 08:57 skrev Stanley Kalyati :
>>>
>>> Hi Markus,
>>>
>>> I have tried wgoing directly to the API but i keep getting this error
>>> What could be the problem.I am using version 2.29
>>> HTTP Status 404 - /2.29/api/29/trackedEntityInstances/query.csv
>>>
>>> On Thu, Jul 5, 2018 at 9:32 AM Markus Bekken  wrote:
>>>
>>>> Hey Stanley,
>>>> thanks for the feedback.
>>>>
>>>> You can go directly to the API and get the CSV:
>>>>
>>>> https://play.dhis2.org/2.28/api/28/trackedEntityInstances/query.csv?ou=ImspTQPwCqd=DESCENDANTS=WSGAb5XwJ3Y
>>>>
>>>> - ou would be the UID of your top/root organization unit.
>>>> - program would be the uid of the program you want to download TEIs for.
>>>>
>>>> You can perhaps create a "external resource" and put this link on a
>>>> dashboard for use of your end users.
>>>>
>>>> Let me know if this helps :)
>>>>
>>>> Markus
>>>>
>>>> 5. jul. 2018 kl. 10:18 skrev Stanley Kalyati :
>>>>
>>>> Hey Markus,
>>>>
>>>> This makes alot of sense though.
>>>>
>>>> However,my issue is when i want to download the entire list of TEI's
>>>> into an excel or CV for other analysis outside DHIS2,i can not do
>>>> so.Initially i would simply List All and download the list of TEI's.
>>>>
>>>> If there is a way i can do that,then thats fine.
>>>>
>>>> Thank you
>>>>
>>>> Stanley
>>>>
>>>> On Thu, Jul 5, 2018 at 9:06 AM Markus Bekken  wrote:
>>>>
>>>>> Hey Stanley,
>>>>> You are right - the "List all" button is no longer there in the
>>>>> reworked UI of 2.29. We are actively working on making the Tracker data
>>>>> more secure, and the use case for the list all function was perhaps not
>>>>> understood properly by us when we designed 2.29. Can you let us know a bit
>>>>> about your use case? Will the end user click the button to list all TEIs 
>>>>> in
>>>>> the entire system and start paging through the list?
>>>>>
>>>>> Best regards,
>>>>> Markus
>>>>>
>>>>>
>>>>> 4. jul. 2018 kl. 17:25 skrev Stanley Kalyati :
>>>>>
>>>>> Hi Marta,
>>>>>
>>>>> Actually when i select an OU i am able to see the TEI's but to display
>>>>> all TEI's across all OU's like we used to in versions 2.28 below where we
>>>>> could select 'List All' and all TEI's could be displayed,i dont see it in
>>>>> 2.29.
>>>>>
>>>>> Any ideas
>>>>>
>>>>> On Wed, Jul 4, 2018 at 4:18 PM Marta Vila  wrote:
>>>>>
>>>>>> Hi Stanley,
>>>>>>
>>>>>> not seeing yout TEI's could be caused by the "Display front page
>>>>>> list" parameter not being marked.
>>>>>> It is in the program details step when you create or edit your
>>>>>> program.
>>>>>>
>>>>>> Cheers,
>>>>>> Marta
>>>>>>
>>>>>> On 4 

Re: [Dhis2-devs] [Dhis2-users] HOW TO DOWNLOAD TEI'S FROM 2.29 TRACKER CAPTURE

2018-08-22 Thread Morten Olav Hansen
Hi

Is your war file named 2.29? if not the start of that path is wrong (we
have 2.29 2.28 etc on your play server to be able to have multiple
instances..)

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
Team Integration Lead
University of Oslo
http://www.dhis2.org


On Wed, Aug 22, 2018 at 2:13 PM Markus Bekken 
wrote:

> Hey again!
> Can you send me the full link you are trying, and also the link to the
> login page of your dhis instance?
>
> Markus
>
> 22. aug. 2018 kl. 08:57 skrev Stanley Kalyati :
>
> Hi Markus,
>
> I have tried wgoing directly to the API but i keep getting this error
> What could be the problem.I am using version 2.29
> HTTP Status 404 - /2.29/api/29/trackedEntityInstances/query.csv
>
> On Thu, Jul 5, 2018 at 9:32 AM Markus Bekken  wrote:
>
>> Hey Stanley,
>> thanks for the feedback.
>>
>> You can go directly to the API and get the CSV:
>>
>> https://play.dhis2.org/2.28/api/28/trackedEntityInstances/query.csv?ou=ImspTQPwCqd=DESCENDANTS=WSGAb5XwJ3Y
>>
>> - ou would be the UID of your top/root organization unit.
>> - program would be the uid of the program you want to download TEIs for.
>>
>> You can perhaps create a "external resource" and put this link on a
>> dashboard for use of your end users.
>>
>> Let me know if this helps :)
>>
>> Markus
>>
>> 5. jul. 2018 kl. 10:18 skrev Stanley Kalyati :
>>
>> Hey Markus,
>>
>> This makes alot of sense though.
>>
>> However,my issue is when i want to download the entire list of TEI's into
>> an excel or CV for other analysis outside DHIS2,i can not do so.Initially i
>> would simply List All and download the list of TEI's.
>>
>> If there is a way i can do that,then thats fine.
>>
>> Thank you
>>
>> Stanley
>>
>> On Thu, Jul 5, 2018 at 9:06 AM Markus Bekken  wrote:
>>
>>> Hey Stanley,
>>> You are right - the "List all" button is no longer there in the reworked
>>> UI of 2.29. We are actively working on making the Tracker data more secure,
>>> and the use case for the list all function was perhaps not understood
>>> properly by us when we designed 2.29. Can you let us know a bit about your
>>> use case? Will the end user click the button to list all TEIs in the entire
>>> system and start paging through the list?
>>>
>>> Best regards,
>>> Markus
>>>
>>>
>>> 4. jul. 2018 kl. 17:25 skrev Stanley Kalyati :
>>>
>>> Hi Marta,
>>>
>>> Actually when i select an OU i am able to see the TEI's but to display
>>> all TEI's across all OU's like we used to in versions 2.28 below where we
>>> could select 'List All' and all TEI's could be displayed,i dont see it in
>>> 2.29.
>>>
>>> Any ideas
>>>
>>> On Wed, Jul 4, 2018 at 4:18 PM Marta Vila  wrote:
>>>
>>>> Hi Stanley,
>>>>
>>>> not seeing yout TEI's could be caused by the "Display front page list"
>>>> parameter not being marked.
>>>> It is in the program details step when you create or edit your program.
>>>>
>>>> Cheers,
>>>> Marta
>>>>
>>>> On 4 July 2018 at 16:11, Stanley Kalyati  wrote:
>>>>
>>>>> Anyone to assist here?
>>>>>
>>>>> On Fri, Jun 29, 2018 at 11:56 AM Stanley Kalyati 
>>>>> wrote:
>>>>>
>>>>>> With other versions of DHIS2,i would simply click on List All and all
>>>>>> TEI regardless of OU registered from,they would all appear and i would
>>>>>> download and review i may.
>>>>>>
>>>>>> How can i do this in 2.29?
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> Stanley
>>>>>>
>>>>>
>>>>> ___
>>>>> 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-users
>>> Post to : dhis2-us...@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>>
>>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> 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


Re: [Dhis2-devs] Need help to identify proper authorities to make API calls in DHIS

2018-08-16 Thread Morten Olav Hansen
Hi

This sounds like a bug to me (seems we are not properly filtering the
paging component of the result). Would you mind filing a issue at
jira.dhis2.org ? (if you have already, please let me know the issue number)

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
Team Integration Lead
University of Oslo
http://www.dhis2.org


On Thu, Aug 16, 2018 at 2:15 PM Rajeswari Gottipati <
rajes...@thoughtworks.com> wrote:

> Hi DHIS Team,
>
> Can you please respond to our query.
>
> On Mon, Aug 13, 2018 at 3:31 PM, Rajeswari Gottipati <
> rajes...@thoughtworks.com> wrote:
>
>> Hi DHIS Team,
>>
>> We are planning to use DHIS OAuth in our application.
>> We want to make API calls to view/add/update/delete the events,
>> programs, dataSets, dataValues etc. For this we want to figure out minimum
>> list of authorities so that access token generated from the user's login
>> detail should be able to make api calls.
>>
>> *Requirement* :
>> We require a user login that can make api calls to fetch data, but they
>> should not be able to update data directly through DHIS.
>>
>> *What we tried : *
>> We tried to assign selective authorities to the particular user role and
>> we have following observation :
>> 1. When we assign no authorities to the user role, and make api call for
>> events we got below response
>>
>>
>> *{"pager":{"page":1,"pageCount":2,"total":1365,"pageSize":1000},"events":[]}%*
>>
>> NO events came in the response json in spite of events present in the
>> system.
>>
>> 2. When we assign all authorities except '*ALL*' to the user role, and
>> make api call for events we got the same response as above.
>>
>>
>> *{"pager":{"page":1,"pageCount":2,"total":1365,"pageSize":1000},"events":[]}%*
>>
>> 3. When we assign the authority '*ALL*' to the user role, and make api
>> call for events we were able to get all the events. This also enables the
>> user to make update data directly from DHIS.
>>
>> Could you please help us to figure out the minimum authority to make API
>> calls?
>>
>> Thanks,
>> Rajeswari & Gaurav.
>>
>
>
>
> --
> Rajeswari Gottipati
> Sr Consultant
> Email rajes...@thoughtworks.com
> Telephone +91 9949292931 <+91%209949292931>
> [image: ThoughtWorks]
> <http://www.thoughtworks.com/?utm_campaign=rajeswari-gottipati-signature_medium=email_source=thoughtworks-email-signature-generator>
>
___
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


Re: [Dhis2-devs] User PUT issue

2018-08-14 Thread Morten Olav Hansen
Please also be aware that the User object is very much a "special" type,
and does not always follow the rules of other types in the system
(dataElements, indicators etc).

I would recommend to be very careful with partial updating of the user
object, and instead always use the full payload required (an example full
payload can be found in the docs)

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
Team Integration Lead
University of Oslo
http://www.dhis2.org


On Tue, Aug 14, 2018 at 11:30 PM Vladimer Shioshvili 
wrote:

> Hey Greg,
>
> The section of the documentation you included has a reference to the user
> object schema, which specifies that for the user object only firstName and
> surname are required (/api/schemas/user). I've just tried in 2.27 (not sure
> if things changed in 2.29) and this is the minimal package i was able to
> use to update the user object:
>
> {
> "id": "Vx7Vgp1I3EK",
> "surname": "Doe",
> "firstName": "John"
> }
>
> However, if you include the userCredentials object, you have to include
> the id, otherwise it attempts to create a new one and ends up throwing the
> already exists. Similarly, /api/schemas/userCredentials has the details
> about minimum requirement, and that is username, but as you are doing an
> update you have to specify the id as well.
>
> PUT of the entire object with save date and the rest works for me too.
>
> Vlad
>
> On Tue, Aug 14, 2018 at 12:17 PM Greg Wilson 
> wrote:
>
>> Thank you Hendrik.  PATCH is the way to go for most objects.
>> Unfortunately (per or discussion and here for posterity) it does not
>> currently work with user.userGroupos and user.userCredentials.userRoles. I
>> will need to make a clean copy of the user object and PUT.
>>
>> *Gregory Wilson*
>>
>> On Tue, Aug 14, 2018 at 8:16 AM Hendrik de Graaf 
>> wrote:
>>
>>> Hi Gregory,
>>>
>>> For updating a single field on a user record, I would try doing a PATCH
>>> request with exactly the same payload as you were doing.
>>>
>>> I do this type of request to disable a user in the User Management app,
>>> so it should work.
>>>
>>> Best regards,
>>> Hendrik
>>> On 14 Aug 2018, 11:16 +0200, Greg Wilson ,
>>> wrote:
>>>
>>> Can someone tell me what I am doing wrong here? According to the docs (
>>> https://docs.dhis2.org/2.29/en/developer/html/dhis2_developer_manual_full.html#webapi_users_create_update)
>>> this should work to update a user's account:
>>>
>>> curl -X PUT -u "admin:district" -d @u.json -H "Content-Type:
>>> application/json" https://play.dhis2.org/2.26/api/26/users/DXyJmlo9rge
>>>
>>> In this case I am using {"firstName":"ATEST"} as the u.json file.
>>> Unfortunately I keep receiving errors such as:
>>>
>>> "Missing required property `surname`."
>>>
>>> If I send a more complete user object it complains that I am missing the
>>> userCredentials.username property. When I add that, it complains that user
>>> already exists.
>>>
>>> *Gregory Wilson*
>>> ___
>>> 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
>>
> ___
> 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


Re: [Dhis2-devs] [Dhis2-users] Delete Validation Rules

2018-08-07 Thread Morten Olav Hansen
Hi Em

I'm not sure if there is any UI for deleting validation results, but you
can do it yourself in the database.

The validationresults are located in the table "validationresult", and it
has a column called "validationruleid" which links to your validation rules.

So you need to find that validation rule in the "validationrule" table, and
use that "validationruleid" to delete the correct rows from the
"validationresult" table.

"DELETE FROM validationresult WHERE validationruleid=??"

This does sound like a bug though, so please file one in JIRA

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
Team Integration Lead
University of Oslo
http://www.dhis2.org

On Tue, Aug 7, 2018 at 5:07 PM, Em Le Hong  wrote:

> Dear all,
>
> DHIS 2.29
>
> I try to delete a validation rule on my database but the system response a
> message:
> Could not delete due to association with another object: ValidationResult
>
> This mean we need to delete Validation Result before delete Validation Rule
>
> Does anyone know how to delete Validation Result, if you don't mind please
> share.
>
> Thanks,
> --
> *Em Le Hong*
> DHIS2 Implementation| *HISP Vietnam *
> em.hispviet...@gmail.com | *Skype:* em.hispviet...@gmail.com
>
>
>
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> 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


Re: [Dhis2-devs] No option to select format in 2.30 metadata import

2018-08-06 Thread Morten Olav Hansen
Hi Nick

This is being worked on, hopefully it should be OK soon.

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
Team Integration Lead
University of Oslo
http://www.dhis2.org

On Tue, Aug 7, 2018 at 4:43 AM, Shurajit Dutta 
wrote:

> Hi
>
> There is currently no option to select the file format of the metadata you
> are importing in 2.30.
>
> Is this by design?
>
> [image: image.png]
>
> I cant seem to get any metadata to import successfully at the moment.
>
> Thanks,
> Nick
>
> --
> Shurajit Dutta (MPH, MHI)
> Health Information Systems Adviser
>
> ___
> 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


Re: [Dhis2-devs] Query around OAuth implicit grant

2018-08-03 Thread Morten Olav Hansen
Hi Rajeswari & Gaurav

We don't have any immediate plans to expand our OAuth2 implementation, not
until we upgrade to the latest OAuth2 Spring libraries (which require
spring 5), and then also implement OpenID Connect.

That said, we do support authorization code which I think should serve your
purposes well? yes I know the implicit grant is a bit simpler to setup, but
I think the authorization code approach should work fine for you also.


-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
Team Integration Lead
University of Oslo
http://www.dhis2.org

On Fri, Aug 3, 2018 at 5:07 PM, Rajeswari Gottipati <
rajes...@thoughtworks.com> wrote:

> Hi DHIS,
>
> We have gone through DHIS OAuth documentation and found that DHIS has
> implemented Authorization code grant. We are planning to use DHIS OAuth
> in our application and our application is pure java script based.
>
> As our application is SPA (single page application) hence we are looking
> for implicit grant OAuth. Are there any plans to implement this in near
> future.
>
> Thanks,
> Rajeswari & Gaurav.
>
___
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


Re: [Dhis2-devs] [Urgent] Unable to use highchart plugin on customapps

2018-07-31 Thread Morten Olav Hansen
Hi Teja

I'm not sure what is happening with our CDN, but we have added security
exceptions to our app hosted plugins, so you should be able to use them
directly.

https://play.dhis2.org/dev/dhis-web-visualizer/chart.js
https://play.dhis2.org/dev/dhis-web-pivot/reporttable.js
https://play.dhis2.org/dev/dhis-web-maps/map.js
https://play.dhis2.org/dev/dhis-web-event-visualizer/eventchart.js
https://play.dhis2.org/dev/dhis-web-event-reports/eventreport.js

(I copied these from our play server, but you would of course need to
change the URL to your own server)

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
Team Integration Lead
University of Oslo
http://www.dhis2.org

On Tue, Jul 31, 2018 at 5:54 PM, Teja Medida  wrote:

> Hi team,
>
> We have raised a JIRA ticket -DHIS2-4337
> <https://jira.dhis2.org/browse/DHIS2-4337> regarding this issue today.
> The ticket contains all the details, we were hoping to get a response on
> this, as this is a blocker for us.
> Please look into it and let us know if any action is needed from our end.
>
>
> Regards,
> Teja Medida
>
> On Tue, Jul 24, 2018 at 4:39 PM, Kaustav Chakraborty <
> kaust...@thoughtworks.com> wrote:
>
>> Hello team,
>> Since we are migrating to 2.30, we found this issue as high priority.
>> Your help is really appreciable on the same note. Let us know if you need
>> further information.
>>
>>
>> Regards,
>>
>> *Kaustav Chakraborty*
>> Application Developer
>> Email kaust...@thoughtworks.com
>> Telephone +91 91009 60526
>> [image: ThoughtWorks]
>> <http://www.thoughtworks.com/?utm_campaign=kaustav-chakraborty-signature_medium=email_source=thoughtworks-email-signature-generator>
>>
>>
>> On Fri, Jul 20, 2018 at 10:10 AM Kaustav Chakraborty <
>> kaust...@thoughtworks.com> wrote:
>>
>>> Hi team,
>>>
>>> It was amazing with the wonderful feature list which came up with 2.30.
>>> On the same note, we are working with a customapp where we are trying to
>>> integrate highcharts. We went through this
>>> <https://docs.dhis2.org/2.29/en/developer/html/dhis2_developer_manual_full.html#webapi_plugins>
>>> doc, and tried with both CDN and in app plugin for *reportable.js*. For
>>> both we are getting *404 Not Found error.*
>>>
>>> *Platform: *DHIS2 2.30 / DHIS2 2.29
>>> We tried with,
>>>
>>>- *http://domain.name/v227/plugin/reporttable.js
>>><http://domain.name/v227/plugin/reporttable.js>* *(Not Found)*
>>>- *http://domain.name/v229/plugin/reporttable.js
>>><http://domain.name/v229/plugin/reporttable.js> (Not Found)*
>>>- *https://dhis2-cdn.org/v227/plugin/reporttable.js
>>><https://dhis2-cdn.org/v227/plugin/reporttable.js>* *(Bad Gateway)*
>>>
>>>
>>> Could you suggest what is the workaround for the same, and what we are
>>> missing. It would be really helpful.
>>>
>>> We are looking forward to hear you.
>>>
>>>
>>> Regards,
>>>
>>> *Kaustav Chakraborty*
>>> Application Developer
>>> Email kaust...@thoughtworks.com
>>> Telephone +91 91009 60526
>>> [image: ThoughtWorks]
>>> <http://www.thoughtworks.com/?utm_campaign=kaustav-chakraborty-signature_medium=email_source=thoughtworks-email-signature-generator>
>>>
>>
>
___
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


Re: [Dhis2-devs] [Dhis2-users] dhis version 2.30 is released

2018-07-16 Thread Morten Olav Hansen
If anyone played around with Kafka, or gain any kind of experience with
it... I'm very eager to know :) just reply to me directly (any issues, or
whatever)

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
Team Integration Lead
University of Oslo
http://www.dhis2.org

On Fri, Jul 13, 2018 at 2:56 AM, Simon Muyambo  wrote:

> Lars and development team, we  appreciate all the hard work that went into
> this release
>
>
>
> Regards
>
> Simon Muyambo
>
>
>
> *From:* Dhis2-users  launchpad.net> *On Behalf Of *Lars Helge Øverland
> *Sent:* Thursday, 12 July 2018 1:43 PM
> *To:* DHIS 2 Users list ; DHIS 2
> Developers list 
> *Subject:* [Dhis2-users] dhis version 2.30 is released
>
>
>
>
>
> Hi all,
>
>
>
> DHIS version 2.30 is out with many new features, apps and improvements.
>
>
>
> *Login with admin/district on the **demo* <http://play.dhis2.org/2.30/>*
> system.*
>
>
>
> ANALYTICS FEATURES
>
> ---
>
>
>
> *Linkable dashboards:* Individual dashboards can now be linked to through
> the URL. This makes it easier to share dashboards through email and chats.
>
>
>
> Screenshot
> <https://s3-eu-west-1.amazonaws.com/content.dhis2.org/releases/screenshots/30/linkable-dashboards.png>
> | Demo
> <https://play.dhis2.org/2.30/dhis-web-dashboard/index.html#/TAMlzYkstb7>
>
>
>
> *Mentions in interpretations and comments*: You can now mention users in
> interpretations and comments by using @. Users who are mentioned will
> receive a notification in the messaging app. Notifications over email and
> SMS can also be enabled through user settings. Interpretations can be
> written from the right-side panel.
>
>
>
> Screenshot
> <https://s3-eu-west-1.amazonaws.com/content.dhis2.org/releases/screenshots/30/mentions-interpretations.png>
> | Demo <https://play.dhis2.org/2.30/dhis-web-visualizer/?id=pRBQ77mhEJ8>
>
>
>
> *Subscribe to analytics items:*  You can now subscribe to analytics
> items. Subscribing means that you will receive a notification whenever a
> new interpretation or comment is made for the analytical object you
> subscribed to. Look out for the bell icon.
>
>
>
> Screenshot
> <https://s3-eu-west-1.amazonaws.com/content.dhis2.org/releases/screenshots/30/favorite-subscribe.png>
> | Demo
> <https://play.dhis2.org/2.30/dhis-web-visualizer/index.html?id=DkPKc1EUmC2>
>
>
>
> *Interpretations panel in maps:* The maps app now has an interpretations
> panel to the right which lets you write new interpretations and view
> existing ones for a map.
>
>
>
> Screenshot
> <https://s3-eu-west-1.amazonaws.com/content.dhis2.org/releases/screenshots/30/maps-interpretations.png>
> | Demo
> <https://play.dhis2.org/2.30/dhis-web-maps/index.html?id=ytkZY3ChM6J>
>
>
>
> *File menu in maps:* The maps app now supports the file menu you are used
> to from pivot table and chart apps.
>
>
>
> Screenshot
> <https://s3-eu-west-1.amazonaws.com/content.dhis2.org/releases/screenshots/30/maps-file-menu.png>
> | Demo <https://play.dhis2.org/2.30/dhis-web-maps/>
>
>
>
> *Buffers in event map layers:* You can now render buffers for events in
> the maps app. This is useful e.g. for visualizing coverage of health
> services. Zoom in to see buffers on the demo.
>
>
>
> Screenshot
> <https://s3-eu-west-1.amazonaws.com/content.dhis2.org/releases/screenshots/30/map-event-buffers.png>
> | Demo
> <https://play.dhis2.org/2.30/dhis-web-maps/index.html?id=vIZ3V7HJ6T2>
>
>
>
>
>
> *Tracked entity thematic layer: *The maps app now provides a thematic
> layer for viewing tracked entities. Users can choose the the tracked entity
> type, program, active or complete, period of last updated, organizational
> unit, and style including an optional buffer.
>
>
>
> Screenshot 1
> <https://s3-eu-west-1.amazonaws.com/content.dhis2.org/releases/screenshots/30/maps-add-tei-layer.png>
> | 2
> <https://s3-eu-west-1.amazonaws.com/content.dhis2.org/releases/screenshots/30/tei-layer-selection.png>
> | 3
> <https://s3-eu-west-1.amazonaws.com/content.dhis2.org/releases/screenshots/30/tei-layer.png>
> | Demo
> <https://play.dhis2.org/2.30/dhis-web-maps/index.html?id=b4yDuYQap7I>
>
>
>
> *Style by data items in event maps*: In the maps app you can now style
> each event layer independently, i.e. chose the color and size of event
> points and clusters.
>
>
>
> Screenshot 1
> <https://s3-eu-west-1.amazonaws.com/content.dhis2.org/releases/screenshots/30/event-maps-style-per-item.png>
> | 2
> <https://s3-eu-west-1.amazonaws.com/content.dhis

Re: [Dhis2-devs] [Dhis2-users] Display front page list not working

2018-07-16 Thread Morten Olav Hansen
Hi

As its summer holidays in Norway replies might be slow, would you mind
filing an issue with JIRA? jira.dhis2.org just so that it doesn't get lost
when people are back again (we have a good staff the redirects these issues
to the relevant person)


-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
Team Integration Lead
University of Oslo
http://www.dhis2.org

On Mon, Jul 16, 2018 at 10:11 PM, Kamugunga Adolphe 
wrote:

> Hi Does anybody knows reasons?
> We used to have in the previous versions, the list of all reported cases
> at the national level, line-listed on the front page after selecting org
> unit. After upgrading our tracker to 2.29  this functionality is there by
> can only list cases uniquely for reporting units  not to higher orgunits.
> This functionality helps to immediately at national level  know the number
> of  active, complete, cancelled enrollments of cases  without passing
> through event reports.
>
> Is it no-longer supported or there are sharings need to be made?
>
> Regards,
>
>
> *Adolphe Kamugunga*
> *MIS Technical Advisor*
> Mobile: +250 788 740 578
> Email:kaa...@gmail.com
> Skype: ka.adolphe
>  RWANDA
>
>
> On 12 July 2018 at 13:43, Lars Helge Øverland  wrote:
>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *Hi all,DHIS version 2.30 is out with many new features, apps and
>> improvements.Login with admin/district on the demo
>> <http://play.dhis2.org/2.30/> system.ANALYTICS FEATURES---Linkable
>> dashboards: Individual dashboards can now be linked to through the URL.
>> This makes it easier to share dashboards through email and chats.Screenshot
>> <https://s3-eu-west-1.amazonaws.com/content.dhis2.org/releases/screenshots/30/linkable-dashboards.png>
>> | Demo
>> <https://play.dhis2.org/2.30/dhis-web-dashboard/index.html#/TAMlzYkstb7>Mentions
>> in interpretations and comments: You can now mention users in
>> interpretations and comments by using @. Users who are mentioned will
>> receive a notification in the messaging app. Notifications over email and
>> SMS can also be enabled through user settings. Interpretations can be
>> written from the right-side panel.Screenshot
>> <https://s3-eu-west-1.amazonaws.com/content.dhis2.org/releases/screenshots/30/mentions-interpretations.png>
>> | Demo
>> <https://play.dhis2.org/2.30/dhis-web-visualizer/?id=pRBQ77mhEJ8>Subscribe
>> to analytics items:  You can now subscribe to analytics items. Subscribing
>> means that you will receive a notification whenever a new interpretation or
>> comment is made for the analytical object you subscribed to. Look out for
>> the bell icon.Screenshot
>> <https://s3-eu-west-1.amazonaws.com/content.dhis2.org/releases/screenshots/30/favorite-subscribe.png>
>> | Demo
>> <https://play.dhis2.org/2.30/dhis-web-visualizer/index.html?id=DkPKc1EUmC2>Interpretations
>> panel in maps: The maps app now has an interpretations panel to the right
>> which lets you write new interpretations and view existing ones for a
>> map.Screenshot
>> <https://s3-eu-west-1.amazonaws.com/content.dhis2.org/releases/screenshots/30/maps-interpretations.png>
>> | Demo
>> <https://play.dhis2.org/2.30/dhis-web-maps/index.html?id=ytkZY3ChM6J>File
>> menu in maps: The maps app now supports the file menu you are used to from
>> pivot table and chart apps.Screenshot
>> <https://s3-eu-west-1.amazonaws.com/content.dhis2.org/releases/screenshots/30/maps-file-menu.png>
>> | Demo <https://play.dhis2.org/2.30/dhis-web-maps/#>Buffers in event map
>> layers: You can now render buffers for events in the maps app. This is
>> useful e.g. for visualizing coverage of health services. Zoom in to see
>> buffers on the demo.Screenshot
>> <https://s3-eu-west-1.amazonaws.com/con

Re: [Dhis2-devs] Post on Geofeatures API end point

2018-07-16 Thread Morten Olav Hansen
Hi Barnabas

I don't know these APIs very well, but from looking at the code it seems
these are READ only (so any update have to go through the
/api/organisationUnits endpoint)

Maybe Lars of Bjørn can clarify

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
Team Integration Lead
University of Oslo
http://www.dhis2.org

On Fri, Jul 13, 2018 at 5:09 PM, Barnabas Akumba 
wrote:

> Hello Devs,
>
> I downloaded some coordinates from one of my instances in json format. I
> have been trying to update another instance with the downloaded coordinates
> by interacting with the geoFeatures API end point using the call below:
>  curl -d @geoFeatures.json "https://staging.xxx.xxx.
> xx/dhis/api/26/geoFeatures" -H "Content-Type:application/json" -u
> *:*** -v
>
> The output is the error below:
> [image: image.png]
>
> Am I getting anything wrong? Is it that the geoFeatures end point doesn't
> accept such operations?
>
> Your comments/advice will be appreciated.
>
> Regards
>
> --
>
> Barnabas AKUMBA
>
> *Mobile:* +2348036195778
> *Skype:* barnabas.akumba
>
> ___
> 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


Re: [Dhis2-devs] License information for HighCharts

2018-07-16 Thread Morten Olav Hansen
Hi there

We were lucky enough to get a OEM license for HighCharts, how this relates
to third party apps.. I don't know, only Lars or Jan knows the details of
that. From my understanding though, as long as its hosted inside of DHIS2
(and using the same files) you are good to go.


-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
Team Integration Lead
University of Oslo
http://www.dhis2.org

On Mon, Jul 16, 2018 at 8:05 PM, Rajeswari Gottipati <
rajes...@thoughtworks.com> wrote:

> Hi DHIS Team,
>
> We are planning to use HighCharts in our web application and we found that
> HighCharts library is available under different licenses depending on
> whether it is intended for commercial/government use, or for a personal or
> non-profit project. As DHIS is already using highcharts, we want to know
> how DHIS got the access to HighCharts and which kind of license it is using?
>
> Thanks,
> Rajeswari, Gaurav
>
___
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


Re: [Dhis2-devs] 2.29/2.30 WARNING - do not use Maintenance->ClearAnalyticsTables & parameter "-T analytics*" for database dumps

2018-07-12 Thread Morten Olav Hansen
Hi Calle

I have only been aware of this bug for a few days (when it hit us in Lao),
and then we have both release and summer holidays going on. I agree the
response is not ideal, but its not the easiest time for fixing bug issues.

We are working hard on fixing this now (it might take 1-2 days), and at
that time we will recommend that everyone updates their 229 and 230
instances (I will leave that up to Stian when he is ready)

This was a design issue, and they are not that easy to fix (without causing
havoc internally), but hopefully we have learned from this and we won't
name domain tables analytics* anymore.

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
Team Integration Lead
University of Oslo
http://www.dhis2.org

On Thu, Jul 12, 2018 at 6:33 PM, Calle Hedberg 
wrote:

> Hi
>
> I'm glad it's being addressed - but I am less happy to hear you are aware
> of it but haven't said anything to the community...  These type of bugs
> causes havoc, and waste a lot of time for users affected while they try to
> figure out what's gone wrong.
>
> There are two major lessons here:
>
> Firstly, to stick to a standard and manageable naming convention for both
> tables and fields (and interfaces).
>
> Secondly, to inform the user community promptly when you become aware of
> major, "showstopper", bugs.
>
> Best regards
> calle
>
> On 12 July 2018 at 13:15, Morten Olav Hansen  wrote:
>
>> Ok, thanks Stian (no need to work on this then Viet)
>>
>> (knut, using pg_dump we normally filter away analytic* which means no
>> period boundaries..)
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Thu, Jul 12, 2018 at 6:14 PM, Stian Sandvold  wrote:
>>
>>> I have started the work on renaming the table. I will update this thread
>>> as soon as I make progress.
>>>
>>> On Thu, Jul 12, 2018 at 12:17 PM, Morten Olav Hansen 
>>> wrote:
>>>
>>>> Hi Knut
>>>>
>>>> I mean the main issue the thread was about... using maintenance =>
>>>> clear analytic tables, it will delete analytics* which includes the
>>>> analytical boundaries.
>>>>
>>>>
>>>> --
>>>> Morten Olav Hansen
>>>> Senior Engineer, DHIS 2
>>>> University of Oslo
>>>> http://www.dhis2.org
>>>>
>>>> On Thu, Jul 12, 2018 at 5:11 PM, Knut Staring  wrote:
>>>>
>>>>> Hi Morten, sorry but which functionality are you suggesting should not
>>>>> be used? What do you mean by manually deleting?
>>>>>
>>>>> Thanks,
>>>>> Knut
>>>>>
>>>>> On Thu, Jul 12, 2018, 4:23 PM Morten Olav Hansen 
>>>>> wrote:
>>>>>
>>>>>> Hi Calle
>>>>>>
>>>>>> We are aware of this issue (actually it caused a problem with us in
>>>>>> Lao), for now.. I would also say don't use this functionality, its better
>>>>>> to manually delete the analytics_* tables if you need it. We will rename
>>>>>> that table soon we hope, and that should fix it (this also causes 
>>>>>> potential
>>>>>> issues with your backups...)
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Morten Olav Hansen
>>>>>> Senior Engineer, DHIS 2
>>>>>> University of Oslo
>>>>>> http://www.dhis2.org
>>>>>>
>>>>>> On Thu, Jul 12, 2018 at 3:58 PM, Calle Hedberg <
>>>>>> calle.hedb...@gmail.com> wrote:
>>>>>>
>>>>>>> Bob,
>>>>>>>
>>>>>>> No response/action on the JIRA bug report yet - I guess most
>>>>>>> developers are on leave (wonderful summer here in Norway this year).
>>>>>>>
>>>>>>> Otherwise I agree, the name of that table does not fit the general
>>>>>>> naming convention as far as I can see. It would make more sense to call 
>>>>>>> it
>>>>>>> e.g. "programindicator_periodboundary". The name then provides an
>>>>>>> intuitive description of the content and it sorts together with the 
>>>>>>> group
>>>>>>> of programindicator tables.
>>>>>>>
>>>>>>> Regards
>>>>>>> calle
>>>>>>>
>>>>>>> On 

Re: [Dhis2-devs] 2.29/2.30 WARNING - do not use Maintenance->ClearAnalyticsTables & parameter "-T analytics*" for database dumps

2018-07-12 Thread Morten Olav Hansen
Ok, thanks Stian (no need to work on this then Viet)

(knut, using pg_dump we normally filter away analytic* which means no
period boundaries..)

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Thu, Jul 12, 2018 at 6:14 PM, Stian Sandvold  wrote:

> I have started the work on renaming the table. I will update this thread
> as soon as I make progress.
>
> On Thu, Jul 12, 2018 at 12:17 PM, Morten Olav Hansen 
> wrote:
>
>> Hi Knut
>>
>> I mean the main issue the thread was about... using maintenance => clear
>> analytic tables, it will delete analytics* which includes the analytical
>> boundaries.
>>
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Thu, Jul 12, 2018 at 5:11 PM, Knut Staring  wrote:
>>
>>> Hi Morten, sorry but which functionality are you suggesting should not
>>> be used? What do you mean by manually deleting?
>>>
>>> Thanks,
>>> Knut
>>>
>>> On Thu, Jul 12, 2018, 4:23 PM Morten Olav Hansen 
>>> wrote:
>>>
>>>> Hi Calle
>>>>
>>>> We are aware of this issue (actually it caused a problem with us in
>>>> Lao), for now.. I would also say don't use this functionality, its better
>>>> to manually delete the analytics_* tables if you need it. We will rename
>>>> that table soon we hope, and that should fix it (this also causes potential
>>>> issues with your backups...)
>>>>
>>>>
>>>> --
>>>> Morten Olav Hansen
>>>> Senior Engineer, DHIS 2
>>>> University of Oslo
>>>> http://www.dhis2.org
>>>>
>>>> On Thu, Jul 12, 2018 at 3:58 PM, Calle Hedberg >>> > wrote:
>>>>
>>>>> Bob,
>>>>>
>>>>> No response/action on the JIRA bug report yet - I guess most
>>>>> developers are on leave (wonderful summer here in Norway this year).
>>>>>
>>>>> Otherwise I agree, the name of that table does not fit the general
>>>>> naming convention as far as I can see. It would make more sense to call it
>>>>> e.g. "programindicator_periodboundary". The name then provides an
>>>>> intuitive description of the content and it sorts together with the group
>>>>> of programindicator tables.
>>>>>
>>>>> Regards
>>>>> calle
>>>>>
>>>>> On 12 July 2018 at 08:57, Bob Jolliffe  wrote:
>>>>>
>>>>>> Thats nasty alright.  I guess using "-T anlytics_*" instead would
>>>>>> help.  But there are so many backup scripts out there broken by this
>>>>>> that it will be better to rename the table.
>>>>>>
>>>>>> On 11 July 2018 at 22:39, Calle Hedberg 
>>>>>> wrote:
>>>>>> > Hi
>>>>>> >
>>>>>> > For as long as I can remember, we have used the standard parameter
>>>>>> "-T
>>>>>> > analytics*" when dumping a DHIS2 database into e.g. a backup or
>>>>>> similar.
>>>>>> >
>>>>>> > The purpose of the parameter was to exclude all analytics tables
>>>>>> from the
>>>>>> > dump, since it is significantly faster to restore a dump without
>>>>>> analytics
>>>>>> > tables and then run analytics to re-create them (due to the use of
>>>>>> > multi-threading), compared to dumping and restoring a database
>>>>>> instance with
>>>>>> > all the analytics table (restore is NOT using multi-threading).
>>>>>> >
>>>>>> > For some reason, in 2.29 a new table that stores periodboundary
>>>>>> data for
>>>>>> > Program Indicators was called "analyticsperiodboundary" - which
>>>>>> means the
>>>>>> > standard pg_dump parameter will leave that table behind together
>>>>>> with all
>>>>>> > other "analytics*" tables.
>>>>>> >
>>>>>> > Furthermore, the routine called "Clear Analytics Tables" found
>>>>>> under Data
>>>>>> > Administration -> Mainte

Re: [Dhis2-devs] 2.29/2.30 WARNING - do not use Maintenance->ClearAnalyticsTables & parameter "-T analytics*" for database dumps

2018-07-12 Thread Morten Olav Hansen
Hi Knut

I mean the main issue the thread was about... using maintenance => clear
analytic tables, it will delete analytics* which includes the analytical
boundaries.


-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Thu, Jul 12, 2018 at 5:11 PM, Knut Staring  wrote:

> Hi Morten, sorry but which functionality are you suggesting should not be
> used? What do you mean by manually deleting?
>
> Thanks,
> Knut
>
> On Thu, Jul 12, 2018, 4:23 PM Morten Olav Hansen  wrote:
>
>> Hi Calle
>>
>> We are aware of this issue (actually it caused a problem with us in Lao),
>> for now.. I would also say don't use this functionality, its better to
>> manually delete the analytics_* tables if you need it. We will rename that
>> table soon we hope, and that should fix it (this also causes potential
>> issues with your backups...)
>>
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Thu, Jul 12, 2018 at 3:58 PM, Calle Hedberg 
>> wrote:
>>
>>> Bob,
>>>
>>> No response/action on the JIRA bug report yet - I guess most developers
>>> are on leave (wonderful summer here in Norway this year).
>>>
>>> Otherwise I agree, the name of that table does not fit the general
>>> naming convention as far as I can see. It would make more sense to call it
>>> e.g. "programindicator_periodboundary". The name then provides an
>>> intuitive description of the content and it sorts together with the group
>>> of programindicator tables.
>>>
>>> Regards
>>> calle
>>>
>>> On 12 July 2018 at 08:57, Bob Jolliffe  wrote:
>>>
>>>> Thats nasty alright.  I guess using "-T anlytics_*" instead would
>>>> help.  But there are so many backup scripts out there broken by this
>>>> that it will be better to rename the table.
>>>>
>>>> On 11 July 2018 at 22:39, Calle Hedberg 
>>>> wrote:
>>>> > Hi
>>>> >
>>>> > For as long as I can remember, we have used the standard parameter "-T
>>>> > analytics*" when dumping a DHIS2 database into e.g. a backup or
>>>> similar.
>>>> >
>>>> > The purpose of the parameter was to exclude all analytics tables from
>>>> the
>>>> > dump, since it is significantly faster to restore a dump without
>>>> analytics
>>>> > tables and then run analytics to re-create them (due to the use of
>>>> > multi-threading), compared to dumping and restoring a database
>>>> instance with
>>>> > all the analytics table (restore is NOT using multi-threading).
>>>> >
>>>> > For some reason, in 2.29 a new table that stores periodboundary data
>>>> for
>>>> > Program Indicators was called "analyticsperiodboundary" - which means
>>>> the
>>>> > standard pg_dump parameter will leave that table behind together with
>>>> all
>>>> > other "analytics*" tables.
>>>> >
>>>> > Furthermore, the routine called "Clear Analytics Tables" found under
>>>> Data
>>>> > Administration -> Maintenance is as before deleting all tables named
>>>> > Analytics* - THE PROBLEM IS THAT IT ALSO DELETES THE NEW
>>>> > ANALYTICSPERIODBOUNDARY TABLE (same in both 2.29 and 2.30)
>>>> >
>>>> > Which will crash your system in the sense that you won't see any
>>>> program
>>>> > indicator data in dashboards etc.
>>>> >
>>>> > The "analyticsperiodboundary" table will be re-created and
>>>> re-populated with
>>>> > DEFAULT (boundless) Program Indicator Period boundaries when you
>>>> re-start
>>>> > the system (it's part of the TableAlteror routine during startup), but
>>>> > - you have to re-start the system
>>>> > - you will lose any non-default boundary settings used for any program
>>>> > indicator.
>>>> >
>>>> > This has also been reported as a high-priority bug on JIRA
>>>> (DHIS2-4260).
>>>> >
>>>> > Regards
>>>> > Calle
>>>> >
>>>> > ***
>>>> >
>>

Re: [Dhis2-devs] 2.29/2.30 WARNING - do not use Maintenance->ClearAnalyticsTables & parameter "-T analytics*" for database dumps

2018-07-12 Thread Morten Olav Hansen
Hi Calle

We are aware of this issue (actually it caused a problem with us in Lao),
for now.. I would also say don't use this functionality, its better to
manually delete the analytics_* tables if you need it. We will rename that
table soon we hope, and that should fix it (this also causes potential
issues with your backups...)


-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Thu, Jul 12, 2018 at 3:58 PM, Calle Hedberg 
wrote:

> Bob,
>
> No response/action on the JIRA bug report yet - I guess most developers
> are on leave (wonderful summer here in Norway this year).
>
> Otherwise I agree, the name of that table does not fit the general naming
> convention as far as I can see. It would make more sense to call it e.g.
> "programindicator_periodboundary". The name then provides an intuitive
> description of the content and it sorts together with the group of
> programindicator tables.
>
> Regards
> calle
>
> On 12 July 2018 at 08:57, Bob Jolliffe  wrote:
>
>> Thats nasty alright.  I guess using "-T anlytics_*" instead would
>> help.  But there are so many backup scripts out there broken by this
>> that it will be better to rename the table.
>>
>> On 11 July 2018 at 22:39, Calle Hedberg  wrote:
>> > Hi
>> >
>> > For as long as I can remember, we have used the standard parameter "-T
>> > analytics*" when dumping a DHIS2 database into e.g. a backup or similar.
>> >
>> > The purpose of the parameter was to exclude all analytics tables from
>> the
>> > dump, since it is significantly faster to restore a dump without
>> analytics
>> > tables and then run analytics to re-create them (due to the use of
>> > multi-threading), compared to dumping and restoring a database instance
>> with
>> > all the analytics table (restore is NOT using multi-threading).
>> >
>> > For some reason, in 2.29 a new table that stores periodboundary data for
>> > Program Indicators was called "analyticsperiodboundary" - which means
>> the
>> > standard pg_dump parameter will leave that table behind together with
>> all
>> > other "analytics*" tables.
>> >
>> > Furthermore, the routine called "Clear Analytics Tables" found under
>> Data
>> > Administration -> Maintenance is as before deleting all tables named
>> > Analytics* - THE PROBLEM IS THAT IT ALSO DELETES THE NEW
>> > ANALYTICSPERIODBOUNDARY TABLE (same in both 2.29 and 2.30)
>> >
>> > Which will crash your system in the sense that you won't see any program
>> > indicator data in dashboards etc.
>> >
>> > The "analyticsperiodboundary" table will be re-created and re-populated
>> with
>> > DEFAULT (boundless) Program Indicator Period boundaries when you
>> re-start
>> > the system (it's part of the TableAlteror routine during startup), but
>> > - you have to re-start the system
>> > - you will lose any non-default boundary settings used for any program
>> > indicator.
>> >
>> > This has also been reported as a high-priority bug on JIRA (DHIS2-4260).
>> >
>> > Regards
>> > Calle
>> >
>> > ***
>> >
>> > Calle Hedberg
>> >
>> > 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
>> >
>> > Tel/fax (home): +27-21-685-6472
>> >
>> > Cell: +27-82-853-5352
>> >
>> > Iridium SatPhone: +8816-315-19119
>> >
>> > Email: calle.hedb...@gmail.com
>> >
>> > Skype: calle_hedberg
>> >
>> > ***
>> >
>> >
>> >
>> > ___
>> > 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
>> >
>>
>
>
>
> --
>
> ***
>
> Calle Hedberg
>
> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
>
> Tel/fax (home): +27-21-685-6472
>
> Cell: +27-82-853-5352
>
> Iridium SatPhone: +8816-315-19119
>
> Email: calle.hedb...@gmail.com
>
> Skype: calle_hedberg
>
> ***
>
>
> ___
> 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


Re: [Dhis2-devs] Scripts for import of TEI and events

2018-06-13 Thread Morten Olav Hansen
Hi

I'm not aware of any ready scripts for this, but this should be a rather
small task using nodejs + xlsx module.

Do you have any developers on board? We can provide some guidance.

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Wed, Jun 13, 2018 at 3:39 PM, Bernard Sadaka (IM Advisor) <
lib@pu-ami.org> wrote:

> Dear All,
>
> I added my comment on webmaster this morning with regards to the
> availability of scripts that could help importing of TEIs into DHIS2 (
> https://webmasters.stackexchange.com/questions/106521/
> importing-beneficiary-records-into-dhis2-tracker-from-excel ) and I was
> wondering if any of you have such scripts available.
>
>
>
> I have searched without success the resources available at:
> https://github.com/dhis2/dhis2-utils/tree/master/resources
>
>
>
> What I would like to achieve is: We have spreadsheets of the extracted
> data from the HIS of our supported PHCCs and we would like to import these
> into our DHIS2 (both TEI and events). While event import is available, the
> TEI is not (at least not to my knowledge)
>
>
>
> It could really be of great value to our work to be able to do this import
> (even if through the API) hence some guidance is appreciated.
>
> Thank you in advance for your help.
>
>
>
> All the best,
>
> Bernard
>
>
>
> [image: cid:image002.png@01D36F50.572585A0]
>
> *Bernard Sadaka*
>
> *Information Management Advisor*
>
> Première Urgence - Aide Médicale Internationale
>
> Nehmeh Building, Sanine Street, Chiyah, 3rd Floor
>
> Ain el Remmaneh, Beirut, Lebanon
>
> *E-mail:* lib@pu-ami.org
>
> *Cell:* +961 71 004 881 (208)
>
> *Skype:* imapuami
>
> *Website:* https://www.pu-ami.org
>
>
>
>
>
>
> <https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=emailclient_term=icon>
>  Virus-free.
> www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=emailclient_term=link>
> <#m_5934750297392862849_m_3560405924727016872_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> ___
> 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


Re: [Dhis2-devs] Missing orderby clause in TrackedEntityInstance Ids query

2018-06-07 Thread Morten Olav Hansen
Hi

Postgres should return the results in row-order if no order by clause is
specified, so it should be OK. You can always specify additional ordering
if you need it.

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Thu, Jun 7, 2018 at 8:54 AM, Rajeswari Gottipati <
rajes...@thoughtworks.com> wrote:

> Hi DHIS team,
>
> We are hitting the below API to fetch TrackedEntityInstance(TEI) Ids
>
> http:///api/25/trackedEntityInstances?eventEndDate=2018-06-03&
> eventStartDate=2018-03-18=trackedEntityInstance&
> ou=a2620f76786=DESCENDANTS=1=1000=true
> <http://localhost:8080/api/25/trackedEntityInstances?eventEndDate=2018-06-03=2018-03-18=trackedEntityInstance=a2620f71996=DESCENDANTS=1=1000=true>
>
> The above API call will give first 1000 TEI ids because the call is
> paginated with pagesize=1000. Like that we are making calls for other pages
> to fetch all the TEI Ids.
>
> DHIS is using the below query to get the TEI ids
>
> select distinct tei from TrackedEntityInstance tei left join 
> tei.trackedEntityAttributeValues
> where (  tei.organisationUnit.path LIKE '/a2cf79e8g34/a1c343a3w24%') and  
> tei.deleted
> is false;
>
> In this query we couldn't find any order by clause. Is there any chance
> that few of the TEI ids which are returned in some page are going to be
> repeated in another page also.
> Is this query going to be executed every time for each paginated API call?
>
> --
> Rajeswari Gottipati
> Sr Consultant
> Email rajes...@thoughtworks.com
> Telephone +91 9949292931 <+91%209949292931>
> [image: ThoughtWorks]
> <http://www.thoughtworks.com/?utm_campaign=rajeswari-gottipati-signature_medium=email_source=thoughtworks-email-signature-generator>
>
> ___
> 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


Re: [Dhis2-devs] Add/Update Public resources permission

2018-06-01 Thread Morten Olav Hansen
Hm, it is correct that for most metadata you would need to have the
authorities also, but this does not really make sense for favorites, please
make a JIRA issue for it, and we will have a look.

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Wed, May 30, 2018 at 6:31 PM, Eric Barreda Prades  wrote:

> Hi again,
>
> I tested 2.30 version with the same outcome. Is my previous explanation
> clear enough? I was about reporting this in JIRA as a bug but, since I am
> not sure of considering it such as, I'd rather ask you in advance...
>
> Any lead on this would be much appreciated.
>
> Best,
>
> Eric
>
> 2018-05-24 18:04 GMT+02:00 Eric Barreda Prades :
>
>> Dear developers,
>>
>> I'm a little confused about the term "public" regarding user permissions
>> and I'd really appreciate any lead on this. Imagine that we have the
>> following case:
>>
>>
>>- User B has a role with permissions on See Pivot Table.
>>
>> User A creates a table and shares it with B and set it as Public access
>> --> none
>>
>>
>> When User B tries to update and save that table this is the result
>>
>>
>> It seems that User B need to have the permission *Add/ Update Public
>> Report Table* in order to edit/share that table. From my understanding,
>> as the table was set to Public --> none I should not need to add that
>> permission to user B.
>>
>> So, what is the meaning of "Public" here? Is any shared resource
>> considered as public even if it is shared only to a user/usergroup? Is this
>> the expected behaviour or is it a bug? (Tested for play version 2.28. Not
>> possible to access to 2.29 since yesterday).
>>
>> Ideally, we'd rather avoid giving this permission since then all users'
>> tables are created with Public edit/view permissions by default.
>>
>> Best,
>>
>> Eric
>>
>>
>>
>
> ___
> 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


Re: [Dhis2-devs] Authorities for dragging and droping Dashboard Items

2018-05-23 Thread Morten Olav Hansen
Hi Eric

This is a bug we are aware of, and it has been fixed in master (what will
be 2.30). I'm not sure if it has been backported yet.

Viet?

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Wed, May 23, 2018 at 10:41 PM, Eric Barreda Prades <
ericbarre...@gmail.com> wrote:

> Dear developers,
>
> I have observed in our system that some users weren't able to
> Drag/Arrange/redistribute dashboardItems from a Dashboard. After testing it
> in DHIS2 Demo (at least tested for version 28) I have observed that users
> must have the following authorities:
>
> See Data Visualizer app
> See Event Reports app
> See Dashboard Classic
> See Event Visualizer app
> See Pivot Table app
>
> Basically, they must have ALL related analysis app authorities. Is there
> any rationality behind restricting it to that level? I mean, we have to
> allow users seeing apps they might not use (for example program related
> analytic apps) for dragging objects that might not be related to that
> applications (Aggregated Tables). Am I missing something? Is this a bug?
>
>
>
>
>
> Best,
>
> Eric
>
>
> ___
> 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


Re: [Dhis2-devs] Unable to install app

2018-05-16 Thread Morten Olav Hansen
Ok ;) good it works now


-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Wed, May 16, 2018 at 3:01 PM, Pooben Dass <poo...@hisp.org> wrote:

> Hi Morton
>
> Please don't bother with this issue ... I found the error of my ways :)
>
> I was zipping up the project folder and the manifest file was within the
> folder and not on the root.
>
> Thanks for the help
>
> Kind regards
> Pooben
>
>
> On Wed, May 16, 2018 at 7:24 AM, Morten Olav Hansen <mor...@dhis2.org>
> wrote:
>
>> Haven't seen that before, are you sure the zip file is OK (not damaged) ?
>> are you uploading through the UI?
>>
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Tue, May 15, 2018 at 6:31 PM, Pooben Dass <poo...@hisp.org> wrote:
>>
>>> Hi Devs
>>>
>>> I get a NullPointerException when trying to install an app zip file. Has
>>> anyone seen this error before?
>>> Any idea what could cause this?
>>>
>>> java.lang.NullPointerException: entry
>>> at java.util.zip.ZipFile.getInputStream(ZipFile.java:346)
>>> at org.hisp.dhis.appmanager.DefaultAppManager.installApp(Defaul
>>> tAppManager.java:201)
>>> at org.hisp.dhis.webapi.controller.AppController.installApp(App
>>> Controller.java:150)
>>> at org.hisp.dhis.webapi.controller.AppController$$FastClassBySp
>>> ringCGLIB$$45556959.invoke()
>>> at org.springframework.cglib.proxy.MethodProxy.invoke(MethodPro
>>> xy.java:204)
>>> at org.springframework.aop.framework.CglibAopProxy$CglibMethodI
>>> nvocation.invokeJoinpoint(CglibAopProxy.java:738)
>>> at org.springframework.aop.framework.ReflectiveMethodInvocation
>>> .proceed(ReflectiveMethodInvocation.java:157)
>>> at org.springframework.security.access.intercept.aopalliance.Me
>>> thodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:69)
>>> at org.springframework.aop.framework.ReflectiveMethodInvocation
>>> .proceed(ReflectiveMethodInvocation.java:179)
>>> at org.springframework.aop.framework.CglibAopProxy$DynamicAdvis
>>> edInterceptor.intercept(CglibAopProxy.java:673)
>>> at org.hisp.dhis.webapi.controller.AppController$$EnhancerBySpr
>>> ingCGLIB$$3fe60449.installApp()
>>>
>>>
>>> About DHIS 2Version:2.27Build revision:bd3a0ffBuild date:2018-05-04
>>> 12:03
>>>
>>> Kind regards
>>> Pooben
>>>
>>> *This message and any attachments are subject to a disclaimer published
>>> at http://www.hisp.org/policies.html#comms_disclaimer
>>> <http://www.hisp.org/policies.html#comms_disclaimer>.  Please read the
>>> disclaimer before opening any attachment or taking any other action in
>>> terms of this electronic transmission.  If you cannot access the
>>> disclaimer, kindly send an email to disclai...@hisp.org
>>> <disclai...@hisp.org> and a copy will be provided to you. By replying to
>>> this e-mail or opening any attachment you agree to be bound by the
>>> provisions of the disclaimer.*
>>>
>>> ___
>>> 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
>>>
>>>
>>
>
> *This message and any attachments are subject to a disclaimer published at
> http://www.hisp.org/policies.html#comms_disclaimer
> <http://www.hisp.org/policies.html#comms_disclaimer>.  Please read the
> disclaimer before opening any attachment or taking any other action in
> terms of this electronic transmission.  If you cannot access the
> disclaimer, kindly send an email to disclai...@hisp.org
> <disclai...@hisp.org> and a copy will be provided to you. By replying to
> this e-mail or opening any attachment you agree to be bound by the
> provisions of the disclaimer.*
>
___
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


Re: [Dhis2-devs] Unable to install app

2018-05-15 Thread Morten Olav Hansen
Haven't seen that before, are you sure the zip file is OK (not damaged) ?
are you uploading through the UI?


-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Tue, May 15, 2018 at 6:31 PM, Pooben Dass <poo...@hisp.org> wrote:

> Hi Devs
>
> I get a NullPointerException when trying to install an app zip file. Has
> anyone seen this error before?
> Any idea what could cause this?
>
> java.lang.NullPointerException: entry
> at java.util.zip.ZipFile.getInputStream(ZipFile.java:346)
> at org.hisp.dhis.appmanager.DefaultAppManager.installApp(
> DefaultAppManager.java:201)
> at org.hisp.dhis.webapi.controller.AppController.
> installApp(AppController.java:150)
> at org.hisp.dhis.webapi.controller.AppController$$
> FastClassBySpringCGLIB$$45556959.invoke()
> at org.springframework.cglib.proxy.MethodProxy.invoke(
> MethodProxy.java:204)
> at org.springframework.aop.framework.CglibAopProxy$
> CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:738)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.
> proceed(ReflectiveMethodInvocation.java:157)
> at org.springframework.security.access.intercept.aopalliance.
> MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:69)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.
> proceed(ReflectiveMethodInvocation.java:179)
> at org.springframework.aop.framework.CglibAopProxy$
> DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:673)
> at org.hisp.dhis.webapi.controller.AppController$$
> EnhancerBySpringCGLIB$$3fe60449.installApp()
>
>
> About DHIS 2Version:2.27Build revision:bd3a0ffBuild date:2018-05-04 12:03
>
> Kind regards
> Pooben
>
> *This message and any attachments are subject to a disclaimer published at
> http://www.hisp.org/policies.html#comms_disclaimer
> <http://www.hisp.org/policies.html#comms_disclaimer>.  Please read the
> disclaimer before opening any attachment or taking any other action in
> terms of this electronic transmission.  If you cannot access the
> disclaimer, kindly send an email to disclai...@hisp.org
> <disclai...@hisp.org> and a copy will be provided to you. By replying to
> this e-mail or opening any attachment you agree to be bound by the
> provisions of the disclaimer.*
>
> ___
> 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


Re: [Dhis2-devs] How do I filter for authorities

2018-05-01 Thread Morten Olav Hansen
Hi Timothy

When you filter directly on a collection like that, what we do is to
compare size only (so you can do authorities:eq:12), we don't currently
support filtering on collections of primitives (int, float, strings, etc).

Feel free to create a jira issue for it, but it might be a bit
troublesome.. as it can't be implemented without breaking the current
functionality

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Mon, Apr 30, 2018 at 6:57 PM, Timothy Harding <thard...@baosystems.com>
wrote:

> Hello!
>
> I'm attempting to filter for roles with a specific authority and I'm
> getting a strange response:
>
>
> Specifically:
>
> Collection size must be integer `F_PROGRAM_INDICATOR_PUBLIC_ADD`
>
> The URL I'm using is:
> https://play.dhis2.org/2.29/api/userRoles?fields=name,id,aut
> horities=authorities:eq:F_PROGRAM_INDICATOR_PUBLIC_ADD
>
> I haven't tried this on 2.28 or 2.27, currently testing out some of the
> role changes for 2.29. Does anyone know what might be wrong with my syntax?
>
>
>
> *Timothy Harding*
> Sr. Systems Analyst, BAO Systems
> +1 202-536-1541 | thard...@baosystems.com | http://www.baosystems.com | Skype:
> hardi...@gmail.com | 2900 K Street, Suite 507, Washington D.C. 20007
>
> ___
> 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


Re: [Dhis2-devs] List of protected tables in DHIS2

2018-04-24 Thread Morten Olav Hansen
Hi

Up to date list of protected tables can be found here:

https://github.com/dhis2/dhis2-core/blob/master/dhis-2/dhis-api/src/main/java/org/hisp/dhis/sqlview/SqlView.java#L60

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Wed, Apr 25, 2018 at 12:08 AM, Jean Habib <habibjea...@gmail.com> wrote:

> Hi Community,
> Please where can I find list of protected tables when creating sqlViews?
>
> ___
> 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


Re: [Dhis2-devs] API not showing 401 Unauthorized error

2018-04-24 Thread Morten Olav Hansen
I think maybe its related to openldap, there was some issues with our ldap
configuration a while back

Please file a jira issue for it, and I will have Viet have a look at it (at
least we can confirm the reason)

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Tue, Apr 24, 2018 at 12:21 PM, Jason Pickering <
jason.p.picker...@gmail.com> wrote:

> Hi Morten,
> All of the information is provided in this thread. What both Ranga and I
> are saying is that when authenticating with basic authentication, and the
> authentication is not successful the following behavior is seen
>
> 1) In versions below 2.27 and below, a 401 response is sent from the
> server.
> 2) In versions 2.28 and above, a 302 response is sent from the server.
>
> The API tests were developed against 2.27, and it was a 401 response sent
> by the server with basic authentication was not successful.
>
> https://github.com/dhis2/api-tests/blob/master/features/step
> _definitions/authentication.js#L38
>
> Regards,
> Jason
>
>
> On Tue, Apr 24, 2018 at 4:39 AM, Morten Olav Hansen <mor...@dhis2.org>
> wrote:
>
>> In what version did this return a 401? because that sounds like a bug to
>> me.. if you give me the version number, I can have a look
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Tue, Apr 24, 2018 at 9:38 AM, Morten Olav Hansen <mor...@dhis2.org>
>> wrote:
>>
>>> I'm not sure exactly what you mean Jason, this has been like this
>>> always? Are you saying this behavior has changed? because it should not
>>> have. To make the browser properly redirect to the login page, it needs to
>>> send a 302 to forward it.
>>>
>>> In 2.28 we introduced the X-Requested-With header which tells DHIS2 that
>>> this request is done by XHR (and not a browser), we can't change the
>>> default to 401 as it would break things badly.
>>>
>>>
>>> --
>>> Morten Olav Hansen
>>> Senior Engineer, DHIS 2
>>> University of Oslo
>>> http://www.dhis2.org
>>>
>>> On Mon, Apr 23, 2018 at 7:17 PM, Jason Pickering <
>>> jason.p.picker...@gmail.com> wrote:
>>>
>>>> Hi Bob,
>>>>
>>>> Yeah,I am not sure its fine either but what I am trying to get
>>>> information on is what the expected behavior actually should be. Seems it
>>>> should not be this though from what you and Ranga are saying.  Just to
>>>> exclude any possible effect from the reverse proxy, its the same against a
>>>> localhost:
>>>>
>>>> *   Trying 127.0.0.1...
>>>> * TCP_NODELAY set
>>>> * Connected to localhost (127.0.0.1) port 8080 (#0)
>>>> * Server auth using Basic with user 'admin'
>>>> > GET /api/me HTTP/1.1
>>>> > Host: localhost:8080
>>>> > Authorization: Basic YWRtaW46ZGlzdHJpY3Q=
>>>> > User-Agent: curl/7.53.1
>>>> > Accept: */*
>>>> >
>>>> < HTTP/1.1 302 Found
>>>> < Server: Apache-Coyote/1.1
>>>> < X-XSS-Protection: 1; mode=block
>>>> < X-Frame-Options: SAMEORIGIN
>>>> < X-Content-Type-Options: nosniff
>>>> < Location: http://localhost/dhis-web-commons/security/login.action
>>>> < Content-Length: 0
>>>> < Date: Mon, 23 Apr 2018 12:15:22 GMT
>>>>
>>>>
>>>> On Mon, Apr 23, 2018 at 11:36 AM, Bob Jolliffe <bobjolli...@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi Jason
>>>>>
>>>>> I am not sure that this is all fine.  It looks to me like this is a
>>>>> bug which has slipped in and that the original 401 response is the
>>>>> correct expected behaviour.  API users using pre-emptive basic
>>>>> authentication have no good reason to be redirected to the login page
>>>>> with invalid credentials.
>>>>>
>>>>> Regards
>>>>> Bob
>>>>>
>>>>> On 23 April 2018 at 09:46, Jason Pickering <
>>>>> jason.p.picker...@gmail.com> wrote:
>>>>> > Hi Morten,
>>>>> >
>>>>> > I am going to persist here, as its still not clear to me what has
>>>>> changed in
>>>>> > the API.
>>>>> >
>>>>> > Ranga documents that the API behavior has changed when trying to
>>>>&g

Re: [Dhis2-devs] API not showing 401 Unauthorized error

2018-04-23 Thread Morten Olav Hansen
In what version did this return a 401? because that sounds like a bug to
me.. if you give me the version number, I can have a look

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Tue, Apr 24, 2018 at 9:38 AM, Morten Olav Hansen <mor...@dhis2.org>
wrote:

> I'm not sure exactly what you mean Jason, this has been like this always?
> Are you saying this behavior has changed? because it should not have. To
> make the browser properly redirect to the login page, it needs to send a
> 302 to forward it.
>
> In 2.28 we introduced the X-Requested-With header which tells DHIS2 that
> this request is done by XHR (and not a browser), we can't change the
> default to 401 as it would break things badly.
>
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Mon, Apr 23, 2018 at 7:17 PM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> Hi Bob,
>>
>> Yeah,I am not sure its fine either but what I am trying to get
>> information on is what the expected behavior actually should be. Seems it
>> should not be this though from what you and Ranga are saying.  Just to
>> exclude any possible effect from the reverse proxy, its the same against a
>> localhost:
>>
>> *   Trying 127.0.0.1...
>> * TCP_NODELAY set
>> * Connected to localhost (127.0.0.1) port 8080 (#0)
>> * Server auth using Basic with user 'admin'
>> > GET /api/me HTTP/1.1
>> > Host: localhost:8080
>> > Authorization: Basic YWRtaW46ZGlzdHJpY3Q=
>> > User-Agent: curl/7.53.1
>> > Accept: */*
>> >
>> < HTTP/1.1 302 Found
>> < Server: Apache-Coyote/1.1
>> < X-XSS-Protection: 1; mode=block
>> < X-Frame-Options: SAMEORIGIN
>> < X-Content-Type-Options: nosniff
>> < Location: http://localhost/dhis-web-commons/security/login.action
>> < Content-Length: 0
>> < Date: Mon, 23 Apr 2018 12:15:22 GMT
>>
>>
>> On Mon, Apr 23, 2018 at 11:36 AM, Bob Jolliffe <bobjolli...@gmail.com>
>> wrote:
>>
>>> Hi Jason
>>>
>>> I am not sure that this is all fine.  It looks to me like this is a
>>> bug which has slipped in and that the original 401 response is the
>>> correct expected behaviour.  API users using pre-emptive basic
>>> authentication have no good reason to be redirected to the login page
>>> with invalid credentials.
>>>
>>> Regards
>>> Bob
>>>
>>> On 23 April 2018 at 09:46, Jason Pickering <jason.p.picker...@gmail.com>
>>> wrote:
>>> > Hi Morten,
>>> >
>>> > I am going to persist here, as its still not clear to me what has
>>> changed in
>>> > the API.
>>> >
>>> > Ranga documents that the API behavior has changed when trying to access
>>> > /api/me with basic authentication. It has changed from a 401 to a 302.
>>> This
>>> > also breaks the API tests
>>> > (https://github.com/dhis2/api-tests/blob/master/features/ste
>>> p_definitions/authentication.js#L38)
>>> > which also expects a 401. This is all fine, but could you provide a
>>> bit more
>>> > context on the change in behavior and whether this is expected?
>>> >
>>> > Regards,
>>> > Jason
>>> >
>>> >
>>> >
>>> >
>>> > On Mon, Apr 23, 2018 at 2:53 AM, Morten Olav Hansen <mor...@dhis2.org>
>>> > wrote:
>>> >>
>>> >> Try and set the header "X-Requested-With" to "XMLHttpRequest"
>>> >>
>>> >> --
>>> >> Morten Olav Hansen
>>> >> Senior Engineer, DHIS 2
>>> >> University of Oslo
>>> >> http://www.dhis2.org
>>> >>
>>> >> On Sat, Apr 21, 2018 at 8:19 PM, Rangarirai Matavire <
>>> matavi...@gmail.com>
>>> >> wrote:
>>> >>>
>>> >>> Thanks Jason,
>>> >>>
>>> >>> In addition, if you add the '-L' option to the 2.28 and 2.29 queries
>>> as
>>> >>> follows:
>>> >>>
>>> >>> curl -I -L -u admin:distric -H 'Accept: application/json'
>>> >>> https://play.dhis2.org/2.29/api/me
>>> >>>
>>> >>>
>>> >>> You get a redirect loop which seems infinite until it terminates in
>>> error
>>> >>> as follows:
>>> >>>

Re: [Dhis2-devs] API not showing 401 Unauthorized error

2018-04-23 Thread Morten Olav Hansen
I'm not sure exactly what you mean Jason, this has been like this always?
Are you saying this behavior has changed? because it should not have. To
make the browser properly redirect to the login page, it needs to send a
302 to forward it.

In 2.28 we introduced the X-Requested-With header which tells DHIS2 that
this request is done by XHR (and not a browser), we can't change the
default to 401 as it would break things badly.


-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Mon, Apr 23, 2018 at 7:17 PM, Jason Pickering <
jason.p.picker...@gmail.com> wrote:

> Hi Bob,
>
> Yeah,I am not sure its fine either but what I am trying to get information
> on is what the expected behavior actually should be. Seems it should not be
> this though from what you and Ranga are saying.  Just to exclude any
> possible effect from the reverse proxy, its the same against a localhost:
>
> *   Trying 127.0.0.1...
> * TCP_NODELAY set
> * Connected to localhost (127.0.0.1) port 8080 (#0)
> * Server auth using Basic with user 'admin'
> > GET /api/me HTTP/1.1
> > Host: localhost:8080
> > Authorization: Basic YWRtaW46ZGlzdHJpY3Q=
> > User-Agent: curl/7.53.1
> > Accept: */*
> >
> < HTTP/1.1 302 Found
> < Server: Apache-Coyote/1.1
> < X-XSS-Protection: 1; mode=block
> < X-Frame-Options: SAMEORIGIN
> < X-Content-Type-Options: nosniff
> < Location: http://localhost/dhis-web-commons/security/login.action
> < Content-Length: 0
> < Date: Mon, 23 Apr 2018 12:15:22 GMT
>
>
> On Mon, Apr 23, 2018 at 11:36 AM, Bob Jolliffe <bobjolli...@gmail.com>
> wrote:
>
>> Hi Jason
>>
>> I am not sure that this is all fine.  It looks to me like this is a
>> bug which has slipped in and that the original 401 response is the
>> correct expected behaviour.  API users using pre-emptive basic
>> authentication have no good reason to be redirected to the login page
>> with invalid credentials.
>>
>> Regards
>> Bob
>>
>> On 23 April 2018 at 09:46, Jason Pickering <jason.p.picker...@gmail.com>
>> wrote:
>> > Hi Morten,
>> >
>> > I am going to persist here, as its still not clear to me what has
>> changed in
>> > the API.
>> >
>> > Ranga documents that the API behavior has changed when trying to access
>> > /api/me with basic authentication. It has changed from a 401 to a 302.
>> This
>> > also breaks the API tests
>> > (https://github.com/dhis2/api-tests/blob/master/features/ste
>> p_definitions/authentication.js#L38)
>> > which also expects a 401. This is all fine, but could you provide a bit
>> more
>> > context on the change in behavior and whether this is expected?
>> >
>> > Regards,
>> > Jason
>> >
>> >
>> >
>> >
>> > On Mon, Apr 23, 2018 at 2:53 AM, Morten Olav Hansen <mor...@dhis2.org>
>> > wrote:
>> >>
>> >> Try and set the header "X-Requested-With" to "XMLHttpRequest"
>> >>
>> >> --
>> >> Morten Olav Hansen
>> >> Senior Engineer, DHIS 2
>> >> University of Oslo
>> >> http://www.dhis2.org
>> >>
>> >> On Sat, Apr 21, 2018 at 8:19 PM, Rangarirai Matavire <
>> matavi...@gmail.com>
>> >> wrote:
>> >>>
>> >>> Thanks Jason,
>> >>>
>> >>> In addition, if you add the '-L' option to the 2.28 and 2.29 queries
>> as
>> >>> follows:
>> >>>
>> >>> curl -I -L -u admin:distric -H 'Accept: application/json'
>> >>> https://play.dhis2.org/2.29/api/me
>> >>>
>> >>>
>> >>> You get a redirect loop which seems infinite until it terminates in
>> error
>> >>> as follows:
>> >>>
>> >>> HTTP/1.1 302
>> >>>
>> >>> Server: nginx/1.4.6 (Ubuntu)
>> >>>
>> >>> Date: Sat, 21 Apr 2018 13:13:18 GMT
>> >>>
>> >>> Content-Length: 0
>> >>>
>> >>> Connection: keep-alive
>> >>>
>> >>> X-XSS-Protection: 1; mode=block
>> >>>
>> >>> X-Frame-Options: SAMEORIGIN
>> >>>
>> >>> X-Content-Type-Options: nosniff
>> >>>
>> >>> Location:
>> >>> https://play.dhis2.org/2.29/dhis-web-commons/security/login.action
>> >>>
>> >>>
>> >>> HTTP/1.1 302
>> &

Re: [Dhis2-devs] API not showing 401 Unauthorized error

2018-04-22 Thread Morten Olav Hansen
Try and set the header "X-Requested-With" to "XMLHttpRequest"

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Sat, Apr 21, 2018 at 8:19 PM, Rangarirai Matavire <matavi...@gmail.com>
wrote:

> Thanks Jason,
>
> In addition, if you add the '-L' option to the 2.28 and 2.29 queries as
> follows:
>
> curl -I -L -u admin:distric -H 'Accept: application/json'
> https://play.dhis2.org/2.29/api/me
>
> You get a redirect loop which seems infinite until it terminates in error
> as follows:
>
> HTTP/1.1 302
>
> Server: nginx/1.4.6 (Ubuntu)
>
> Date: Sat, 21 Apr 2018 13:13:18 GMT
>
> Content-Length: 0
>
> Connection: keep-alive
>
> X-XSS-Protection: 1; mode=block
>
> X-Frame-Options: SAMEORIGIN
>
> X-Content-Type-Options: nosniff
>
> Location: https://play.dhis2.org/2.29/dhis-web-commons/security/
> login.action
>
>
> HTTP/1.1 302
>
> Server: nginx/1.4.6 (Ubuntu)
>
> Date: Sat, 21 Apr 2018 13:13:18 GMT
>
> Content-Length: 0
>
> Connection: keep-alive
>
> X-XSS-Protection: 1; mode=block
>
> X-Frame-Options: SAMEORIGIN
>
> X-Content-Type-Options: nosniff
>
> Location: https://play.dhis2.org/2.29/dhis-web-commons/security/
> login.action
>
>
> HTTP/1.1 302
>
> Server: nginx/1.4.6 (Ubuntu)
>
> Date: Sat, 21 Apr 2018 13:13:18 GMT
>
> Content-Length: 0
>
> Connection: keep-alive
>
> X-XSS-Protection: 1; mode=block
>
> X-Frame-Options: SAMEORIGIN
>
> X-Content-Type-Options: nosniff
>
> Location: https://play.dhis2.org/2.29/dhis-web-commons/security/
> login.action
>
>
> HTTP/1.1 302
>
> Server: nginx/1.4.6 (Ubuntu)
>
> Date: Sat, 21 Apr 2018 13:13:19 GMT
>
> Content-Length: 0
>
> Connection: keep-alive
>
> X-XSS-Protection: 1; mode=block
>
> X-Frame-Options: SAMEORIGIN
>
> X-Content-Type-Options: nosniff
>
> Location: https://play.dhis2.org/2.29/dhis-web-commons/security/
> login.action
>
>
> HTTP/1.1 302
>
> Server: nginx/1.4.6 (Ubuntu)
>
> Date: Sat, 21 Apr 2018 13:13:19 GMT
>
> Content-Length: 0
>
> Connection: keep-alive
>
> X-XSS-Protection: 1; mode=block
>
> X-Frame-Options: SAMEORIGIN
>
> X-Content-Type-Options: nosniff
>
> Location: https://play.dhis2.org/2.29/dhis-web-commons/security/
> login.action
>
>
> curl: (47) SSLRead() return error -9806
>
> This causes bug in applications that access the api for authentication and
> I can also see how this can be used to diminish system performance in
> general.
>
> Regards,
>
> Ranga
>
> On Sat, Apr 21, 2018 at 8:51 AM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> Just to try and make it a bit more clear Morten, I think this is the
>> issue Rangarai is asking about is  below:
>>
>> In 2.29 and 2.28, an unauthorized username/password returns a 302.
>>
>> curl -I -u admin:distric -H 'Accept: application/json'
>> https://play.dhis2.org/2.29/api/me
>> HTTP/1.1 302
>> Server: nginx/1.4.6 (Ubuntu)
>> Date: Sat, 21 Apr 2018 06:44:10 GMT
>> Content-Length: 0
>> Connection: keep-alive
>> X-XSS-Protection: 1; mode=block
>> X-Frame-Options: SAMEORIGIN
>> X-Content-Type-Options: nosniff
>> Location: https://play.dhis2.org/2.29/dhis-web-commons/security/login.
>> action
>>
>>
>> In 2.27, this same request returns a 401.
>>
>> curl -I -u admin:distric -H 'Accept: application/json'
>> https://play.dhis2.org/2.27/api/me
>> HTTP/1.1 401
>> Server: nginx/1.4.6 (Ubuntu)
>> Date: Sat, 21 Apr 2018 06:44:27 GMT
>> Content-Type: text/html;charset=utf-8
>> Content-Length: 1071
>> Connection: keep-alive
>> X-XSS-Protection: 1; mode=block
>> X-Frame-Options: SAMEORIGIN
>> X-Content-Type-Options: nosniff
>> Set-Cookie: JSESSIONID=05596EBFC26A7C1843D298E98619C7FB; Path=/2.27;
>> HttpOnly
>> WWW-Authenticate: Basic realm="DHIS2"
>> Content-Language: en
>>
>>
>> On Fri, Apr 20, 2018 at 1:40 PM, Rangarirai Matavire <matavi...@gmail.com
>> > wrote:
>>
>>> Hi Morten,
>>>
>>> The password is set wrong deliberately so as to get a 401 or other
>>> response. The problem is when you set the wrong password or username you
>>> get endless redirects from the API.
>>>
>>> Regards,
>>>
>>>
>>> On Fri, Apr 20, 2018 at 1:24 PM, Morten Olav Hansen <mor...@dhis2.org>
>>> wrote:
>>>
>>>> It should be district, not distric... but also people keep changing our
>>>> interna

Re: [Dhis2-devs] API not showing 401 Unauthorized error

2018-04-20 Thread Morten Olav Hansen
It should be district, not distric... but also people keep changing our
internal passwords (our database resets every 24 hour)

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Fri, Apr 20, 2018 at 12:09 PM, Rangarirai Matavire <matavi...@gmail.com>
wrote:

> By the way, its not just the error response code that is worrying, but
> also the loop of redirects that starts, this makes it difficult to handle
> the response for an http client. To see this loop of redirects, you can add
> -L to curl as below.
>
> curl -I -L -u admin:distric -H 'Accept: application/json'
> https://play.dhis2.org/2.28/api/me
>
> I think this behaviour should be corrected as it may lead to unexpected
> behaviour of apps.
>
> Regards
>
> On Wed, Apr 18, 2018 at 11:10 PM, Rangarirai Matavire <matavi...@gmail.com
> > wrote:
>
>> Hi Devs,
>>
>> I am wondering whether the behaviour I am seeing is a bug or something to
>> be expected due to some change.
>>
>> When I run the following curl command:
>>
>> curl -I -u admin:distric -H 'Accept: application/json'
>> https://play.dhis2.org/2.29/api/me
>>
>> I get an HTTP 302 response. Note that I have deliberately set the
>> password wrong so I can mock a 401 unauthorized response. I get the same
>> response when I run the command on version 2.28. However, as expected, when
>> I run it on 2.27, 2.26 etc I get a 401 HTTP response.
>>
>> I hope someone can assist.
>>
>> Regards,
>>
>> Ranga
>>
>
>
> ___
> 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


Re: [Dhis2-devs] Update User Password Via Web API

2018-03-26 Thread Morten Olav Hansen
What you provide here is just the summary report...

To change a password, you need to add "password" field to the
"userCredentials" part of the payload... are you doing that?

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Mon, Mar 26, 2018 at 6:25 PM, Farai Mutero <fmut...@gmail.com> wrote:

> Hi All
>
> We are looking at automating the process of resetting of a user's password
> when the password expires  I'm trying to update the user password via the
> WebAPI. I carefully prepare the payload as dictated by the documentation
> and the API sends back a response as below that the user has been updated,
> but the password does not change, the old password still works even after
> providing a new one in the payload. How can I solve this problem?
>
> {"importParams":{"importMode":"COMMIT","identifier":"UID","
> preheatMode":"REFERENCE","importStrategy":"UPDATE","
> atomicMode":"ALL","mergeMode":"REPLACE","flushMode":"AUTO","
> skipSharing":false,"skipValidation":false,"username":"Farai_Mutero"},"
> status":"OK","typeReports":[{"klass":"org.hisp.dhis.user.
> User","stats":{"created":0,"updated":1,"deleted":0,"
> ignored":0,"total":1},"objectReports":[{"klass":"org.
> hisp.dhis.user.User","index":0,"uid":"ogzPPGeR3je"}]}],"
> stats":{"created":0,"updated":1,"deleted":0,"ignored":0,"total":1}}
>
> --
> Farai Mutero
>
>
> ___
> 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


Re: [Dhis2-devs] table for Category Options

2018-02-13 Thread Morten Olav Hansen
dataelementcategoryoption

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Tue, Feb 13, 2018 at 4:38 PM, Calle Hedberg <calle.hedb...@gmail.com>
wrote:

> Hi
>
> Quick question: I have just added two CATEGORY OPTIONS to an instance -
> but in which table in the database are those options stored?
>
> Regards
> Calle
>
> ***
>
> Calle Hedberg
>
> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
>
> Tel/fax (home): +27-21-685-6472
>
> Cell: +27-82-853-5352
>
> Iridium SatPhone: +8816-315-19119
>
> Email: calle.hedb...@gmail.com
>
> Skype: calle_hedberg
>
> ***
>
>
> ___
> 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


Re: [Dhis2-devs] Web api authorization not working

2018-02-07 Thread Morten Olav Hansen
Did you whitelist your domain in CORS settings?

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Thu, Feb 8, 2018 at 2:37 AM, Knut Staring <knu...@gmail.com> wrote:

> Forwarding to the dev list.
>
> On Feb 7, 2018 8:31 PM, "Terence Kaite" <terenceka...@icloud.com> wrote:
>
>> Hello there,
>>
>> I've been trying to build an external web app that should be making use
>> of dhis 2 data through the its' web api endpoints. But when I try to access
>> dhis web apis - even after including credentials for authentication
>> (username:password bases64encoded) as value for the authorization request
>> header, I'm getting a "response for preflight is invalid (redirect)". (I'm
>> using basic authentication). And when I monitor the network activity in
>> chrome dev tool I came to discover that the preflight OPTION request method
>> is also being redirected, which shouldn't be the case.
>> I really need to get my app connect to dhis, I'm building it as part of
>> the country's Health Information System. I will greatly appreciate any
>> assistance in how I can solve this issue, or any workable solution I can
>> refer to. Thanks a lot.
>>
>> Regards
>> Terence
>>
>> Sent from my iPhone
>
>
> ___
> 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


Re: [Dhis2-devs] [Dhis2-users] Unknown error when importing events

2018-01-23 Thread Morten Olav Hansen
Hi Kelly

Would you mind filing an issue for this in JIRA? (jira.dhis2.org). We need
to know your DHIS2 version, how did you export the events (or did you
create them externally).

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Tue, Jan 23, 2018 at 10:42 PM, Davis, Kelly <kda...@path.org> wrote:

> Hi all,
>
>
>
> I’ve run into an unknown error when trying to import events into DHIS2.
> Does anyone know how to resolve this issue?
>
>
>
>
>
> Best,
>
> Kelly
>
>
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> 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


Re: [Dhis2-devs] DHIS2 Live / Jetty v.3 / CORS

2017-12-20 Thread Morten Olav Hansen
Ok, so are  you successful or not? :) Adding in frontend team just in case..

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Tue, Dec 19, 2017 at 10:44 PM, Freeman, Chase <chase.free...@msi-inc.com>
wrote:

> Awesome! Thanks Jason. I was unaware of this!
>
>
>
> Chase
>
>
>
> *From:* Jason Pickering [mailto:jason.p.picker...@gmail.com]
> *Sent:* Tuesday, December 19, 2017 12:43 AM
> *To:* Morten Olav Hansen <mor...@dhis2.org>
> *Cc:* Freeman, Chase <chase.free...@msi-inc.com>;
> dhis2-devs@lists.launchpad.net
> *Subject:* Re: [Dhis2-devs] DHIS2 Live / Jetty v.3 / CORS
>
>
>
> Hi Chase,
>
>
>
> We have an alternative Docker  project here
> <https://github.com/pgracio/dhis2-docker> as well with pre-built images
> on Dockhub <https://hub.docker.com/r/dhis2/dhis2-web/> as well which you
> also may want to check out.
>
>
>
> Regards,
>
> Jason
>
>
>
>
>
> On Tue, Dec 19, 2017 at 6:12 AM, Morten Olav Hansen <mor...@dhis2.org>
> wrote:
>
> Hi Chase
>
>
>
> It should be possible to add localhost to the CORS whitelist in settings
> (I'm pretty sure the entire frontend team is doing exactly that). What are
> you adding to it? I think you need the full protocol host and port, so
> something like http://localhost:8081 for example.
>
>
>
> Another solution would be to setup a proxy yourself, it kinda depends on
> your setup.. but if you are serving up your app using node, you can use one
> of the many the proxy libraries available for it.
>
>
>
> If you are using something like CRA (create-react-app), it includes a
> proxy already and you can just map that to your DHIS2 instance.
>
>
>
> Please be aware that the live package has some issues with analytics
> (unless you have mapped it to use a local postgres service), another
> approach could be to use dhis2-docker [1].
>
>
>
> [1] https://github.com/dhis2/dhis2-docker
>
>
> --
>
> Morten Olav Hansen
>
> Senior Engineer, DHIS 2
>
> University of Oslo
>
> http://www.dhis2.org
>
>
>
> On Tue, Dec 19, 2017 at 3:09 AM, Freeman, Chase <chase.free...@msi-inc.com>
> wrote:
>
> Hi all,
>
>
>
> I’m getting started with using the D2 library and I had intended to use
> the DHIS2 Live package to quickly get started in a test environment. I’ve
> run into some crippling CORS errors and investigated the Jetty Servlet’s
> web.xml file to see if I could allow for cross-origin requests. Alas, when
> I tried to insert the filter it would fail time no matter the
> configuration. Is this because it is Jetty Version 3 (as opposed to 9.4
> now)? Or is there a better work around? The CORS whitelist in Access
> Settings is not working for Localhost.
>
>
>
> Any tips/assistance in using DHIS2 Live to work with the D2 Library would
> be much appreciated.
>
>
>
> Cheers,
>
>
>
> *Chase Freeman*
>
> Jr. Web Developer
> Management Systems International
> A Tetra Tech Company
> Arlington, VA USA
>
> (Work) +1 703 979 7170 x219 <+1%20703-979-7170>
>
> chase.free...@msi-inc.com
>
>
>
> www.msiworldwide.com
>
>
>
>
>
> ___
> 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
>
>
>
>
>
> --
>
> Jason P. Pickering
> email: jason.p.picker...@gmail.com
> tel:+46764147049 <+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


Re: [Dhis2-devs] DHIS2 Live / Jetty v.3 / CORS

2017-12-18 Thread Morten Olav Hansen
Hi Chase

It should be possible to add localhost to the CORS whitelist in settings
(I'm pretty sure the entire frontend team is doing exactly that). What are
you adding to it? I think you need the full protocol host and port, so
something like http://localhost:8081 for example.

Another solution would be to setup a proxy yourself, it kinda depends on
your setup.. but if you are serving up your app using node, you can use one
of the many the proxy libraries available for it.

If you are using something like CRA (create-react-app), it includes a proxy
already and you can just map that to your DHIS2 instance.

Please be aware that the live package has some issues with analytics
(unless you have mapped it to use a local postgres service), another
approach could be to use dhis2-docker [1].

[1] https://github.com/dhis2/dhis2-docker

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Tue, Dec 19, 2017 at 3:09 AM, Freeman, Chase <chase.free...@msi-inc.com>
wrote:

> Hi all,
>
>
>
> I’m getting started with using the D2 library and I had intended to use
> the DHIS2 Live package to quickly get started in a test environment. I’ve
> run into some crippling CORS errors and investigated the Jetty Servlet’s
> web.xml file to see if I could allow for cross-origin requests. Alas, when
> I tried to insert the filter it would fail time no matter the
> configuration. Is this because it is Jetty Version 3 (as opposed to 9.4
> now)? Or is there a better work around? The CORS whitelist in Access
> Settings is not working for Localhost.
>
>
>
> Any tips/assistance in using DHIS2 Live to work with the D2 Library would
> be much appreciated.
>
>
>
> Cheers,
>
>
>
> *Chase Freeman*
>
> Jr. Web Developer
> Management Systems International
> A Tetra Tech Company
> Arlington, VA USA
>
> (Work) +1 703 979 7170 x219
>
> chase.free...@msi-inc.com
>
>
>
> www.msiworldwide.com
>
>
>
>
> ___
> 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


Re: [Dhis2-devs] Pivot table not updated

2017-12-12 Thread Morten Olav Hansen
Hi Sunakshi

There must be something in the web console or in the tomcat console? did
you create a JIRA issue for it? (2.25 is a bit old now, but maybe Jan can
have a look at it)

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Wed, Dec 13, 2017 at 1:21 PM, Sunakshi Chagti <sunakshicha...@gmail.com>
wrote:

> Hi All
>
> This is a gentle reminder. Please help with this. Pivot tables are not
> working in 2.25 instance.
>
>
>
>
> Regards,
> Sunakshi
> Junior Software Developer
> HISP INDIA
>
>
>
> On Wed, Dec 6, 2017 at 12:29 PM, Sunakshi Chagti <sunakshicha...@gmail.com
> > wrote:
>
>> Hi All,
>>
>> I am using 2.25 war file and facing an issue with pivot table update.
>> After clicking on update button there is no response for that and also
>> there is no error in console.
>> Here i am sharing details of the instance.
>>
>> Build Revision : 2db4ef1
>> Build date : 2017-12-05 06:47
>>
>>
>>
>> Regards,
>> Sunakshi
>> Junior Software Developer
>> HISP INDIA
>>
>>
>>
>
> ___
> 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


Re: [Dhis2-devs] getting list of datasets

2017-12-11 Thread Morten Olav Hansen
Hi Ramon

The endpoint /api/dataSets is not filtered by the user, if you want to see
what the user can really access you would have to use /api/me

Maybe using something like this:
https://play.dhis2.org/demo/api/28/me.json?fields=id,displayName,userCredentials[userRoles[dataSets[id,displayName]]]

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Mon, Dec 11, 2017 at 11:08 PM, Ramón José Jiménez Pomareta <
dh...@pomareta.ch> wrote:

> Hello Dave,
>
> Thank you for your prompt answer. Unfortunately, this time, this is not
> the case :( The user has already the role asigned for this dataset and I
> can verify he can see it when going to the url /api/dataSets.
>
> Thank you for your idea anyway !
>
> 2017-12-11 15:11 GMT+01:00 David Palmer <david.pal...@mariestopes.org>:
>
>> Hi Ramon, for a user to see a dataset please note there are 2 places this
>> has to be done. A user must be assigned both a user group for which the
>> dataset is shared to, but also in a user role for which the dataset has
>> been added to.
>>
>>
>> You mention sharing below, but not adding the dataset to the user role?
>> This has caught us out a few times – check the datasets are selected in the
>> user role.
>>
>>
>> Cheers,
>>
>> Dave
>>
>>
>>
>> *From:* Dhis2-devs [mailto:dhis2-devs-bounces+david.palmer=
>> mariestopes.org...@lists.launchpad.net] *On Behalf Of *Ramón José
>> Jiménez Pomareta
>> *Sent:* 11 December 2017 13:52
>> *To:* Ramón José Jiménez Pomareta
>> *Cc:* DHIS 2 developers
>> *Subject:* Re: [Dhis2-devs] getting list of datasets
>>
>>
>>
>> Update: Only giving the "ALL" authoritie to the user fix the issue... :(
>>
>>
>>
>> 2017-12-11 13:25 GMT+01:00 Ramón José Jiménez Pomareta <dh...@pomareta.ch
>> >:
>>
>> Hello !
>>
>>
>>
>> I've seen that DHIS2 call this two url in order to retrieve and match the
>> list of datasets with the countries.
>>
>>
>>
>> https://DHIS2URL/dhis-web-dataentry/getMetaData.action?_=A13SIZEDNUMBER
>>
>> https://DHIS2URL/dhis-web-dataentry/getDataSetAssociations.
>> action?_=THESAME13SIZEDNUMBER+1
>>
>>
>>
>> My problem is that some users don't get all the datasets that are shared
>> with them. (The superusers can get these dataset for the same orgUnits).
>> The dataset with which I have problems has a "default form type". The
>> others are "custom". Could be this ?
>>
>>
>>
>> The server don't say anything.
>>
>>
>>
>> Thank you !
>>
>> Ramón.
>>
>>
>> This Email from Marie Stopes International and any attachments may
>> contain information which is privileged or confidential. It is meant only
>> for the individual(s) or entity named above. If you are not the intended
>> recipient(s) of this Email or any part of it please notify the sender
>> immediately on receipt and delete it from your system. Any opinion or other
>> information in this email or its attachments that does not relate to the
>> business of Marie Stopes International is personal to the sender and is not
>> given or endorsed by Marie Stopes International.
>>
>
>
> ___
> 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


Re: [Dhis2-devs] Unable to update password using API in 2.28

2017-12-05 Thread Morten Olav Hansen
Hi Victor

A fix is now available in 227, 228 and master. Please give our servers 1
hour to build and deploy latest versions.

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Tue, Dec 5, 2017 at 10:22 AM, Morten Olav Hansen <mor...@dhis2.org>
wrote:

> Hi Victor
>
> The syntax seems OK, I will have a look at it
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Mon, Dec 4, 2017 at 9:53 PM, Victor Garcia <vgarcia...@gmail.com>
> wrote:
>
>> Hi all,
>>
>> I am having troubles trying to update users' password through the API.
>> The issue is explained in this JIRA issue
>> <https://jira.dhis2.org/browse/DHIS2-2397>. I have read previous email
>> threads about the same subject and I have tried different payload
>> combinations, but so far I have not found anything that works...
>>
>> Any help would be very appreciated!
>>
>> Víctor
>>
>> ___
>> 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


Re: [Dhis2-devs] Unable to update password using API in 2.28

2017-12-04 Thread Morten Olav Hansen
Hi Victor

The syntax seems OK, I will have a look at it

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Mon, Dec 4, 2017 at 9:53 PM, Victor Garcia <vgarcia...@gmail.com> wrote:

> Hi all,
>
> I am having troubles trying to update users' password through the API. The
> issue is explained in this JIRA issue
> <https://jira.dhis2.org/browse/DHIS2-2397>. I have read previous email
> threads about the same subject and I have tried different payload
> combinations, but so far I have not found anything that works...
>
> Any help would be very appreciated!
>
> Víctor
>
> ___
> 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


Re: [Dhis2-devs] [Dhis2-users] National DHIS2 and R Integration

2017-11-30 Thread Morten Olav Hansen
Hi

You don't say exactly which part you want to improve, but having a look at
Jasons github repo might be a good start [1]. At least it shows some
examples of working with the API using R.

[1] https://github.com/jason-p-pickering/dhis2-data-munging

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Thu, Nov 30, 2017 at 6:56 PM, Mamadou Diao Diallo <diao_dia...@gn.jsi.com
> wrote:

> Hi all,
>
> I would like to improve a national health program during my internship
> with the R software and the national dhis2.
>
> But I lack of informations, ideas about possibilities, and all that can be
> useful to improve the program.
>
> Can you please share any links that can help me.
>
> Best regards.
>
> Diao
>
> --
> *DIALLO Mamadou Diao Conseiller IT, Specialiste de DHIS 2 **( District
> Health Information Software )*
>
>
> *Projet de Renforcement du Système d'Information Sanitaire en Guinée*
> *Phone : 623909413 | 662256106*
> *Skype : diawwdiallo*
> www.jsi.com
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> 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


Re: [Dhis2-devs] DHIS-2 API: Partial Update of organisation objects (extra attributes)

2017-11-26 Thread Morten Olav Hansen
Hi

That syntax does not work anymore, please try without the /name part at the
end

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Fri, Nov 24, 2017 at 7:19 PM, Omer Butt <omerbutt2...@gmail.com> wrote:

> Hi,
>
> Dhis-2 Developer Guide:
> I have to use partial update Api to update the organisation unit
> attributes .But could not get it. Can you please make sample for orgunit
> attribute update using api.
>
> *below is the api for Partial Update .*
>
> The format for updating a single property is the same as when you are
> updating a complete object, just with only 1 property in the JSON/XML file,
> i.e.:
>
> curl -X PATCH -d "{\"name\": \"New Name\"}" -H "Content-Type: 
> application/json"
> -u admin:district 
> https://play.dhis2.org/dev/api/26/dataElements/fbfJHSPpUQD/name
>
>
>
> <https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail_term=icon>
>  Virus-free.
> www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail_term=link>
> <#m_4138212393021094125_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> ___
> 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


Re: [Dhis2-devs] DHIS-2 API's : Updating the attributes values of a specific org Unit

2017-11-26 Thread Morten Olav Hansen
Hi Omer

Instead of doing "orgUnit": "YOUR-ID", it should just be "id": "YOUR-ID"

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Fri, Nov 24, 2017 at 5:31 PM, Omer Butt <omerbutt2...@gmail.com> wrote:

> Hi,
>
> I am using that api with json format  data to update specific attribute of
> an org unit . But its create a new orgunit rather than updating the
> existing org unit.
> kindly explain or guide where i am wrong.
>
> Below is the data format in json and api that iam using.
> I have to update that orgunit with attribute value .
>
> *json string data : data.json*
>
> {"orgUnit":"o6s4YOrMS1T","name":"Muslim Medicose","shortName":"Muslim
> Medicose","openingDate":"2016-09-01","attributeValues":[{"
> attribute":{"id":"Jn52d5llxAo"},"value":"1"}]}
>
> *API :*
>
> curl -X PUT -d @data.json -H "Content-Type: application/json"
> -u user:password http://server/api/26/organisationUnits/o6s4YOrMS1T
>
>
>
> <https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail_term=icon>
>  Virus-free.
> www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail_term=link>
> <#m_-8384708315250723649_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> ___
> 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


Re: [Dhis2-devs] Issues with Upgrade from DHIS 2.26 to DHIS 2.27

2017-11-23 Thread Morten Olav Hansen
Please try again with latest 227

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Thu, Nov 23, 2017 at 11:00 AM, Morten Olav Hansen <mor...@dhis2.org>
wrote:

> > Legends are now directly contained in the object where they are used, so
>> no need to reference by UIDs anymore, translations should also be put
>> directly in the legend payload.
>> We see that we may translate the legends through POST '/api/25/metadata'
>> call.
>> Is there any other way to translate legends? Can you point us to an
>> appropriate API?
>>
>
> The translations are now directly a part of the payload itself, you can
> see that if you try and translate any part of dhis2, then go to
> /api/type/ID and you will see the translations directly contained in the
> payload itself.
>
> As an example, you can have a look here:
> https://play.dhis2.org/dev/api/dataElements.json?fields=
> id,displayName,translations
>
> the translation object itself is built up of: property (can be NAME,
> SHORT_NAME, DESCRIPTION, and FORM_NAME for data elements), locale, value.
>
> Even for contained objects like legends, you still translate in the same
> way, just add a array called translations on the legend, and fill in your
> props.
>
> > created/lastUpdated should not be gone, I think thats a bug, I will look
>> into it.
>> From this, we understand that the lastUpdated and created timestamps
>> also must be available along with lastUpdatedAtClient and createdAtClient
>> timestamps in the response. Could you confirm if it is true.
>>
>
> Both created, createdAtClient, lastUpdated, lastUpdatedAtClient will be
> there. Created/lastUpdated will be read-only, while *AtClient can be
> changed by the client (mostly for usage in offline systems)
>
>
>>
>>  In DHIS 2.27, the enrollments and trackedEntityInstance API responses
>> are returning the lastUpdatedAtClient and createdAtClient timestamps
>> only. Because of this, we think the lastUpdated and created timestamps have
>> been renamed to lastUpdatedAtClient and createdAtClient. If this is the
>> case, we think that the data in lastUpdated and created must be migrated
>> to lastUpdatedAtClient and createdAtClient. If yes, could you point us
>> to any such migration script?
>>
>> Thanks,
>> Madhoolika/Jhansi
>>
>>
>> On Wed, Nov 22, 2017 at 8:12 AM, Morten Olav Hansen <mor...@dhis2.org>
>> wrote:
>>
>>> Hi Jhansi
>>>
>>> Legends are now directly contained in the object where they are used, so
>>> no need to reference by UIDs anymore, translations should also be put
>>> directly in the legend payload.
>>>
>>> created/lastUpdated should not be gone, I think thats a bug, I will look
>>> into it.
>>>
>>> --
>>> Morten Olav Hansen
>>> Senior Engineer, DHIS 2
>>> University of Oslo
>>> http://www.dhis2.org
>>>
>>> On Tue, Nov 21, 2017 at 1:18 PM, Jhansi Reddy Karee <
>>> jhans...@thoughtworks.com> wrote:
>>>
>>>> Hello Team,
>>>>
>>>> Did you get a chance to take a look at DHIS 2.27 upgrade issues?
>>>>
>>>> Thanks,
>>>> Jhansi
>>>>
>>>>
>>>>
>>>>
>>>> On Wed, Nov 15, 2017 at 12:14 PM, Mani Madhoolika Bulusu <
>>>> mbul...@thoughtworks.com> wrote:
>>>>
>>>>>
>>>>> Hello team,
>>>>>
>>>>> We are planning an upgrade from DHIS 2.26 to DHIS 2.27, and
>>>>> encountered the following blockers during analysis:
>>>>>
>>>>>- In DHIS 2.26, we were entering the legend translations using
>>>>>PUT '/api/25/legends/{someLegendId}/translations.json'. In DHIS
>>>>>2.27 this URL is failing with 404 error code. Could you point us to an 
>>>>> end
>>>>>point for translating the legends in DHIS 2.27?
>>>>>- In DHIS 2.27, Enrollments and TrackedEntityInstance APIs are
>>>>>returning lastUpdatedAtClient and createdAtClient timestamps instead of
>>>>>lastUpdated and created timestamps. On upgrading DHIS from 2.26 to 
>>>>> 2.27, we
>>>>>are not getting lastUpdatedAtClient and createdAtClient timestamps for 
>>>>> the
>>>>>Enrollments and TrackedEntityInstances created in DHIS 2.26. Could you
>>>>>point us to a migration script to migrate the lastUpdated and created 
>>>>> to
>>>>>lastUpdatedAtClient and createdAtClient, if any.
>>>>>
>>>>> Let us know if you need more details.
>>>>>
>>>>> Thanks,
>>>>> Madhoolika/Jhansi
>>>>>
>>>>
>>>>
>>>
>>
>
___
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


Re: [Dhis2-devs] [Dhis2-users] External access (Without Login) Not Working for Resources.

2017-11-22 Thread Morten Olav Hansen
Hi

Can you give our servers about 1 hour to build, then try again with latest
version (I have made a fix available down to 2.27)

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Thu, Nov 23, 2017 at 12:40 PM, Sourabh Bhardwaj <bsourabh...@gmail.com>
wrote:

> Hi Morten ,
>
> have included the log below :
>
> java.lang.NullPointerException
> at org.hisp.dhis.security.acl.DefaultAclService.getAccess(
> DefaultAclService.java:351)
> at org.hisp.dhis.webapi.controller.AbstractCrudController.
> addAccessProperties(AbstractCrudController.java:1098)
> at org.hisp.dhis.webapi.controller.AbstractCrudController.
> handleLinksAndAccess(AbstractCrudController.java:1138)
> at org.hisp.dhis.webapi.controller.AbstractCrudController.
> getObjectInternal(AbstractCrudController.java:517)
> at org.hisp.dhis.webapi.controller.AbstractCrudController.getObject(
> AbstractCrudController.java:261)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(
> InvocableHandlerMethod.java:205)
> at org.springframework.web.method.support.InvocableHandlerMethod.
> invokeForRequest(InvocableHandlerMethod.java:133)
> at org.springframework.web.servlet.mvc.method.annotation.
> ServletInvocableHandlerMethod.invokeAndHandle(
> ServletInvocableHandlerMethod.java:97)
> at org.springframework.web.servlet.mvc.method.annotation.
> RequestMappingHandlerAdapter.invokeHandlerMethod(
> RequestMappingHandlerAdapter.java:827)
> at org.springframework.web.servlet.mvc.method.annotation.
> RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.
> java:738)
> at org.springframework.web.servlet.mvc.method.
> AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
> at org.springframework.web.servlet.DispatcherServlet.
> doDispatch(DispatcherServlet.java:967)
> at org.springframework.web.servlet.DispatcherServlet.
> doService(DispatcherServlet.java:901)
> at org.springframework.web.servlet.FrameworkServlet.processRequest(
> FrameworkServlet.java:970)
> at org.springframework.web.servlet.FrameworkServlet.
> doGet(FrameworkServlet.java:861)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
> at org.springframework.web.servlet.FrameworkServlet.
> service(FrameworkServlet.java:846)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:292)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:207)
> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:240)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:207)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:317)
> at org.springframework.security.web.access.intercept.
> FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127)
> at org.springframework.security.web.access.intercept.
> FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:331)
> at org.springframework.security.web.access.ExceptionTranslationFilter.
> doFilter(ExceptionTranslationFilter.java:114)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:331)
> at org.springframework.security.web.session.SessionManagementFilter.
> doFilter(SessionManagementFilter.java:137)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:331)
> at org.springframework.security.web.authentication.
> AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.
> java:111)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:331)
> at org.springframework.security.web.servletapi.
> SecurityContextHolderAwareRequestFilter.doFilter(
> SecurityContextHolderAwareRequestFilter.java:170)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:331)
> at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.
> doFilter(RequestCacheAwareFilter.j

Re: [Dhis2-devs] Issues with Upgrade from DHIS 2.26 to DHIS 2.27

2017-11-22 Thread Morten Olav Hansen
>
> > Legends are now directly contained in the object where they are used, so
> no need to reference by UIDs anymore, translations should also be put
> directly in the legend payload.
> We see that we may translate the legends through POST '/api/25/metadata'
> call.
> Is there any other way to translate legends? Can you point us to an
> appropriate API?
>

The translations are now directly a part of the payload itself, you can see
that if you try and translate any part of dhis2, then go to /api/type/ID
and you will see the translations directly contained in the payload itself.

As an example, you can have a look here:
https://play.dhis2.org/dev/api/dataElements.json?fields=id,displayName,translations

the translation object itself is built up of: property (can be NAME,
SHORT_NAME, DESCRIPTION, and FORM_NAME for data elements), locale, value.

Even for contained objects like legends, you still translate in the same
way, just add a array called translations on the legend, and fill in your
props.

> created/lastUpdated should not be gone, I think thats a bug, I will look
> into it.
> From this, we understand that the lastUpdated and created timestamps also
> must be available along with lastUpdatedAtClient and createdAtClient
> timestamps in the response. Could you confirm if it is true.
>

Both created, createdAtClient, lastUpdated, lastUpdatedAtClient will be
there. Created/lastUpdated will be read-only, while *AtClient can be
changed by the client (mostly for usage in offline systems)


>
>  In DHIS 2.27, the enrollments and trackedEntityInstance API responses
> are returning the lastUpdatedAtClient and createdAtClient timestamps
> only. Because of this, we think the lastUpdated and created timestamps have
> been renamed to lastUpdatedAtClient and createdAtClient. If this is the
> case, we think that the data in lastUpdated and created must be migrated
> to lastUpdatedAtClient and createdAtClient. If yes, could you point us to
> any such migration script?
>
> Thanks,
> Madhoolika/Jhansi
>
>
> On Wed, Nov 22, 2017 at 8:12 AM, Morten Olav Hansen <mor...@dhis2.org>
> wrote:
>
>> Hi Jhansi
>>
>> Legends are now directly contained in the object where they are used, so
>> no need to reference by UIDs anymore, translations should also be put
>> directly in the legend payload.
>>
>> created/lastUpdated should not be gone, I think thats a bug, I will look
>> into it.
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Tue, Nov 21, 2017 at 1:18 PM, Jhansi Reddy Karee <
>> jhans...@thoughtworks.com> wrote:
>>
>>> Hello Team,
>>>
>>> Did you get a chance to take a look at DHIS 2.27 upgrade issues?
>>>
>>> Thanks,
>>> Jhansi
>>>
>>>
>>>
>>>
>>> On Wed, Nov 15, 2017 at 12:14 PM, Mani Madhoolika Bulusu <
>>> mbul...@thoughtworks.com> wrote:
>>>
>>>>
>>>> Hello team,
>>>>
>>>> We are planning an upgrade from DHIS 2.26 to DHIS 2.27, and encountered
>>>> the following blockers during analysis:
>>>>
>>>>- In DHIS 2.26, we were entering the legend translations using PUT '
>>>>/api/25/legends/{someLegendId}/translations.json'. In DHIS 2.27
>>>>this URL is failing with 404 error code. Could you point us to an end 
>>>> point
>>>>for translating the legends in DHIS 2.27?
>>>>- In DHIS 2.27, Enrollments and TrackedEntityInstance APIs are
>>>>returning lastUpdatedAtClient and createdAtClient timestamps instead of
>>>>lastUpdated and created timestamps. On upgrading DHIS from 2.26 to 
>>>> 2.27, we
>>>>are not getting lastUpdatedAtClient and createdAtClient timestamps for 
>>>> the
>>>>Enrollments and TrackedEntityInstances created in DHIS 2.26. Could you
>>>>point us to a migration script to migrate the lastUpdated and created to
>>>>lastUpdatedAtClient and createdAtClient, if any.
>>>>
>>>> Let us know if you need more details.
>>>>
>>>> Thanks,
>>>> Madhoolika/Jhansi
>>>>
>>>
>>>
>>
>
___
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


Re: [Dhis2-devs] DHIS-2 API For setting attributes values of organisation unit.

2017-11-21 Thread Morten Olav Hansen
Hi Omer

Just use the normal OU payload, and add the attributes:

{
   ... normal OU payload,
   "attributes": [
  { "attribute": {"id": "UID OF ATTRIBUTE"}, "value": "value1"},
  { "attribute": {"id": "UID OF ATTRIBUTE"}, "value": "value2"}
   ]
}

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Wed, Nov 22, 2017 at 12:08 PM, Omer Butt <omerbutt2...@gmail.com> wrote:

> Hi,
>
> I have studied developer guide for searching an API: *That will set the
> value of extra attributes that i have added to organisation unit. *
> Could not find yet.
>
> *For Example :*
>
> Attribute id:abc (*which is the extra field/attribute of organisation
> unit )*
> Attribute value: 123
> set it to org unit - id :abcxmsms etcc;
>
> Can you please guide me for this API? Or any Reference ?
>
> Thanks
>
>
>
>
> <https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail_term=icon>
>  Virus-free.
> www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail_term=link>
> <#m_3764885447493149455_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> ___
> 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


Re: [Dhis2-devs] Issues with Upgrade from DHIS 2.26 to DHIS 2.27

2017-11-21 Thread Morten Olav Hansen
Hi Jhansi

Legends are now directly contained in the object where they are used, so no
need to reference by UIDs anymore, translations should also be put directly
in the legend payload.

created/lastUpdated should not be gone, I think thats a bug, I will look
into it.

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Tue, Nov 21, 2017 at 1:18 PM, Jhansi Reddy Karee <
jhans...@thoughtworks.com> wrote:

> Hello Team,
>
> Did you get a chance to take a look at DHIS 2.27 upgrade issues?
>
> Thanks,
> Jhansi
>
>
>
>
> On Wed, Nov 15, 2017 at 12:14 PM, Mani Madhoolika Bulusu <
> mbul...@thoughtworks.com> wrote:
>
>>
>> Hello team,
>>
>> We are planning an upgrade from DHIS 2.26 to DHIS 2.27, and encountered
>> the following blockers during analysis:
>>
>>- In DHIS 2.26, we were entering the legend translations using PUT '
>>/api/25/legends/{someLegendId}/translations.json'. In DHIS 2.27 this
>>URL is failing with 404 error code. Could you point us to an end point for
>>translating the legends in DHIS 2.27?
>>- In DHIS 2.27, Enrollments and TrackedEntityInstance APIs are
>>returning lastUpdatedAtClient and createdAtClient timestamps instead of
>>lastUpdated and created timestamps. On upgrading DHIS from 2.26 to 2.27, 
>> we
>>are not getting lastUpdatedAtClient and createdAtClient timestamps for the
>>Enrollments and TrackedEntityInstances created in DHIS 2.26. Could you
>>point us to a migration script to migrate the lastUpdated and created to
>>lastUpdatedAtClient and createdAtClient, if any.
>>
>> Let us know if you need more details.
>>
>> Thanks,
>> Madhoolika/Jhansi
>>
>
>
___
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


Re: [Dhis2-devs] [Dhis2-users] External access (Without Login) Not Working for Resources.

2017-11-21 Thread Morten Olav Hansen
Hi

Could you please include the server log? it should include a stack trace of
what is going on

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Mon, Nov 20, 2017 at 6:19 PM, Sourabh Bhardwaj <bsourabh...@gmail.com>
wrote:

> Hi All,
>
> I need to share some information from resources publicly say a
> image/document etc.
>
> Have set External access (without login) to true.
>
> https://play.dhis2.org/demo/api/documents/{UID}
>
> is returning:
>
> *{"httpStatus":"Internal Server
> Error","httpStatusCode":500,"status":"ERROR"}*
>
> Is there any user Role also(however I have logged in with super user) to
> create public resources or is there any alternative available?
>
> Thanks.
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> 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


Re: [Dhis2-devs] Questions in TrackedEntityInstance and Enrollment Web API

2017-11-16 Thread Morten Olav Hansen
Yes, these are free to be used

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Fri, Nov 17, 2017 at 12:25 PM, Jhansi Reddy Karee <
jhans...@thoughtworks.com> wrote:

> Hello Team,
>
> We have few questions regarding enrollments and trackedEntityInstances web
> API:
>
>- We are able to get the list of trackedEntityInstances matching the
>given trackedEntityInstance ids (separated by semicolon).
>
>   URL: https://play.dhis2.org/demo/api/trackedEntityInstances.
> json?trackedEntityInstance=vOxUH373fy5;vu9dsAuJ29q
>
>
>- Similarly, we are also able to get the list of enrollments matching
>the given enrollment ids (separated by semicolon).
>
>   URL: https://play.dhis2.org/demo/api/enrollments.json?enroll
> ment=gopBaFzOdkt;Cl7ZhgxaYQO
>
>
> We don't see this mentioned in the documentation. Could you please confirm
> if we can use them?
>
> Thanks,
> Jhansi
>
> ___
> 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


Re: [Dhis2-devs] Issue with Enrollments API Pagination - Not returning pager details

2017-11-08 Thread Morten Olav Hansen
Ok, I have put the task on Viet

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Wed, Nov 8, 2017 at 11:53 AM, Jhansi Reddy Karee <
jhans...@thoughtworks.com> wrote:

> Thanks @Stian for creating the bug.
>
> Yes @Morten, we tried paginating it by adding totalPages request param.
> But still, we don't get the pager details (like total, pageSize, page,
> pageCount).
>
> Here is the link we used: https://play.dhis2.org/dev/
> api/enrollments.json?ou=DiszpKrYNg8=3=true
>
> Thanks,
> Jhansi
>
>
> On Wed, Nov 8, 2017 at 7:47 AM, Morten Olav Hansen <mor...@dhis2.org>
> wrote:
>
>> Hi
>>
>> Did you have a look at the enrollment API docs? please try out
>> totalPages=true and see if it does what you want.
>>
>> https://docs.dhis2.org/master/en/developer/html/webapi_enrol
>> lment_instance_query.html
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Wed, Nov 8, 2017 at 10:23 AM, Stian Sandvold <st...@dhis2.org> wrote:
>>
>>> Hi Jhansi,
>>>
>>> You can report bugs like these directly to Jira (http://jira.dhis2.org).
>>>
>>> I created a bug report for you, you can see it here:
>>> https://jira.dhis2.org/browse/DHIS2-2476
>>>
>>> Please add additional information in the comment section if you have
>>> something to add.
>>>
>>> On Wed, Nov 8, 2017 at 6:27 AM, Jhansi Reddy Karee <
>>> jhans...@thoughtworks.com> wrote:
>>>
>>>> Hi Team,
>>>>
>>>> We are experiencing an issue with the enrollments API pagination on
>>>> DHIS 2.26 (it exists on the later versions of DHIS as well). When the
>>>> enrollments API is paginated, it returns the enrollments for the given
>>>> pageSize and the page number. But, *it doesn't return the pager params
>>>> as a part of each page response, like it returns in other APIs*. By
>>>> pager params we mean, paging details like total, pageSize, page, pageCount.
>>>>
>>>> Without the paging params it would be hard for us to figure out on how
>>>> many pages should we download and also at which page we should stop
>>>> downloading. Because of this issue, we are not able to paginate the
>>>> enrollments API.
>>>>
>>>> We are about to go live with programs with registration which would
>>>> internally use the enrollments API. We are expecting a lot of data entry to
>>>> be done in the near future. This means there will be a lot of enrollments
>>>> in the system and downloading all of them in a single API call, would be
>>>> problematic for our end users who are in remote locations with very slow
>>>> internet connectivity.
>>>>
>>>> *Will you be able to fix the pagination of enrollments API to return
>>>> the paging params, so that it is consistent with the other API’s paging
>>>> response *and we could also leverage it.
>>>>
>>>> Thanks,
>>>>
>>>> Madhoo/Jhansi
>>>>
>>>> ___
>>>> 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
>>>>
>>>>
>>>
>>>
>>> --
>>> Stian Sandvold
>>> Software developer, DHIS2
>>> University of Oslo
>>> http://www.dhis2.org
>>>
>>> ___
>>> 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


Re: [Dhis2-devs] Issue with Enrollments API Pagination - Not returning pager details

2017-11-07 Thread Morten Olav Hansen
Hi

Did you have a look at the enrollment API docs? please try out
totalPages=true and see if it does what you want.

https://docs.dhis2.org/master/en/developer/html/webapi_enrollment_instance_query.html

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Wed, Nov 8, 2017 at 10:23 AM, Stian Sandvold <st...@dhis2.org> wrote:

> Hi Jhansi,
>
> You can report bugs like these directly to Jira (http://jira.dhis2.org).
>
> I created a bug report for you, you can see it here:
> https://jira.dhis2.org/browse/DHIS2-2476
>
> Please add additional information in the comment section if you have
> something to add.
>
> On Wed, Nov 8, 2017 at 6:27 AM, Jhansi Reddy Karee <
> jhans...@thoughtworks.com> wrote:
>
>> Hi Team,
>>
>> We are experiencing an issue with the enrollments API pagination on DHIS
>> 2.26 (it exists on the later versions of DHIS as well). When the
>> enrollments API is paginated, it returns the enrollments for the given
>> pageSize and the page number. But, *it doesn't return the pager params
>> as a part of each page response, like it returns in other APIs*. By
>> pager params we mean, paging details like total, pageSize, page, pageCount.
>>
>> Without the paging params it would be hard for us to figure out on how
>> many pages should we download and also at which page we should stop
>> downloading. Because of this issue, we are not able to paginate the
>> enrollments API.
>>
>> We are about to go live with programs with registration which would
>> internally use the enrollments API. We are expecting a lot of data entry to
>> be done in the near future. This means there will be a lot of enrollments
>> in the system and downloading all of them in a single API call, would be
>> problematic for our end users who are in remote locations with very slow
>> internet connectivity.
>>
>> *Will you be able to fix the pagination of enrollments API to return the
>> paging params, so that it is consistent with the other API’s paging
>> response *and we could also leverage it.
>>
>> Thanks,
>>
>> Madhoo/Jhansi
>>
>> ___
>> 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
>>
>>
>
>
> --
> Stian Sandvold
> Software developer, DHIS2
> University of Oslo
> http://www.dhis2.org
>
> ___
> 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


Re: [Dhis2-devs] Appstore googlability?

2017-11-01 Thread Morten Olav Hansen
Hi Knut

I have submitted a "request to index" to Google, let's see if it helps or
not... I guess for it to be indexed to start with, it needs to be linked
from somewhere.

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Wed, Nov 1, 2017 at 4:26 PM, Knut Staring <knu...@gmail.com> wrote:

> I really like the new Appstore, https://play.dhis2.org/appstore/
>
> However, is Google indexing this?
>
> A colleague was trying to find the WHO Data Quality Tool app for DHIS2,
> with the following search:
> https://www.google.ch/search?q=dhis2+data+quality+app
>
> But it seems mainly to point to the GitHub source code and the Statistics
> Norway manual
>
> Cheers,
> Knut
>
> ___
> 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


Re: [Dhis2-devs] [Dhis2-users] Populating data from Excel to DHIS2 Data Entry Web Form with Internet Explorer

2017-10-26 Thread Morten Olav Hansen
Hi there

To make sure that the data values are saved, you need to trigger the
"change" event on each field.

https://github.com/dhis2/dhis2-core/blob/master/dhis-2/
dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-
dataentry/javascript/form.js#L538

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Thu, Oct 26, 2017 at 9:18 PM, Damasceno Lopes <damascenolop...@gmail.com>
wrote:

> Hi!
>
>
>
> I’m trying to populate data from Excel to  DHIS2 Data Entry Web Form using
> VBA code in Excel with Internet Explorer, the data goes to form but not
> persisted to database. Anyone already try to do that?
>
>
>
> The VBA code, tested to fill form in the demo instance:
>
>
>
> 'Before run this Macro make sure to login into dhis2-demo using Internet
> Explorer
>
> Sub FillInternetForm()
>
> Dim IE As Object
>
>
>
> Set IE = CreateObject("InternetExplorer.Application")
>
>
>
> IE.Navigate "https://play.dhis2.org/demo/dhis-web-dataentry/index.action;
>
> IE.Visible = True
>
>
>
> While IE.busy
>
> DoEvents 'wait until IE is done loading page.
>
> Wend
>
>
>
> 'You have 30 seconds to choose Orgunit, form and period
>
> 'Eg. Sierra Leone, Emergency Response, Result
>
> Application.Wait Now + TimeValue("00:00:30")
>
>
>
> 'Populating Data to two first fields
>
> IE.document.getElementById("KFnFpbqDqji-bRowv6yZOF2-val").Focus
>
> IE.document.getElementById("KFnFpbqDqji-bRowv6yZOF2-val").Value = "20"
>
> Application.Wait Now + TimeValue("00:00:02")
>
> IE.document.getElementById("zFFb3bar4Ct-bRowv6yZOF2-val").Focus
>
> IE.document.getElementById("zFFb3bar4Ct-bRowv6yZOF2-val").Value = "30"
>
>
>
> End Sub
>
>
>
> The result:
>
>
>
>
>
> The Data goes to the field but not persisted, the field don’t change color.
>
> I appreciate your help if you can provide.
>
>
>
> Thank you
>
> *Damasceno Lopes,  MSc*
>
> *Health Information System Officer*
>
> Friends in Global Health, Mozambique
>
> *+258844626770 <+258%2084%20462%206770>*  | *+258829502145
> <damasceno.lo...@fgh.org.mz>*
>
> [image: FGH]
>
>
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> 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


Re: [Dhis2-devs] [Dhis2-users] Tracker associate question

2017-10-23 Thread Morten Olav Hansen
Hi Georgi

Could you please file JIRA issues for this? jira.dhis2.org (new feature, as
its not currently supported)

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Mon, Oct 23, 2017 at 4:30 PM, Georgi Chakarov <geo...@logicaloutcomes.net
> wrote:

> Hello,
>
>
>
> I am trying to use the “Tracker associate” value type for both tracked
> entity attributes and data elements in tracker capture program.
>
> I have two questions:
>
>
>
> 1)  When I assign “Tracker associate” value type to a *tracked entity
> attribute* and I select a registered tracked entity for this attribute I
> get the UID of the tracked entity. Is there a way to get the name of the
> tracked entity, instead of the UID? Is there a way to control which
> attribute can be displayed in the “Tracker associate” value at all? See a
> screenshot for more clarity.
>
>
>
>
>
> 2)  When I set a data element in a tracker capture program to be of a
> value type “Tracker associate” at data entry I get that this value type is
> not supported. See screenshot below. Why is this so? When will this value
> type be available for data elements? We really need this value type to be
> functioning.
>
>
>
>
>
>
>
>
>
> All my test have also been performed in the Sierra Leone demo, so I can
> confirm that the same issues are present there as well.
>
>
>
> Regards,
>
>
>
> Georgi
>
>
>
>
> Georgi Chakarov, CIA | geo...@logicaloutcomes.net | +1-647-478-5634 x
> 104 | LogicalOutcomes c/o Centre for Social Innovation, 720 Bathurst
> Street, Toronto Canada M5S 2R4 | *You may unsubscribe from receiving
> commercial electronic messages from LogicalOutcomes by emailing *
> *i...@logicaloutcomes.net* <i...@logicaloutcomes.net>
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> 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


Re: [Dhis2-devs] [Dhis2-users] Import of a new event (not from another instance)

2017-10-11 Thread Morten Olav Hansen
Hi there

Sending in event IDs is not required, but its definitely recommended if you
want do repeated imports (good to have a unique id connected to your event
so that you don't end up with duplicates)

We offer a few options to generate UIDs:

1) Using the web-api /api/system/id (you can add limit=X to adjust how many
you need)
2) Install the dhis2 cli (npm -g install dhis2-cli) and then just do "dhis2
uid", or "dhis2 uid -h" to get more help
3) if you are nodejs directly you can also use the dhis2-uid lib for
generating uids (npm --save install dhis2-uid)

https://www.npmjs.com/package/dhis2-cli
https://www.npmjs.com/package/dhis2-uid

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Wed, Oct 11, 2017 at 1:21 PM, Terence Scott <
terence.sc...@rabiesalliance.org> wrote:

> Dear All
>
> We have collected animal vaccination data (including GPS coordinates,
> time, date, species etc.) in a custom developed program and have a CSV
> output for this program. We are looking to try to import the data from the
> custom-built programme into our DHIS2 instance via Event import. I have
> gotten the import to work on Event export files that I have edited with new
> animal data (e.g. by changing the species) and this works, as it simply
> updates the old event (based on the event ID). However, we would like to
> import these data as new events as opposed to simply replacing existing
> events currently on the system.
>
> Therefore, I would like to please find out as to whether it is possible to
> do one of the following:
>
> 1) Do an event import without an Event ID (i.e. register a new event on
> the DHIS2 instance via Event import)
> - I have looked through the documentation but am unable to find out
> whetherthis is possible
> - In the Developer Docs, it seems to mention that import using XML
> does notrequire an Event ID, but I have not managed to
> determine whether I am  misinterpreting this or whether I
> simply do not know how to do it.
>
> 2) Generate our own Event IDs in our custom-built programme that will be
> recognised by the DHIS2 instance.
> - Is there some way by which the Event IDs could be automatically
> generated  outside of the DHIS2 instance (in our programme) so that
> new events can be  imported into the instance?
>
> Please let me know if you need any further clarification. I would really
> appreciate any help that you could provide!
>
> Kind regards,
> Terence
>
>
> Terence Scott
>
> Global Alliance for Rabies Control (GARC)
> Pan-African Rabies Control Network (PARACON) Steering Committee
> terence.sc...@rabiesalliance.org
> https://paracon.rabiesalliance.org
> Skype: tpscott1987
>
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> 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


Re: [Dhis2-devs] [DHIS2-2172] Metadata import was failing to sync user groups

2017-09-19 Thread Morten Olav Hansen
Hi Srikanth

My thoughts on that is that we are soon releasing 2.28, so our focus is on
that release, I will have a look after the release, or you are welcome to
contribute with a patch if you can.

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Tue, Sep 19, 2017 at 7:23 PM, Srikanth Katta <srika...@thoughtworks.com>
wrote:

> Hi Morten,
>
> Could you please let us know your thoughts on this.
>
> Thanks,
>
> Srikanth Katta.
> ThoughtWorks.
>
___
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


Re: [Dhis2-devs] DHIS-2 API

2017-09-10 Thread Morten Olav Hansen
Hi Omer

Please have a look at our data set completeness APIs

https://docs.dhis2.org/master/en/developer/html/webapi_complete_data_set_registrations.html

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Mon, Sep 11, 2017 at 11:08 AM, Omer Butt <omerbutt2...@gmail.com> wrote:

> *Question:*
> I am Using DHIS-2 API's in my project.
> I have done data entry for data sets for the month
> of June,July and Aug 2017.
>
> Now I want a list that contain detail   about the data entry status of
> data sets for months.
> I have to achieve this using DHIS-2 API's.
>
> *For Example:*
>
> *list would be like this:*
>
> *Sr.No   --Org Unit -- Data set   --Period --Status*
>   1   Okara FM-12017-07
>  completed
>   2   THQ   FM-22017-08
>  completed
>
>
> Kindly Help me To get solution that fulfill this requirement or something
> like this.
>
>
> Thanks.
>
> ___
> 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


Re: [Dhis2-devs] Error in password reset and new user creation

2017-08-29 Thread Morten Olav Hansen
Hi there

Would you mind filling out a JIRA issue for this? jira.dhis2.org

As a workaround, could you try and enter "System Settings" then "Access",
and see if changing the minimum characters in password setting, just set it
to one of the other values... then back to the value you had it at

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Wed, Aug 30, 2017 at 3:32 AM, Mike Johnson <mjohn...@pih.org> wrote:

> Hi,
>
>
>
> A few weeks ago, we noticed that changes to our user roles were not being
> saved appropriately, and the authorities that were assigned were not being
> saved.
>
> Yesterday, we lost our ability to change user passwords and create new
> users.
>
>
>
> We are running Version 2.27 on Ubuntu 16.04, using Oracle Java 8.
>
> We are getting this error:
>
> Declaring class of member type [public final native java.lang.Class
> java.lang.Object.getClass()] is excluded!
>
>
>
> The complete error is attached at .txt.
>
>
>
> I appreciate any advice that you might have. Thank you!
>
>
>
> *Mike Johnson, MSc*
>
> Senior Analyst | Monitoring, Evaluation, and Quality Improvement
>
> Partners In Health
>
> Skype: mjohn...@pih.org | Phone: 857.206.5246
>
>
>
> ___
> 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


Re: [Dhis2-devs] [Dhis2-users] Timeout when updating large organisation unit group in large instance (2.23)

2017-08-29 Thread Morten Olav Hansen
Sorry, but the metadata importer was quite slow before ;-) it has been
greatly improved in 224 and going forward...

Did you try and enable the preheat parameter? preheatCache=true

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Tue, Aug 29, 2017 at 2:00 PM, Martin Van Aken <mar...@joyouscoding.com>
wrote:

> Not sure I understand what you mean? Agree that the logical path is the
> upgrade.
>
> Martin
>
> On Mon, Aug 28, 2017 at 10:20 PM, Morten Olav Hansen <mor...@dhis2.org>
> wrote:
>
>> Sure, but if you are on 2.23... dot dot dot... some concessions has to be
>> made
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Tue, Aug 29, 2017 at 2:07 AM, Martin Van Aken <mar...@joyouscoding.com
>> > wrote:
>>
>>> Agree on the upgrade but not every system we support is ours - ie
>>> decision not 100% in our hands. We manage with the API for now, but that's
>>> not practical for end users.
>>>
>>> Martin
>>>
>>> On Mon, Aug 28, 2017 at 8:47 PM, Morten Olav Hansen <mor...@dhis2.org>
>>> wrote:
>>>
>>>> If you are willing to do manual import (using the command line), in 223
>>>> you can use /api/23/metadata I think... it will use the "new" importer..
>>>> which should be quicker, please be aware that 223 is not supported anymore,
>>>> so please update ASAP if you can..
>>>>
>>>> --
>>>> Morten Olav Hansen
>>>> Senior Engineer, DHIS 2
>>>> University of Oslo
>>>> http://www.dhis2.org
>>>>
>>>> On Tue, Aug 29, 2017 at 1:09 AM, Martin Van Aken <
>>>> mar...@joyouscoding.com> wrote:
>>>>
>>>>> Hi Morten,
>>>>> This is on 2.23 - I tried to manipulate big groups on the play demo
>>>>> instance and it goes well there.
>>>>>
>>>>> I'll try to get some logs.
>>>>>
>>>>> Martin
>>>>>
>>>>> On Mon, Aug 28, 2017 at 5:27 PM, Morten Olav Hansen <mor...@dhis2.org>
>>>>> wrote:
>>>>>
>>>>>> Hi Martin
>>>>>>
>>>>>> What version of DHIS2 are you on? if you are on 227 there is
>>>>>> currently a bug that has lowered performance in 227 vs the older versions
>>>>>> (226, 225, etc..)
>>>>>>
>>>>>> If you are not, if you could.. please file a JIRA issue and either
>>>>>> attach the org units, or email me directly
>>>>>>
>>>>>> --
>>>>>> Morten Olav Hansen
>>>>>> Senior Engineer, DHIS 2
>>>>>> University of Oslo
>>>>>> http://www.dhis2.org
>>>>>>
>>>>>> On Mon, Aug 28, 2017 at 10:14 PM, Martin Van Aken <
>>>>>> mar...@joyouscoding.com> wrote:
>>>>>>
>>>>>>> Hello Joseph,
>>>>>>> Thanks for the feedback. I'll try rh
>>>>>>>
>>>>>>> On Mon, Aug 28, 2017 at 5:13 PM, Joseph K. Osborn <
>>>>>>> osbornlegr...@hotmail.fr> wrote:
>>>>>>>
>>>>>>>> Hello Martin,
>>>>>>>>
>>>>>>>> We had this problem with 2.22 or 2.23, the solution was to perform
>>>>>>>> these updates during off-peak hours, times when the server was not too
>>>>>>>> busy, so after 10pm, and it worked.
>>>>>>>>
>>>>>>>> But with 2.26 which has improved the analytic time and executions
>>>>>>>> of several queries, we do our updates even during the day.
>>>>>>>>
>>>>>>>> Regards.
>>>>>>>>
>>>>>>>>
>>>>>>>> Osborn
>>>>>>>> --
>>>>>>>> *De :* Dhis2-devs <dhis2-devs-bounces+osbornlegrand=
>>>>>>>> hotmail...@lists.launchpad.net> de la part de Martin Van Aken <
>>>>>>>> mar...@joyouscoding.com>
>>>>>>>> *Envoyé :* lundi 28 août 2017 15:34:53
>>>>>>>> *À :* Michael Mwebaze
>>>>>>>> *Cc :* dhis2-users; DHIS 2 Developers list
>>>>>>>> *Objet :* R

Re: [Dhis2-devs] [Dhis2-users] Timeout when updating large organisation unit group in large instance (2.23)

2017-08-28 Thread Morten Olav Hansen
Sure, but if you are on 2.23... dot dot dot... some concessions has to be
made

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Tue, Aug 29, 2017 at 2:07 AM, Martin Van Aken <mar...@joyouscoding.com>
wrote:

> Agree on the upgrade but not every system we support is ours - ie decision
> not 100% in our hands. We manage with the API for now, but that's not
> practical for end users.
>
> Martin
>
> On Mon, Aug 28, 2017 at 8:47 PM, Morten Olav Hansen <mor...@dhis2.org>
> wrote:
>
>> If you are willing to do manual import (using the command line), in 223
>> you can use /api/23/metadata I think... it will use the "new" importer..
>> which should be quicker, please be aware that 223 is not supported anymore,
>> so please update ASAP if you can..
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Tue, Aug 29, 2017 at 1:09 AM, Martin Van Aken <mar...@joyouscoding.com
>> > wrote:
>>
>>> Hi Morten,
>>> This is on 2.23 - I tried to manipulate big groups on the play demo
>>> instance and it goes well there.
>>>
>>> I'll try to get some logs.
>>>
>>> Martin
>>>
>>> On Mon, Aug 28, 2017 at 5:27 PM, Morten Olav Hansen <mor...@dhis2.org>
>>> wrote:
>>>
>>>> Hi Martin
>>>>
>>>> What version of DHIS2 are you on? if you are on 227 there is currently
>>>> a bug that has lowered performance in 227 vs the older versions (226, 225,
>>>> etc..)
>>>>
>>>> If you are not, if you could.. please file a JIRA issue and either
>>>> attach the org units, or email me directly
>>>>
>>>> --
>>>> Morten Olav Hansen
>>>> Senior Engineer, DHIS 2
>>>> University of Oslo
>>>> http://www.dhis2.org
>>>>
>>>> On Mon, Aug 28, 2017 at 10:14 PM, Martin Van Aken <
>>>> mar...@joyouscoding.com> wrote:
>>>>
>>>>> Hello Joseph,
>>>>> Thanks for the feedback. I'll try rh
>>>>>
>>>>> On Mon, Aug 28, 2017 at 5:13 PM, Joseph K. Osborn <
>>>>> osbornlegr...@hotmail.fr> wrote:
>>>>>
>>>>>> Hello Martin,
>>>>>>
>>>>>> We had this problem with 2.22 or 2.23, the solution was to perform
>>>>>> these updates during off-peak hours, times when the server was not too
>>>>>> busy, so after 10pm, and it worked.
>>>>>>
>>>>>> But with 2.26 which has improved the analytic time and executions of
>>>>>> several queries, we do our updates even during the day.
>>>>>>
>>>>>> Regards.
>>>>>>
>>>>>>
>>>>>> Osborn
>>>>>> --
>>>>>> *De :* Dhis2-devs <dhis2-devs-bounces+osbornlegrand=
>>>>>> hotmail...@lists.launchpad.net> de la part de Martin Van Aken <
>>>>>> mar...@joyouscoding.com>
>>>>>> *Envoyé :* lundi 28 août 2017 15:34:53
>>>>>> *À :* Michael Mwebaze
>>>>>> *Cc :* dhis2-users; DHIS 2 Developers list
>>>>>> *Objet :* Re: [Dhis2-devs] [Dhis2-users] Timeout when updating large
>>>>>> organisation unit group in large instance (2.23)
>>>>>>
>>>>>> Got nothing until now but I'm investigating in that direction right
>>>>>> now.
>>>>>>
>>>>>> Thanks already for the pointer!
>>>>>>
>>>>>> Martin
>>>>>>
>>>>>> On Mon, Aug 28, 2017 at 4:12 PM, Michael Mwebaze <
>>>>>> michael.mweb...@gmail.com> wrote:
>>>>>>
>>>>>>> Hi Martin,
>>>>>>>
>>>>>>> do you have access to the Tomcat logs? If an exception is being
>>>>>>> thrown that would also be helpful to figure out what is happening.
>>>>>>>
>>>>>>> Regards,
>>>>>>>
>>>>>>> Michael
>>>>>>>
>>>>>>> On 28 August 2017 at 10:04, Martin Van Aken <mar...@joyouscoding.com
>>>>>>> > wrote:
>>>>>>>
>>>>>>>> Hi DHIS2 users & developers,
>>>>>>>> We have a

Re: [Dhis2-devs] [Dhis2-users] Timeout when updating large organisation unit group in large instance (2.23)

2017-08-28 Thread Morten Olav Hansen
If you are willing to do manual import (using the command line), in 223 you
can use /api/23/metadata I think... it will use the "new" importer.. which
should be quicker, please be aware that 223 is not supported anymore, so
please update ASAP if you can..

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Tue, Aug 29, 2017 at 1:09 AM, Martin Van Aken <mar...@joyouscoding.com>
wrote:

> Hi Morten,
> This is on 2.23 - I tried to manipulate big groups on the play demo
> instance and it goes well there.
>
> I'll try to get some logs.
>
> Martin
>
> On Mon, Aug 28, 2017 at 5:27 PM, Morten Olav Hansen <mor...@dhis2.org>
> wrote:
>
>> Hi Martin
>>
>> What version of DHIS2 are you on? if you are on 227 there is currently a
>> bug that has lowered performance in 227 vs the older versions (226, 225,
>> etc..)
>>
>> If you are not, if you could.. please file a JIRA issue and either attach
>> the org units, or email me directly
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Mon, Aug 28, 2017 at 10:14 PM, Martin Van Aken <
>> mar...@joyouscoding.com> wrote:
>>
>>> Hello Joseph,
>>> Thanks for the feedback. I'll try rh
>>>
>>> On Mon, Aug 28, 2017 at 5:13 PM, Joseph K. Osborn <
>>> osbornlegr...@hotmail.fr> wrote:
>>>
>>>> Hello Martin,
>>>>
>>>> We had this problem with 2.22 or 2.23, the solution was to perform
>>>> these updates during off-peak hours, times when the server was not too
>>>> busy, so after 10pm, and it worked.
>>>>
>>>> But with 2.26 which has improved the analytic time and executions of
>>>> several queries, we do our updates even during the day.
>>>>
>>>> Regards.
>>>>
>>>>
>>>> Osborn
>>>> --
>>>> *De :* Dhis2-devs <dhis2-devs-bounces+osbornlegrand=
>>>> hotmail...@lists.launchpad.net> de la part de Martin Van Aken <
>>>> mar...@joyouscoding.com>
>>>> *Envoyé :* lundi 28 août 2017 15:34:53
>>>> *À :* Michael Mwebaze
>>>> *Cc :* dhis2-users; DHIS 2 Developers list
>>>> *Objet :* Re: [Dhis2-devs] [Dhis2-users] Timeout when updating large
>>>> organisation unit group in large instance (2.23)
>>>>
>>>> Got nothing until now but I'm investigating in that direction right
>>>> now.
>>>>
>>>> Thanks already for the pointer!
>>>>
>>>> Martin
>>>>
>>>> On Mon, Aug 28, 2017 at 4:12 PM, Michael Mwebaze <
>>>> michael.mweb...@gmail.com> wrote:
>>>>
>>>>> Hi Martin,
>>>>>
>>>>> do you have access to the Tomcat logs? If an exception is being thrown
>>>>> that would also be helpful to figure out what is happening.
>>>>>
>>>>> Regards,
>>>>>
>>>>> Michael
>>>>>
>>>>> On 28 August 2017 at 10:04, Martin Van Aken <mar...@joyouscoding.com>
>>>>> wrote:
>>>>>
>>>>>> Hi DHIS2 users & developers,
>>>>>> We have a relatively large instance of DHIS2 (30 000 org units) where
>>>>>> we have several groups that can make up to 3 000 org unit each.
>>>>>>
>>>>>> When trying to update them through the UX, our server get a timeout
>>>>>> (looking in the console for the network calls).
>>>>>>
>>>>>> The call is like this:
>>>>>>
>>>>>> /api/organisationUnitGroups/RZYPaa6gxq8?mergeMode=REPLACE
>>>>>>
>>>>>> When using the API, we get no problem but we typically add/remove
>>>>>> relations one by one (so the call is very different).
>>>>>>
>>>>>>  I tested on the last version on play and everything is working
>>>>>> there, but the version is quite different too.
>>>>>>
>>>>>> Is this something someone encountered already? Anything we could do
>>>>>> to avoid this ?
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> Martin
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> *Martin Van Aken - **F

Re: [Dhis2-devs] [Dhis2-users] Timeout when updating large organisation unit group in large instance (2.23)

2017-08-28 Thread Morten Olav Hansen
Hi Martin

What version of DHIS2 are you on? if you are on 227 there is currently a
bug that has lowered performance in 227 vs the older versions (226, 225,
etc..)

If you are not, if you could.. please file a JIRA issue and either attach
the org units, or email me directly

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Mon, Aug 28, 2017 at 10:14 PM, Martin Van Aken <mar...@joyouscoding.com>
wrote:

> Hello Joseph,
> Thanks for the feedback. I'll try rh
>
> On Mon, Aug 28, 2017 at 5:13 PM, Joseph K. Osborn <
> osbornlegr...@hotmail.fr> wrote:
>
>> Hello Martin,
>>
>> We had this problem with 2.22 or 2.23, the solution was to perform these
>> updates during off-peak hours, times when the server was not too busy, so
>> after 10pm, and it worked.
>>
>> But with 2.26 which has improved the analytic time and executions of
>> several queries, we do our updates even during the day.
>>
>> Regards.
>>
>>
>> Osborn
>> --
>> *De :* Dhis2-devs <dhis2-devs-bounces+osbornlegrand=hotmail.fr@lists.
>> launchpad.net> de la part de Martin Van Aken <mar...@joyouscoding.com>
>> *Envoyé :* lundi 28 août 2017 15:34:53
>> *À :* Michael Mwebaze
>> *Cc :* dhis2-users; DHIS 2 Developers list
>> *Objet :* Re: [Dhis2-devs] [Dhis2-users] Timeout when updating large
>> organisation unit group in large instance (2.23)
>>
>> Got nothing until now but I'm investigating in that direction right now.
>>
>> Thanks already for the pointer!
>>
>> Martin
>>
>> On Mon, Aug 28, 2017 at 4:12 PM, Michael Mwebaze <
>> michael.mweb...@gmail.com> wrote:
>>
>>> Hi Martin,
>>>
>>> do you have access to the Tomcat logs? If an exception is being thrown
>>> that would also be helpful to figure out what is happening.
>>>
>>> Regards,
>>>
>>> Michael
>>>
>>> On 28 August 2017 at 10:04, Martin Van Aken <mar...@joyouscoding.com>
>>> wrote:
>>>
>>>> Hi DHIS2 users & developers,
>>>> We have a relatively large instance of DHIS2 (30 000 org units) where
>>>> we have several groups that can make up to 3 000 org unit each.
>>>>
>>>> When trying to update them through the UX, our server get a timeout
>>>> (looking in the console for the network calls).
>>>>
>>>> The call is like this:
>>>>
>>>> /api/organisationUnitGroups/RZYPaa6gxq8?mergeMode=REPLACE
>>>>
>>>> When using the API, we get no problem but we typically add/remove
>>>> relations one by one (so the call is very different).
>>>>
>>>>  I tested on the last version on play and everything is working there,
>>>> but the version is quite different too.
>>>>
>>>> Is this something someone encountered already? Anything we could do to
>>>> avoid this ?
>>>>
>>>> Thanks,
>>>>
>>>> Martin
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> *Martin Van Aken - **Freelance Enthusiast Developer*
>>>>
>>>> Mobile : +32 486 899 652
>>>>
>>>> Follow me on Twitter : @martinvanaken
>>>> <http://twitter.com/martinvanaken>
>>>> Call me on Skype : vanakenm
>>>> Hang out with me : mar...@joyouscoding.com
>>>> Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken
>>>> Company website : www.joyouscoding.com
>>>>
>>>> ___
>>>> Mailing list: https://launchpad.net/~dhis2-users
>>>> Post to : dhis2-us...@lists.launchpad.net
>>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>>> More help   : https://help.launchpad.net/ListHelp
>>>>
>>>>
>>>
>>
>>
>> --
>> *Martin Van Aken - **Freelance Enthusiast Developer*
>>
>> Mobile : +32 486 899 652
>>
>> Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken>
>> Call me on Skype : vanakenm
>> Hang out with me : mar...@joyouscoding.com
>> Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken
>> Company website : www.joyouscoding.com
>>
>
>
>
> --
> *Martin Van Aken - **Freelance Enthusiast Developer*
>
> Mobile : +32 486 899 652
>
> Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken>
> Call me on Skype : vanakenm
> Hang out with me : mar...@joyouscoding.com
> Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken
> Company website : www.joyouscoding.com
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> 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


Re: [Dhis2-devs] Unable to open settings app.

2017-08-28 Thread Morten Olav Hansen
Hi

Looking at the stack trace, it looks like this is related to attributes on
users.. would you mind filing a JIRA issue for it?

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Mon, Aug 28, 2017 at 1:11 PM, Pooben Dass <poo...@hisp.org> wrote:

> Hi Devs
>
> Please can you assist us we are unable to access the settings app on a
> 2.27 dhis2 instance?
>
> This the error we see on the console:-
>
> Loading: DHIS 2 System Settings Management v27.0.5 settings-app.js:81
> Built Tue Aug 08 2017 09:26:25 GMT+ (UTC) Api.js:244
> GET http://localhost:9090/dhis/api/26/configuration 500 (Internal Server
> Error) settingsActions.js:88
>
> Failed to load system settings: {"systemId":"c771d835-c9f7-
> 43e3-b67a-15f2cf793543","offlineOrganisationUnitLevel":{"name":"Service
> Point","created":"2015-11-19T20:01:54.687","lastUpdated":"2017-08-
>
>
> Attached is a copy of the server log.
>
>
> Regards
> Pooben
>
> *This message and any attachments are subject to a disclaimer published at
> http://www.hisp.org/policies.html#comms_disclaimer
> <http://www.hisp.org/policies.html#comms_disclaimer>.  Please read the
> disclaimer before opening any attachment or taking any other action in
> terms of this electronic transmission.  If you cannot access the
> disclaimer, kindly send an email to disclai...@hisp.org
> <disclai...@hisp.org> and a copy will be provided to you. By replying to
> this e-mail or opening any attachment you agree to be bound by the
> provisions of the disclaimer.*
>
> ___
> 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


Re: [Dhis2-devs] metadata import in 2.27 much slower than in 2.26

2017-08-25 Thread Morten Olav Hansen
Hi Vlad

No, it should not be like that. Would you mind filing a JIRA issue? and
share the payload (either in JIRA, or directly to me)

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Thu, Aug 24, 2017 at 10:13 PM, Vladimer Shioshvili <vshioshv...@gmail.com
> wrote:

> I am getting really large import time discrepancies between 2.26 and 2.27.
>
> I stand up a blank DHIS2 locally with postgres 9.5. Import one very small
> file (attribute definition used in org units, and one level 1 and one level
> 2 org units). That takes under one second in both.
>
> Then I try to import a hierarchy that starts at level 3 and has 14458 org
> units. This is the call i make on both versions of DHIS2 to import is:
>
> curl -u 'admin:district' -H 'Content-Type:application/xml' -X POST '
> http://localhost:8080/api/26/metadata?atomicMode=NONE;
> importStrategy=CREATE' --data-binary @import.xml
>
> 2.26 takes under 30 seconds. 2.27 takes over 15 minutes. Is this normal? I
> know it's not a small hierarchy, but more than 30 fold increase between
> versions seems a bit much.
>
> I've tried multiple times each, and get consistent results.
>
>
> This is the log from 2.26:
>
> * INFO  2017-08-24 15:53:10,602 (admin) Import:Start
> (DefaultMetadataImportService.java [http-bio-8080-exec-7])
>
> * INFO  2017-08-24 15:53:10,788 (admin) Import:Preheat[REFERENCE] took
> 0.18 seconds (DefaultPreheatService.java [http-bio-8080-exec-7])
>
> * INFO  2017-08-24 15:53:11,178 (admin) Import:Validation took 0.31
> seconds (DefaultObjectBundleValidationService.java [http-bio-8080-exec-7])
>
> * INFO  2017-08-24 15:53:11,191 (admin) Creating 14458 object(s) of type
> OrganisationUnit (DefaultObjectBundleService.java [http-bio-8080-exec-7])
>
> * INFO  2017-08-24 15:53:35,991 (admin) Import:Commit took 24.81 seconds
> (DefaultMetadataImportService.java [http-bio-8080-exec-7])
>
> * INFO  2017-08-24 15:53:35,994 (admin) Import:Done took 25.39 seconds
> (DefaultMetadataImportService.java [http-bio-8080-exec-7])
>
>
> This is the log from 2.27:
>
> * INFO  2017-08-24 15:56:59,099 (admin) Import:Start
> (DefaultMetadataImportService.java [http-bio-8080-exec-4])
>
> * INFO  2017-08-24 15:56:59,265 (admin) Import:Preheat[REFERENCE] took
> 0.16 seconds (DefaultPreheatService.java [http-bio-8080-exec-4])
>
> * INFO  2017-08-24 15:56:59,912 (admin) Import:Validation took 0.36
> seconds (DefaultObjectBundleValidationService.java [http-bio-8080-exec-4])
>
> * INFO  2017-08-24 15:56:59,925 (admin) Creating 14458 object(s) of type
> OrganisationUnit (DefaultObjectBundleService.java [http-bio-8080-exec-4])
>
> * INFO  2017-08-24 16:12:41,690 Cleared Hibernate caches
> (DefaultHibernateCacheManager.java [http-bio-8080-exec-4])
>
> * INFO  2017-08-24 16:12:41,721 (admin) Import:Commit took 941.80 seconds
> (DefaultMetadataImportService.java [http-bio-8080-exec-4])
>
> * INFO  2017-08-24 16:12:41,723 (admin) Import:Done took 942.62 seconds
> (DefaultMetadataImportService.java [http-bio-8080-exec-4])
>
>
> Thanks,
>
> Vlad
>
> ___
> 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


Re: [Dhis2-devs] async metadata import in 2.27

2017-08-22 Thread Morten Olav Hansen
Hi Vlad

Yes, this is on the list of todo ;) hopefully should have time this week
(or it will have to wait for next week)

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Tue, Aug 22, 2017 at 12:53 PM, Vladimer Shioshvili <vshioshv...@gmail.com
> wrote:

> Hi Morten,
>
> I did create a JIRA ticket (https://jira.dhis2.org/browse/DHIS2-2023) and
> have not heard back, i really don't think it's working as
> advertised/intended, unless I am the one doing something wrong with my
> calls:
>
>
> 1) I get the OU hierarchy from demo site:
>
> curl -u 'admin:district' -X GET 'https://play.dhis2.org/demo/
> api/26/metadata.xml?organisationUnits=true' > play_ou.xml
>
>
> 2) i use the same file to upload:
>
> curl -u 'admin:district' -H 'Content-Type:application/xml' -X POST '
> https://play.dhis2.org/demo/api/26/metadata?atomicMode=NONE=true'
> --data-binary @play_ou.xml -v
>
> it takes about 45 seconds to come back with this:
>
>
> *   Trying 52.30.174.183...
>
> * Connected to play.dhis2.org (52.30.174.183) port 443 (#0)
>
> * TLS 1.2 connection using TLS_ECDHE_RSA_WITH_RC4_128_SHA
>
> * Server certificate: play.dhis2.org
>
> * Server certificate: RapidSSL SHA256 CA - G3
>
> * Server certificate: GeoTrust Global CA
>
> * Server auth using Basic with user 'admin'
>
> > POST /demo/api/26/metadata?atomicMode=NONE=true HTTP/1.1
>
> > Host: play.dhis2.org
>
> > Authorization: Basic YWRtaW46ZGlzdHJpY3Q=
>
> > User-Agent: curl/7.43.0
>
> > Accept: */*
>
> > Content-Type:application/xml
>
> > Content-Length: 1568899
>
> > Expect: 100-continue
>
> >
>
> < HTTP/1.1 100 Continue
>
> * We are completely uploaded and fine
>
> < HTTP/1.1 204 No Content
>
> < Server: nginx/1.4.6 (Ubuntu)
>
> < Date: Tue, 22 Aug 2017 10:46:17 GMT
>
> < Connection: keep-alive
>
> < X-XSS-Protection: 1; mode=block
>
> < X-Frame-Options: SAMEORIGIN
>
> < X-Content-Type-Options: nosniff
>
> < Set-Cookie: JSESSIONID=3A6F3850230C09C81BDB67310398FA68; Path=/demo/;
> HttpOnly
>
> <
>
> * Connection #0 to host play.dhis2.org left intact
>
>
> After I get the response back, when i do the status: curl -u
> 'admin:district' -X GET https://play.dhis2.org/demo/
> api/26/system/tasks/METADATA_IMPORT
>
> I get this back:
>
> [{"uid":"lqOCBbHOTew","level":"INFO","category":"METADATA_
> IMPORT","time":"2017-08-22T10:46:17.866","message":"(admin) Import:Done
> took 43.66 seconds","completed":true},{"uid":"y2dBsPZrwMX","level":"
> INFO","category":"METADATA_IMPORT","time":"2017-08-22T10:45:34.428","message":"(admin)
> Updating 1332 object(s) of type OrganisationUnit","completed":
> false},{"uid":"GuGaKcJAToU","level":"INFO","category":"
> METADATA_IMPORT","time":"2017-08-22T10:45:34.209","message":"(admin)
> Import:Start","completed":false}]
>
>
> It takes about 43 seconds to import the file - POST does not come back
> until import is actually done. Documentation has this:
>
>
> async false, true Asynchronous import, returns immediately with a
> *Location* header pointing to the location of the *importReport*.
> And there is no location returned with the 204 (which is not the right
> HTTP code anyway).
>
> I am also concerned about the time - when doing this with some PEPFAR
> countries, hierarchy with 14 thousand OUs took 8 hours to import.
>
> Thanks,
> Vlad
>
> On Sun, Aug 6, 2017 at 1:44 PM Morten Olav Hansen <mor...@dhis2.org>
> wrote:
>
>> Hi
>>
>> It should work like that. Would you mind writing a JIRA issue?
>> jira.dhis2.org
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Thu, Aug 3, 2017 at 12:03 PM, Vladimer Shioshvili <
>> vshioshv...@gmail.com> wrote:
>>
>>> Hi everyone,
>>>
>>> I am trying to import xml metadata (org units) into 2.27, and async=true
>>> query parameter does not seem to make a difference - and it still goes in
>>> synchronously. It is in the documentation for 2.27 (and 2.26 and 2.25 -
>>> https://docs.dhis2.org/2.26/en/developer/html/dhis2_
>>> developer_manual_full.html#webapi_metadata_import), and I am using api
>>> version 26. Is it something i am doing wrong?
>>>
>>> This is the curl command i am using:
>>>
>>> curl -X POST 'https://domain/api/26/metadata?atomicMode=NONE=true'
>>> --data-binary @file.xml -H 'Content-Type:application/xml'
>>>
>>>
>>> Thanks!
>>>
>>> Vlad
>>>
>>> ___
>>> 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


Re: [Dhis2-devs] DHIS-2 Developer API -Login Through DHIS2-API from other Website

2017-08-22 Thread Morten Olav Hansen
Have you had a look at the manual?

https://docs.dhis2.org/master/en/developer/html/dhis2_developer_manual.html
https://docs.dhis2.org/master/en/developer/html/webapi_authentication.html

You might also want to use CORS, which you can enable through access
settings

https://docs.dhis2.org/master/en/user/html/system_access_settings.html

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Tue, Aug 22, 2017 at 6:56 AM, Omer Butt <omerbutt2...@gmail.com> wrote:

> Sir,
> Please Provide me a guideline of using API to login from other Website to
> DHIS2-Server.
>
> Thanks.
>
> ___
> 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


Re: [Dhis2-devs] DHIS 2 -Developer Guide Api's

2017-08-17 Thread Morten Olav Hansen
Have a look at the /api/me endpoint

https://docs.dhis2.org/master/en/developer/html/webapi_current_user_information.html

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Thu, Aug 17, 2017 at 1:30 PM, Omer Butt <omerbutt2...@gmail.com> wrote:

> Sir,
> I have test DHIS-2 API for getting data in XML and J SON form.
> I checked API parameters for list of organization unit. But did not get
> according to my need.
>
> *I need API for getting organization **hierarchy of current user login. *
>
> how to use parameter to access them ?
> I tested but can't get like that. It give me all organization units.
>
> Thanks.
>
> ___
> 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


Re: [Dhis2-devs] CSV Event upload failed: "latitude" not a valid Double value

2017-08-06 Thread Morten Olav Hansen
Hi there

I'm not sure about this issue, but there have been some fixes to CSV import
lately, would you mind getting the latest 227 and retry? if it's still
present, could you write up a JIRA issue for? and we will have a look

jira.dhis2.org

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Fri, Aug 4, 2017 at 10:06 PM, Jesus Solano-Roman <
asol...@broadinstitute.org> wrote:

> *SECOND UPDATE*: Sorry to keep updating this but I cannot edit the
> original post.
>
> I realized that the header had to be removed and also that the last two
> columns should be left empty (storedBy, ProvidedElsewhere).
>
> I believe this has fixed the issue. *However, one last question*:
>
>
> Upload was successful for 8/9 entries the *DE F3ogKBuviRA is a coordinate
> data element*, and I've tried using two formats: "[-11.94,8.84]" and
> "-11.94,8.84". (not using quotation marks). These both fail on import. What
> is wrong with the format of my coordinates? The Documentation says:
>
> Coordinate: *A point coordinate specified as longitude/latitude in
> decimal degrees. All coordinate should be specified in the format "-19.23 ,
> 56.42" with a comma separating the longitude and latitude. (Since v2.21).*
>
> My system is
>
> Version:
> 2.27
> Build revision:
> b531614
>
>
>
> Thanks again and apologies for the constant updates.
>
>
>
> On Fri, Aug 4, 2017 at 3:41 PM, Jesus Solano-Roman <
> asol...@broadinstitute.org> wrote:
>
>> UPDATE: I noticed that the csv file I downloaded from DHIS2 with a sample
>> of the Event data does not contain quotations so I did the same on the
>> exported file from R
>>
>>  write.csv(data, file = "data.csv", row.names = F, fileEncoding =
>> 'UTF-8', quote = F)
>>
>>
>> But the upload still fails. Also If I upload manually using the import
>> function inside DHIS2, the dry run shows the following conflicts:
>>
>> event Data element not found or not accessible
>> tHF7qDZVeoT Data element not found or not accessible
>> and all elements are ignored.
>>
>>
>> Thanks again.
>>
>> On Fri, Aug 4, 2017 at 3:27 PM, Jesus Solano-Roman <
>> asol...@broadinstitute.org> wrote:
>>
>>> Hello all.
>>>
>>> I've constructed a csv file to bulk import Events to a local instance of
>>> DHIS2 as per guidelines from the documentation
>>> <https://docs.dhis2.org/master/en/developer/html/dhis2_developer_manual_full.html#webapi_events_csv_import_export>
>>>  .
>>> My curl command to upload is the following:
>>>
>>> curl --data-binary @programKenemaTest.csv "http://localhost:8085/api/eve
>>> nts" -H "Content-Type:application/csv" -u admin:district -v
>>>
>>>
>>> however, when uploading from terminal I get the following error message:
>>>
>>> {"httpStatus":"Internal Server Error",
>>>
>>> "httpStatusCode":500,"status":"ERROR",
>>>
>>> "message":"*Can not construct instance of java.lang.Double from String
>>> value (\"latitude\"): not a valid Double value*\n
>>>
>>> at [Source: com.fasterxml.jackson.dataformat.csv.impl.UTF8Reader@4700501
>>> 2 <470%2005%20012>; line: 1, column: 88] (through reference chain:
>>> org.hisp.dhis.dxf2.events.event.csv.CsvEventDataValue[\"latitude\"])"}
>>>
>>> (Rest of response from server can be seen here: https://codeshare.io/5Qm
>>> LvJ)
>>>
>>> The value for latitude (and longitude) in this particular dataset is 0.
>>> I generated this dataset and the CSV file using R. The type of value for
>>> those two columns evaluates to "double", and I have exported the CSV using
>>> UTF-8 encoding:
>>>
>>> write.csv(data, file = "data.csv", row.names = F, fileEncoding = 'UTF-8')
>>>
>>>
>>> Any ideas why this file cannot be parsed correctly? Entries created
>>> inside DHIS2 using the Event Capture app have latitude and longitude values
>>> of 0 without a problem. I've attached the csv file if it's of any help.
>>>
>>>
>>> Thanks for your time,
>>>
>>>
>>> Antonio Solano.
>>>
>>
>>
>
> ___
> 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


Re: [Dhis2-devs] [Dhis2-users] Error running Analytics

2017-08-06 Thread Morten Olav Hansen
Hi

I'm not sure how well analytics currently works on H2. Would you mind
writing a JIRA issue for? jira.dhis2.org

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Thu, Aug 3, 2017 at 8:42 PM, ThankGod Anazodo <anazodothank...@yahoo.com>
wrote:

> Dear all,
> I got this error while trying to run analytics:
>
> Process failed: StatementCallback; bad SQL grammar [create table
> _orgunitstructure_temp (organisationunitid integer not null primary key,
> organisationunituid character(11), level integer, "idlevel1" integer,
> "uidlevel1" character(11), "idlevel2" integer, "uidlevel2" character(11),
> "idlevel3" integer, "uidlevel3" character(11), "idlevel4" integer,
> "uidlevel4" character(11));]; nested exception is
> org.h2.jdbc.JdbcSQLException: Table "_ORGUNITSTRUCTURE_TEMP" already
> exists; SQL statement: create table _orgunitstructure_temp
> (organisationunitid integer not null primary key, organisationunituid
> character(11), level integer, "idlevel1" integer, "uidlevel1"
> character(11), "idlevel2" integer, "uidlevel2" character(11), "idlevel3"
> integer, "uidlevel3" character(11), "idlevel4" integer, "uidlevel4"
> character(11)); [42101-194]
>
> I am running version 2.27, any help please.
>
>
> Thanks.
> ThankGod
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> 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


Re: [Dhis2-devs] async metadata import in 2.27

2017-08-06 Thread Morten Olav Hansen
Hi

It should work like that. Would you mind writing a JIRA issue?
jira.dhis2.org

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Thu, Aug 3, 2017 at 12:03 PM, Vladimer Shioshvili <vshioshv...@gmail.com>
wrote:

> Hi everyone,
>
> I am trying to import xml metadata (org units) into 2.27, and async=true
> query parameter does not seem to make a difference - and it still goes in
> synchronously. It is in the documentation for 2.27 (and 2.26 and 2.25 -
> https://docs.dhis2.org/2.26/en/developer/html/dhis2_
> developer_manual_full.html#webapi_metadata_import), and I am using api
> version 26. Is it something i am doing wrong?
>
> This is the curl command i am using:
>
> curl -X POST 'https://domain/api/26/metadata?atomicMode=NONE=true'
> --data-binary @file.xml -H 'Content-Type:application/xml'
>
>
> Thanks!
>
> Vlad
>
> ___
> 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


Re: [Dhis2-devs] Fwd: [Dhis2-users] API calls using Node.js examples

2017-07-27 Thread Morten Olav Hansen
Hi

I don't think we have any immediate plans to include this in the docs, the
idea about using cURL is that it's completely language neutral and any
language these days should give you the tools to interact with the API.

That said, a simple example for fetch the data elements from a DHIS2 server
would be (you need node-fetch installed):

const fetch = require( "node-fetch" );

const createAuthenticationHeader = (username, password) => {
  return "Basic " + new Buffer( username + ":" + password ).toString(
"base64" );
};

fetch( '
https://play.dhis2.org/dev/api/dataElements?paging=false=domainType:eq:TRACKER',
{
  headers: {
"Accept": "application/json",
"Authorization": createAuthenticationHeader( 'admin', 'district' )
  }
} )
  .catch( err => console.error( err ) )
  .then( res => res.json() )
  .then( res => {
console.log( res.dataElements.length );
  } )
  .catch( err => console.error( err ) );

If you would want to use an OAuth2 bearer token instead you would change
the Authorization header.

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Thu, Jul 27, 2017 at 10:36 PM, Knut Staring <knu...@gmail.com> wrote:

> This is a good question for the dev list.
>
> -- Forwarded message --
> From: Jesus Solano-Roman <asol...@broadinstitute.org>
> Date: Thu, Jul 27, 2017 at 3:15 PM
> Subject: [Dhis2-users] API calls using Node.js examples
> To: "dhis2-users lists.launchpad.net" <dhis2-us...@lists.launchpad.net>
>
>
> Hello all.
>
> I would like to know if someone could point out to examples or perhaps
> give an example of a typical Web API call done using Node.js
>
> The examples in the documentation are either using cURL or using the
> direct browser "endpoint", but usually do not take into account oAuth
> authentication (e.g. using a token instead of user credentials) and how to
> wrap all that into a Node.js request.
>
> In the use case of developing a web application, both the "Bearer token"
> and the following API calls should be done using Node (or say, PHP) and not
> cURL. So for instance, this example from the documentation should actually
> exist as a Node request:
>
> curl -H "Authorization: Bearer 07fc551c-806c-41a4-9a8c-10658bd15435"
> $SERVER/api/26/dataElements.json
>
> Any help would be greatly appreciated.
>
> Thanks,
>
>
> Antonio Solano.
> Broad Institute of MIT and Harvard, Boston, MA, USA.
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>
>
>
> --
> Knut Staring
> Dept. of Informatics, University of Oslo
> Norway: +4791880522 <918%2080%20522>
> Skype: knutstar
> http://dhis2.org
>
> ___
> 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


Re: [Dhis2-devs] [Dhis2-users] WebAPI Bugs when filtering by level and ancestor

2017-07-26 Thread Morten Olav Hansen
Hi Mamadou

Could you please report a bug to JIRA? jira.dhis2.org

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Wed, Jul 26, 2017 at 11:52 PM, Mamadou Diao Diallo <
diao_dia...@gn.jsi.com> wrote:

> Hi Devs,
>
> I'm currently using dhis2 API to develop an App, but I have some troubles
> when I filter by *level* and *ancestor* in the same time.
>
>
>
> To clarify:
>
>
>
> *Everything is ok with this one :* URL/api/25/organisationUnits.
> json?filter=level:eq:'+level+'=[id,displayName]
>
>
>
> *But by adding ancestor parameter the level is just ignored:*
>
> URL/api/25/organisationUnits.json?filter=level:eq:'+level+'
> =ancestors.id:eq:'+ancestorId+'=[id,displayName]
>
>
> I will really appreciate your help and any link for an advanced dhis2 API
> topic.
>
> Best,
>
> Diao
>
> --
> *DIALLO Mamadou Diao Conseiller IT, Specialiste de DHIS 2 **( District
> Health Information Software )*
>
>
> *Projet de Renforcement du Système d'Information Sanitaire en Guinée*
> *Phone : 623909413 | 662256106*
> *Skype : diawwdiallo*
> www.jsi.com
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> 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


Re: [Dhis2-devs] WebAPI : New way to assign an orgUnit to an orgUnitGroup?

2017-07-24 Thread Morten Olav Hansen
Hi

Have you had a look at our collection API?

https://docs.dhis2.org/master/en/developer/html/webapi_
metadata_crud.html#webapi_adding_removing_objects_collections

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Fri, Jul 21, 2017 at 12:23 AM, Farai Mutero <fmut...@gmail.com> wrote:

> Hi All
>
> In older versions of DHIS (pre 2.26), one could assign an OrgUnitGroup to
> an OrgUnit using the following Ajax call:
>
> var posturl = base + 'api/organisationUnitGroups/' + ouGroupUID +
> '/organisationUnits/' + ouUID + '.json';
> $.ajax({
> url: posturl,
> type: "PUT",
> dataType: "text",
> contentType: "application/json; charset=utf-8",
> async: false,
> success: function (response) {
> console.log("OrgUnit Group update successful");
> }
> });
>
> Now on 2.27 the WebAPI returns the following response:
>
> {"httpStatus":"Method Not Allowed","httpStatusCode":405,
> "status":"ERROR","message":"Request method 'PUT' not supported"}
>
> So what is the solution to achieve the above goal in 2.27?
>
> Regards
> --
> Farai Mutero
>
>
> ___
> 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


Re: [Dhis2-devs] Data Elements With Assigned Category Combo Shows as Default On data Entry Screen

2017-07-13 Thread Morten Olav Hansen
Yeah, btw.. this is confirmed fixed in 226/227... so if you can look into
upgrading, that would be nice.. (or at least test, and confirm it works in
those versions)

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Fri, Jul 14, 2017 at 1:35 AM, David Muturi <dnmut...@gmail.com> wrote:

> Hi Morten,
> Many thanks for this. At the moment we are using a script to fix back the
> cat combos for the data elements that are affected.
> rgds
> David
>
> 2017-07-13 20:23 GMT+03:00 Morten Olav Hansen <mor...@dhis2.org>:
>
>> We are aware of this and will hopefully provide you a fix in 2-3 weeks.
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Wed, Jul 12, 2017 at 3:54 AM, David Muturi <dnmut...@gmail.com> wrote:
>>
>>> Hi Team,
>>> I am currently using DHIS2 2.25 build 1df45f8, whenever I create a new
>>> dataset and assign data elements with already assigned category
>>> combinations, they appear with default category combo and one must manually
>>> over ride this using the "wrench tool" - see attached image for each data
>>> element. This is also affecting any existing dataset  whenever one adds a
>>> new data element and assigns it to an existing dataset. This is creating
>>> alot of work of manually assigning category combos especially for large
>>> datasets with lots of data elements. Has anyone else encountered this
>>> problem and probably has a work around for it?
>>> rgds
>>> David
>>>
>>> ___
>>> 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


Re: [Dhis2-devs] Right scrolling arrow on dashboard disappear on spanish translation

2017-07-13 Thread Morten Olav Hansen
Hi Sergio

This is new for us, can you please create a new issue at jira.dhis2.org ?

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Thu, Jul 13, 2017 at 1:11 AM, Sergio Valenzuela <
sergio.valenzu...@ehas.org> wrote:

> Hello Team,
>
> We are currently using DHIS2 2.27 build 5c148f4 (same as demo server) and
> we noticed that the right scrolling arrow (used to navigate through the
> dashboards) on Dashboard app is missing when you configurate spanish as the
> system language (or any laguage with terms. I attach some images to explain
> myself better.
>
>
>- When you create a dashboard with english as system language the
>right arrow works fine:
>
>
> ​
>
> ​With spanish as system language the right arrow disappears, so you cannot
> navigate through the list of dashboards:
>
>
>
> Tell me if I should report it on Jira.
>
> Regards!​
> ​
>
> Sergio Valenzuela
> Fundación EHAS
> Telemedicina para países en desarrollo -* www.ehas.org
> <http://www.ehas.org/>*
> E.T.S.I. de Telecomunicación A.101-9L. Ciudad Universitaria 30, 28040
> Madrid - España
> Tlfno. (+34) 91 488 87 41: (+34) 687 67 17 62 <+34%20687%2067%2017%2062>
>
>
>
> ___
> 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


Re: [Dhis2-devs] Data Elements With Assigned Category Combo Shows as Default On data Entry Screen

2017-07-13 Thread Morten Olav Hansen
We are aware of this and will hopefully provide you a fix in 2-3 weeks.

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Wed, Jul 12, 2017 at 3:54 AM, David Muturi <dnmut...@gmail.com> wrote:

> Hi Team,
> I am currently using DHIS2 2.25 build 1df45f8, whenever I create a new
> dataset and assign data elements with already assigned category
> combinations, they appear with default category combo and one must manually
> over ride this using the "wrench tool" - see attached image for each data
> element. This is also affecting any existing dataset  whenever one adds a
> new data element and assigns it to an existing dataset. This is creating
> alot of work of manually assigning category combos especially for large
> datasets with lots of data elements. Has anyone else encountered this
> problem and probably has a work around for it?
> rgds
> David
>
> ___
> 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


Re: [Dhis2-devs] [Dhis2-users] 2.27 password constraints enforced

2017-07-13 Thread Morten Olav Hansen
Hi Elmarie...

Yes its true that shortest might be 90 days, but if you have db access...
set the expiry to 2014 or something like that, and everyone have to change
their password (obviously... test locally first)

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Tue, Jul 11, 2017 at 9:43 AM, Elmarie Claasen <elma...@hisp.org> wrote:

> Hi all,
>
> I would like to clarify the following;
>
> 2.27 enforces the password requirement of at least 1 UPPERCASE, lowercase,
> numeric and non-alpha-numeric character and specified length for new users,
> password resets including password reset when password expiry is turned on.
> These enhancements are all good for us from an auditing perspective.  It
> does not however enforce password reset on first login to a 2.27 instance
> when the password does not comply to the new requirements. We would need to
> give assurance that the new password requirement has been enforced by the
> system. I was looking qt shortening the password expiry but the shortest
> option is 90 days.
>
> Is this by design or a bug?
>
> Elmarie Claasen
> HISP-SA
>
> *This message and any attachments are subject to a disclaimer published at
> http://www.hisp.org/policies.html#comms_disclaimer
> <http://www.hisp.org/policies.html#comms_disclaimer>.  Please read the
> disclaimer before opening any attachment or taking any other action in
> terms of this electronic transmission.  If you cannot access the
> disclaimer, kindly send an email to disclai...@hisp.org
> <disclai...@hisp.org> and a copy will be provided to you. By replying to
> this e-mail or opening any attachment you agree to be bound by the
> provisions of the disclaimer.*
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> 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


Re: [Dhis2-devs] [Dhis2-users] Recursive filters not working in the DHIS2 web API

2017-07-06 Thread Morten Olav Hansen
Hi Gaurav

This was change quite some time back. The default filter operator is now
AND, which means that query will not work. You have 2 options:

https:/
serverurl.org/api/26/dataElementGroups.json?filter=dataElements.id:in:[ID1,ID2]

or

https:/
serverurl.org/api/26/dataElementGroups.json?filter=dataElements.id:eq:ID1=dataElements.id:eq:ID2=OR

https://docs.dhis2.org/master/en/developer/html/webapi_metadata_object_filter.html
https://docs.dhis2.org/master/en/developer/html/webapi_metadata_object_filter.html#webapi_metadata_logical_operator


-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Thu, Jul 6, 2017 at 8:52 PM, Gaurav Kumar <
gku...@internationalmedicalcorps.org> wrote:

> Hi Devs,
>
>
>
> We recently upgraded to DHIS2.26, and I have recently found that recursive
> filters are no longer working in the WEB API. To make sure that this was
> just not our revision that has this bug, I also tested on the DHIS2 latest
> stable demo site and there also I saw the same behavior.
>
>
>
> To clarify more; queries in the following format: https:/
> serverurl.org/api/26/dataElementGroups.json?filter=dataElements.id:eq:ID1
> =dataElements.id:eq:ID2 , returns an empty list though I checked
> and found that more than one DE-groups with the queried DEs exist. I tried
> this with other resources as well but encountered the same issue.
>
>
>
> I also checked the 2.26 and 2.28 documentation to check if there has been
> a change in the query format but the manuals still specify that same. So I
> am wondering if this is a bug or the documents are not updated.
>
>
>
> As this is affecting a critical module of ours, any prompt help will be
> highly appreciated.
>
>
>
> Regards,
>
>
>
> GAURAV
>
> Technical Consultant
>
> International Medical Corps
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> 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


Re: [Dhis2-devs] Import of Events is extremely slow - any plans to improve it?

2017-07-04 Thread Morten Olav Hansen
Hi Calle

Depending on the configuration of the events (how many org units, data
elements etc), yes, event import can still feel a bit slow. We did some
updates in 225/226, but as you are already using 226 this didn't help your
case.

Yes. when we did the metadata importer we managed to speedup it a lot, but
this required a complete rewrite, and to have the same gains in event
import we might have to do the same (which means it will have to wait a
while).

Feel free to write a issue for it.

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Sat, Jul 1, 2017 at 2:20 PM, Calle Hedberg <calle.hedb...@gmail.com>
wrote:

> David,
>
> I'm importing into 2.26, postgresql is tuned as far as possible (the test
> was on my laptop), and 12GB RAM. I was using CSV, put there should not be
> any significant difference between JSON and CSV.
>
> I will import the 2.5 mill events directly and see what time that takes,
> comparatively.
>
> Regards
> Calle
>
> On 30 June 2017 at 18:05, David Huser <dhu...@baosystems.com> wrote:
>
>> Hi Calle
>>
>> When some conditions are met, the event import can be really speedy
>> (imports of ~100 000 in <30 minutes).
>>
>> - Recent version (2.25+)
>> - PostgreSQL properly tuned (this is important)
>> - Enough RAM (8 GB+)
>>
>> I usually use JSON files and post them against /api/events.
>>
>> David
>>
>> On Fri, Jun 30, 2017 at 12:58 PM, Calle Hedberg <calle.hedb...@gmail.com>
>> wrote:
>>
>>> Ime,
>>>
>>> I was using the UI - have not looked at the API endpoint.
>>>
>>> For now I will use sql scripts as I've done before - I'm just trying to
>>> find out if anybody is working on improving what is (now) an import
>>> function that in reality only caters for small data sets. There is no
>>> question about the core developers ability to speed this up - I saw that
>>> with the import of OU meta-data - but not sure if anybody has done anything.
>>>
>>> If no answers from core developers, the I will write a JIRA issue for it.
>>>
>>> Regards
>>> Calle
>>>
>>> On 29 June 2017 at 02:25, Ime Asangansi <imeasanga...@gmail.com> wrote:
>>>
>>>> Hi Calle,
>>>>
>>>> Thanks for your question.
>>>> Just curious (I don't have answer). As we are planning to do this soon.
>>>>
>>>> Are you doing this through UI or API?
>>>> If API, which endpoint enables this?
>>>>
>>>> Thanks
>>>>
>>>> Ime
>>>>
>>>>
>>>>
>>>> On Jun 28, 2017 19:15, "Calle Hedberg" <calle.hedb...@gmail.com> wrote:
>>>>
>>>>> Hi
>>>>>
>>>>> I started importing around 700,000 events 2 days ago (about 5 mill
>>>>> individual values) - and the import is still running, 48 hours later.
>>>>> Import is slowing - it seemed to be importing around 7-8 values per 
>>>>> second,
>>>>> now down to 2-3 per second. It looks like that import might take around 
>>>>> 200
>>>>> hours - which makes no sense from a usability point of view. Importing
>>>>> OrgUnits used to be equally slow, but a revamp recently change a 10,000
>>>>> OrgUnit import from hours to something like 5 seconds.
>>>>>
>>>>> It seems obvious that event imports have been designed to import
>>>>> values one by one, which is equivalent to asking people to fetch water
>>>>> using a leaking tea-spoon.
>>>>>
>>>>> I've searched JIRA but cannot find any issue related to this, thus
>>>>> this post: Are there any plans underway to make import of Event data 
>>>>> usable
>>>>> for larger record sets?
>>>>>
>>>>> Regards
>>>>> Calle
>>>>>
>>>>> ***
>>>>>
>>>>> Calle Hedberg
>>>>>
>>>>> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
>>>>>
>>>>> Tel/fax (home): +27-21-685-6472 <+27%2021%20685%206472>
>>>>>
>>>>> Cell: +27-82-853-5352 <+27%2082%20853%205352>
>>>>>
>>>>> Iridium SatPhone: +8816-315-19119 <+881%206%20315%2019119>
>>>>>
>>>>> Email: calle.hedb...@gmail.com
>>>>>
>>>>> Skype: calle_hedberg
>>&

Re: [Dhis2-devs] Error when updating data set expiry days

2017-07-04 Thread Morten Olav Hansen
Hi Jason

Did you create a issue for this?

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Mon, Jul 3, 2017 at 9:25 PM, JM Alcantara <jmalcanta...@gmail.com> wrote:

> It seems this also affects the setup of grey fields in sections.
>
> Regards,
> JM
>
>
> El 03/07/2017, a las 16:16, Jason Pickering <jason.p.picker...@gmail.com>
> escribió:
>
> Hi JM,
>
> Thanks for confirming that others have seen this. This is a really
> crippling problem for this instance and I can confirm that there is a
> favorite attached to this data dimension.
>
>
> I do have a work around to PATCH the expiry days with the API, which
> works, but that is a less than ideal solution.
>
> Regards,
> Jason
>
>
> On Sun, Jul 2, 2017 at 8:29 AM, JM Alcantara <jmalcanta...@gmail.com>
> wrote:
>
>> Hi Jason
>> I've seen this before when there is a favorite using details with a data
>> element included in the data set.
>> JM
>>
>> On 2 Jul 2017 13:33, "Jason Pickering" <jason.p.picker...@gmail.com>
>> wrote:
>>
>>>
>>> Hi Devs,
>>>
>>>
>>> When updating expiry days in a data set, I am seeing this error. Any
>>> idea how to correct it? I am not able to reproduce on the demo site, so
>>> seems something specific to this database.
>>>
>>> Regards,
>>> Jason
>>>
>>>
>>>
>>> Version:2.26
>>> Build revision:80d7658
>>> Build date:2017-06-15 06:43
>>>
>>> * INFO  2017-07-02 12:18:25,811 (admin) Import:Start
>>> (DefaultMetadataImportService.java [http-bio-0.0.0.0-8080-exec-23])
>>> * INFO  2017-07-02 12:18:26,716 (admin) Import:Preheat[REFERENCE] took
>>> 0.90 seconds (DefaultPreheatService.java [http-bio-0.0.0.0-8080-exec-23
>>> ])
>>> * INFO  2017-07-02 12:18:26,721 (admin) Import:Validation took 0.00
>>> seconds (DefaultObjectBundleValidationService.java
>>> [http-bio-0.0.0.0-8080-exec-23])
>>> * INFO  2017-07-02 12:18:26,722 (admin) Updating 1 object(s) of type
>>> DataSet (DefaultObjectBundleService.java [http-bio-0.0.0.0-8080-exec-23
>>> ])
>>> * WARN  2017-07-02 12:18:26,870 SQL Error: 0, SQLState: 23503
>>> (SqlExceptionHelper.java [http-bio-0.0.0.0-8080-exec-23])
>>> * ERROR 2017-07-02 12:18:26,871 ERROR: update or delete on table
>>> "dataelementoperand" violates foreign key constraint
>>> "fk_datadimensionitem_dataelementoperandid" on table "datadimensionitem"
>>>   Detail: Key (dataelementoperandid)=(788048) is still referenced from
>>> table "datadimensionitem". (SqlExceptionHelper.java
>>> [http-bio-0.0.0.0-8080-exec-23])
>>> org.hibernate.exception.ConstraintViolationException: could not execute
>>> statement
>>> at org.hibernate.exception.internal.SQLStateConversionDelegate.
>>> convert(SQLStateConversionDelegate.java:112)
>>> at org.hibernate.exception.internal.StandardSQLExceptionConvert
>>> er.convert(StandardSQLExceptionConverter.java:42)
>>> at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(Sql
>>> ExceptionHelper.java:111)
>>> at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(Sql
>>> ExceptionHelper.java:97)
>>> at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.execu
>>> teUpdate(ResultSetReturnImpl.java:207)
>>> at org.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.ad
>>> dToBatch(NonBatchingBatch.java:45)
>>> at org.hibernate.persister.entity.AbstractEntityPersister.delet
>>> e(AbstractEntityPersister.java:3259)
>>> at org.hibernate.persister.entity.AbstractEntityPersister.delet
>>> e(AbstractEntityPersister.java:3496)
>>> at org.hibernate.action.internal.EntityDeleteAction.execute(Ent
>>> ityDeleteAction.java:98)
>>> at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQu
>>> eue.java:582)
>>> at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQu
>>> eue.java:456)
>>>
>>>
>>> --
>>> Jason P. Pickering
>>> email: jason.p.picker...@gmail.com
>>> tel:+46764147049 <+46%2076%20414%2070%2049>
>>>
>>> ___
>>> 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.picker...@gmail.com
> tel:+46764147049 <+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


Re: [Dhis2-devs] [Dhis2-users] Unable to save favorites on version 2.25

2017-06-29 Thread Morten Olav Hansen
Hi David

To be able to look into this, we need the error from your server logs. Do
you have access to them? When this happens, there should be a long trace of
what caused the error.

On Thu, 29 Jun 2017 at 11:39 PM, David Itana <dit...@hispna.org> wrote:

> Dear all
>
>
>
> I am running a Version: 2.25 Build revision: 57d6ab3 Build date:
> 2017-04-04 06:43.
>
> When wanting to save  a favorite generated by using event report or Event
> visualizer, this favorite does not get saved when I hit the save button,
> nothing happens. Has anyone experienced this before?
>
> The console gives the following error message; which I am failing to
> understand and interpret.
>
>
>
> Best regards
>
> David
>
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
-- 
-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org
___
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


Re: [Dhis2-devs] Generating 2.5 mill UIDs and saving them to a file

2017-06-25 Thread Morten Olav Hansen
Hi Calle

Just use something like this (you need to have the uid() function installed
first)

copy (select uid() as uid from generate_series(1,10)) to '/tmp/test.csv';

and replace 10 with whatever number you want

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Mon, Jun 26, 2017 at 7:25 AM, Jason Pickering <
jason.p.picker...@gmail.com> wrote:

> Call the same end point 250 times maybe and concatenate to a file? 
>
> On Jun 25, 2017 18:11, "Calle Hedberg" <calle.hedb...@gmail.com> wrote:
>
> Knut
>
> Aware of that, but it generates only one UID.  I can use it in a small
> program, of course, but that's not the point here:
>
> I would like to know if there is a way to get the web API to create 2.5
> mill UIDs into a csv file.
>
> Regards
> Calle
>
> On 25 June 2017 at 23:45, Knut Staring <knu...@gmail.com> wrote:
>
>> By courtesy of Bob:
>>
>> https://github.com/dhis2/dhis2-utils/blob/master/resources/sql/uid.sql
>>
>> On Sun, Jun 25, 2017 at 11:33 PM, Calle Hedberg <calle.hedb...@gmail.com>
>> wrote:
>>
>>> Hi
>>>
>>> I need around 2.5 mill UIDs for use as event UIDs, but the following
>>> only returns 10,000 (this might be a browser setting - not sure):
>>>
>>> http://localhost:8080/dhis//api/26/system/id.csv?limit=25000
>>> 00=false
>>>
>>> Any other way to generate those 2.5 mill UIDs and dump them directly out
>>> into a csv file?
>>>
>>> Regards
>>> calle
>>>
>>> ***
>>>
>>> Calle Hedberg
>>>
>>> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
>>>
>>> Tel/fax (home): +27-21-685-6472 <+27%2021%20685%206472>
>>>
>>> Cell: +27-82-853-5352 <+27%2082%20853%205352>
>>>
>>> Iridium SatPhone: +8816-315-19119 <+881%206%20315%2019119>
>>>
>>> Email: calle.hedb...@gmail.com
>>>
>>> Skype: calle_hedberg
>>>
>>> ***
>>>
>>>
>>> ___
>>> 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
>>>
>>>
>>
>>
>> --
>> Knut Staring
>> Dept. of Informatics, University of Oslo
>> Norway: +4791880522 <+47%20918%2080%20522>
>> Skype: knutstar
>> http://dhis2.org
>>
>
>
>
> --
>
> ***
>
> Calle Hedberg
>
> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
>
> Tel/fax (home): +27-21-685-6472 <+27%2021%20685%206472>
>
> Cell: +27-82-853-5352 <+27%2082%20853%205352>
>
> Iridium SatPhone: +8816-315-19119 <+881%206%20315%2019119>
>
> Email: calle.hedb...@gmail.com
>
> Skype: calle_hedberg
>
> ***
>
>
> ___
> 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
>
>
___
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


Re: [Dhis2-devs] [Dhis2-users] Any open source GIS/map database tools other than DHIS2

2017-06-21 Thread Morten Olav Hansen
While we don't support data extraction using GeoJson yet, we do support
export of points/polygon at /api/organisationUnits.geojson?level=2=3
(and have had it since 2.20 or something)

(couldn't load up dhis2.org now for some reason, but there should be docs
for it)

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Thu, Jun 22, 2017 at 2:53 AM, Calle Hedberg <calle.hedb...@gmail.com>
wrote:

> Hi
>
> QGIS, definitely
>
> Regards
> Calle
>
> On 21 June 2017 at 18:50, Dipali Sahu <dipali.s...@gmail.com> wrote:
>
>> Thank you everyone. This was real quick :)
>>
>> On Wed, Jun 21, 2017 at 5:40 PM, Bob Jolliffe <bobjolli...@gmail.com>
>> wrote:
>>
>>> Adding another voice in favour of qgis.  I am no gis expert but even I
>>> figured out how to use it :-)
>>>
>>> @Bjørn, GeoJSON-format will be great.
>>>
>>> On 21 June 2017 at 17:38, Bjørn Sandvik <bj...@dhis2.org> wrote:
>>> > Hi,
>>> >
>>> > I would highly recommend QGIS, which is the leader among open source
>>> GIS -
>>> > well documented and lots of tutorials available.
>>> >
>>> > http://www.qgis.org/
>>> >
>>> > We will soon support data export from DHIS2 to other GIS applications
>>> like
>>> > QGIS (GeoJSON-format), so it's a nice tool to learn :-)
>>> >
>>> > Bjørn
>>> >
>>> > --
>>> > Bjørn Sandvik
>>> > GIS developer, DHIS 2
>>> > University of Oslo
>>> > www.dhis2.org
>>> >
>>> > On Wed, Jun 21, 2017 at 4:16 PM, Jan Henrik Øverland <j...@dhis2.org>
>>> wrote:
>>> >>
>>> >> For software, another option is uDig http://udig.refractions.net/
>>> >>
>>> >> On 21 June 2017 at 16:12, Anil Das Gupta <o...@vivosinvivir.com>
>>> wrote:
>>> >>>
>>> >>> Hello
>>> >>>
>>> >>>
>>> >>>
>>> >>> I’m not too sure if you are looking for digital maps or GIS
>>> software. If
>>> >>> the latter, I suspect the simplest-to-use open source GIS software
>>> is Kosmo
>>> >>> (www.opensig.es), especially if you’re using an Access (mdb)
>>> database. If in
>>> >>> Postrgres, I would use QGIS.
>>> >>>
>>> >>>
>>> >>>
>>> >>> Sem outro assunto, receba os meus melhores cumprimentos
>>> >>>
>>> >>>
>>> >>>
>>> >>>
>>> >>>
>>> >>>
>>> >>>
>>> >>> Anil Das Gupta González
>>> >>>
>>> >>> Casa Pedriñán (Apartado Postal 71),
>>> >>>
>>> >>> El Niño, 30194 Mula, Murcia, España/Espanha/Spain
>>> >>>
>>> >>> Telefone: 666 031645
>>> >>>
>>> >>> Skpye: anildasgupta
>>> >>>
>>> >>>
>>> >>>
>>> >>> De: Dhis2-users
>>> >>> [mailto:dhis2-users-bounces+onil=vivosinvivir@lists.laun
>>> chpad.net] En
>>> >>> nombre de Knut Staring
>>> >>> Enviado el: miércoles, 21 de junio de 2017 16:02
>>> >>> Para: Dipali sahu <dipali.s...@gmail.com>
>>> >>> CC: dhis2-us...@lists.launchpad.net; DHIS 2 developers
>>> >>> <dhis2-devs@lists.launchpad.net>
>>> >>> Asunto: Re: [Dhis2-users] [Dhis2-devs] Any open source GIS/map
>>> database
>>> >>> tools other than DHIS2
>>> >>>
>>> >>>
>>> >>>
>>> >>> Hi Dipali,
>>> >>>
>>> >>> Take a look at http://www.diva-gis.org/
>>> >>>
>>> >>>
>>> >>>
>>> >>> Knut
>>> >>>
>>> >>>
>>> >>>
>>> >>> On Jun 21, 2017 15:28, "Dipali Sahu" <dipali.s...@gmail.com> wrote:
>>> >>>
>>> >>> Hi
>>> >>>
>>> >>>
>>> >>>
>>> >>> I am wondering if there are any open source tools other than DHIS2
>>> that
>>> >>> anyone has used for projecting data on maps.
>>> >>>
>>> >>>
>&

Re: [Dhis2-devs] [Dhis2-users] Export & Import of a single Data Set

2017-06-21 Thread Morten Olav Hansen
Great :)

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Wed, Jun 21, 2017 at 5:10 AM, gerald thomas <gerald17...@gmail.com>
wrote:

> Dear Morten,
> I was trying to update the corrupted data set rather than creating a
> new one that was my issue before. I deleted the corrupted one and do
> the import again; it works perfect.
>
> Thanks for your help.
>
> On 6/20/17, gerald thomas <gerald17...@gmail.com> wrote:
> > Dear Morten,
> >
> > The import is not moving beyond this point shown below:
> >
> > 2017-06-20 06:38:44   (geraldthomas) Updating 10 object(s) of type
> Section
> > 2017-06-20 06:38:43   (geraldthomas) Updating 1 object(s) of type DataSet
> > 2017-06-20 06:38:43   (geraldthomas) Updating 10 object(s) of type
> Indicator
> > 2017-06-20 06:38:43   (geraldthomas) Updating 1 object(s) of type
> > IndicatorType
> > 2017-06-20 06:38:43   (geraldthomas) Updating 73 object(s) of type
> > DataElement
> > 2017-06-20 06:38:42   (geraldthomas) Updating 2 object(s) of type
> OptionSet
> > 2017-06-20 06:38:42   (geraldthomas) Updating 3 object(s) of type Option
> > 2017-06-20 06:38:39   (geraldthomas) Import:Start
> >
> >
> > It had been on this for almost 4 hours now.
> >
> > On 6/20/17, gerald thomas <gerald17...@gmail.com> wrote:
> >> Dear Morten,
> >> I am using 2.26. Let me try your workaround and get back to you with
> >> the result. Thanks very much.
> >>
> >> On 6/20/17, Morten Olav Hansen <morte...@gmail.com> wrote:
> >>> Hi Gerald
> >>>
> >>> What version of DHIS2 are you on? if you are on a recent version (I
> >>> think
> >>> 2.25+) you can go to import-export module, then select metadata
> >>> dependency
> >>> export, and then the data set you want exported.
> >>>
> >>> This data set can then be imported into your other instance.
> >>>
> >>> --
> >>> Morten
> >>>
> >>> On Tue, Jun 20, 2017 at 6:31 AM, gerald thomas <gerald17...@gmail.com>
> >>> wrote:
> >>>
> >>>> Dear all,
> >>>> I am inquiring how could I export a single Data set from one instance
> >>>> and
> >>>> import that Data set to another instance.
> >>>> Please help
> >>>>
> >>>> --
> >>>> You received this message because you are subscribed to the Google
> >>>> Groups
> >>>> "DHIS2 system administrators" group.
> >>>> To unsubscribe from this group and stop receiving emails from it, send
> >>>> an
> >>>> email to dhis2-system-administrators+unsubscr...@googlegroups.com.
> >>>> To post to this group, send email to dhis2-system-administrators@
> >>>> googlegroups.com.
> >>>> To view this discussion on the web, visit
> https://groups.google.com/d/
> >>>> msgid/dhis2-system-administrators/CA%2BthV3TNnraDen%3DerDuVSxpzkt%
> >>>> 3DVwyevxw71WK1qk%2BFFWL0_Pg%40mail.gmail.com
> >>>> <https://groups.google.com/d/msgid/dhis2-system-administrato
> rs/CA%2BthV3TNnraDen%3DerDuVSxpzkt%3DVwyevxw71WK1qk
> %2BFFWL0_Pg%40mail.gmail.com?utm_medium=email_source=footer>
> >>>> .
> >>>> For more options, visit https://groups.google.com/d/optout.
> >>>>
> >>>
> >>
> >>
> >> --
> >> Regards,
> >>
> >> Gerald
> >>
> >
> >
> > --
> > Regards,
> >
> > Gerald
> >
>
>
> --
> Regards,
>
> Gerald
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> 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


Re: [Dhis2-devs] Multiple active program instances exists for program--What does this mean?

2017-06-21 Thread Morten Olav Hansen
Is aLafAMWpq59 a no registration program? if so, only one program instance
should ever be linked to this program, it could be a issue in your database.

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Tue, Jun 20, 2017 at 9:05 PM, Jason Pickering <
jason.p.picker...@gmail.com> wrote:

> When importing an event, I get this rather cryptic message
>
> "Multiple active program instances exists for program: aLafAMWpq59"
>
> What does this actually mean?
>
>
> Version:2.26Build revision:f2dd151
> 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


Re: [Dhis2-devs] Problem with creating indicators

2017-06-21 Thread Morten Olav Hansen
Hi Jason

Could you create a jira issue, and assign it to me? also include the full
stack trace...

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Tue, Jun 20, 2017 at 8:41 PM, Jason Pickering <
jason.p.picker...@gmail.com> wrote:

> Hi Devs,
>
> When making this call
>
> api/25/dataElementOperands?filter=dataElement.domainType:
> eq:AGGREGATE=id,displayName
>
> I get
>
> java.lang.ArrayIndexOutOfBoundsException
>
>
> I have not tried to reproduce it on play and cannot upgrade to 2.27 at the
> moment. This seems to be limited to this particular database. I suspect
> this has to do with a corrupted sort_order in some table, but not sure
> where to start to look.
>
> Version:2.25Build revision:210eb29
> Any clues?
>
> 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
>
>
___
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


Re: [Dhis2-devs] Export & Import of a single Data Set

2017-06-19 Thread Morten Olav Hansen
Hi Gerald

What version of DHIS2 are you on? if you are on a recent version (I think
2.25+) you can go to import-export module, then select metadata dependency
export, and then the data set you want exported.

This data set can then be imported into your other instance.

--
Morten

On Tue, Jun 20, 2017 at 6:31 AM, gerald thomas 
wrote:

> Dear all,
> I am inquiring how could I export a single Data set from one instance and
> import that Data set to another instance.
> Please help
>
> --
> You received this message because you are subscribed to the Google Groups
> "DHIS2 system administrators" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dhis2-system-administrators+unsubscr...@googlegroups.com.
> To post to this group, send email to dhis2-system-administrators@
> googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/
> msgid/dhis2-system-administrators/CA%2BthV3TNnraDen%3DerDuVSxpzkt%
> 3DVwyevxw71WK1qk%2BFFWL0_Pg%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
___
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


Re: [Dhis2-devs] java.lang.IllegalStateException: getOutputStream() has already been called for this response

2017-06-18 Thread Morten Olav Hansen
Hi

When did this happen? and what version of DHIS2? normally this is something
you can disregard, maybe connection issues or something similar. Did DHIS2
continue to work normal after?

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Sun, Jun 18, 2017 at 5:39 PM, 林晓东 <lin...@126.com> wrote:

> The develop version, windows 10
> got :
>
> for this response (CommonsLogger.java [http-nio-8080-exec-3])
> java.lang.IllegalStateException: getOutputStream() has already been
> called for this response
> at org.apache.catalina.connector.Response.getWriter(Response.
> java:626)
> at org.apache.catalina.connector.ResponseFacade.getWriter(
> ResponseFacade.java:211)
> at javax.servlet.ServletResponseWrapper.getWriter(
> ServletResponseWrapper.java:109)
> at javax.servlet.ServletResponseWrapper.getWriter(
> ServletResponseWrapper.java:109)
> at org.springframework.security.web.util.
> OnCommittedResponseWrapper.getWriter(OnCommittedResponseWrapper.java:149)
> at org.hisp.dhis.result.PlainTextErrorResult.execute(
> PlainTextErrorResult.java:98)
> at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(
> DefaultActionInvocation.java:372)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(
> DefaultActionInvocation.java:276)
> at org.apache.struts2.impl.StrutsActionProxy.execute(
> StrutsActionProxy.java:54)
> at org.apache.struts2.dispatcher.Dispatcher.serviceAction(
> Dispatcher.java:575)
> at org.apache.struts2.dispatcher.ng.ExecuteOperations.
> executeAction(ExecuteOperations.java:81)
> at org.apache.struts2.dispatcher.ng.filter.
> StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.
> java:99)
> at org.apache.catalina.core.ApplicationFilterChain.
> internalDoFilter(ApplicationFilterChain.java:193)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:166)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:317)
> at org.springframework.security.web.access.intercept.
> FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127)
> at org.springframework.security.web.access.intercept.
> FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:331)
> at org.springframework.security.web.access.
> ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:331)
> at org.springframework.security.web.session.
> SessionManagementFilter.doFilter(SessionManagementFilter.java:137)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:331)
> at org.springframework.security.web.authentication.
> AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.
> java:111)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:331)
> at org.springframework.security.web.servletapi.
> SecurityContextHolderAwareRequestFilter.doFilter(
> SecurityContextHolderAwareRequestFilter.java:170)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:331)
> at org.springframework.security.web.savedrequest.
> RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:331)
> at org.springframework.security.web.authentication.www.
> BasicAuthenticationFilter.doFilterInternal(BasicAuthenticationFilter.
> java:158)
> at org.springframework.web.filter.OncePerRequestFilter.
> doFilter(OncePerRequestFilter.java:107)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:331)
> at org.hisp.dhis.security.filter.CorsFilter.doFilter(
> CorsFilter.java:91)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:331)
> at org.springframework.security.web.authentication.
> AbstractAuthenticationProcessingFilter.doFilter(
> AbstractAuthenticationProcessingFilter.java:200)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:331)
> at org.springframewor

  1   2   3   4   5   6   7   8   9   10   >