[Dhis2-devs] Uniqueness of organisation unit name

2018-09-09 Thread Nayeem Al Mifthah
Dear All
I have found that, Organisation unit name is accepting duplicate names. Is
it allowed now a days? or a bug? I have created a number of Sierra Leone in
2.30 demo. Only Code field check duplicates.

[image: image.png]
*Nayeem Al Mifthah*
*Health Information Systems Specialist*
Support to the National HMIS
MIS, Directorate General of Health Services
Ministry of Health and Family Welfare, Bangladesh
Telephone: +880-2-58816459|Fax: +880-2-58813875
Mobile:  +88-01914 030 574|Email: n.mift...@gmail.com
Skype: nayeem.a.m|   LinkedIn:  linkedin.com/in/nayeemam
___
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] Uniqueness of organisation unit name

2018-09-09 Thread Knut Staring
I think this is a feature, not a bug

On Sun, Sep 9, 2018, 6:54 PM Nayeem Al Mifthah  wrote:

> Dear All
> I have found that, Organisation unit name is accepting duplicate names. Is
> it allowed now a days? or a bug? I have created a number of Sierra Leone in
> 2.30 demo. Only Code field check duplicates.
>
> [image: image.png]
> *Nayeem Al Mifthah*
> *Health Information Systems Specialist*
> Support to the National HMIS
> MIS, Directorate General of Health Services
> Ministry of Health and Family Welfare, Bangladesh
> Telephone: +880-2-58816459|Fax: +880-2-58813875
> Mobile:  +88-01914 030 574|Email: n.mift...@gmail.com
> Skype: nayeem.a.m|   LinkedIn:  linkedin.com/in/nayeemam
> ___
> 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] Uniqueness of organisation unit name

2018-09-09 Thread Nayeem Al Mifthah
Noted with thanks.

Regards,
Nayeem Al Mifthah
Kindly ignore typos.

On Sun, 9 Sep 2018, 23:13 Knut Staring,  wrote:

> Unless you know they are unique
>
> On Sun, Sep 9, 2018, 7:10 PM Nayeem Al Mifthah 
> wrote:
>
>> Thanks Knut. In that case using orgunit name as a ID scheme for data
>> import may not work.
>>
>> [image: image.png]
>>
>>
>> Regards,
>> Nayeem Al Mifthah
>> Consultant for HSS, HMIS, M&E, GIS and Surveillance
>>
>> Kindly ignore typos.
>>
>> On 9 Sep 2018 11:03 pm, "Knut Staring"  wrote:
>>
>> I think this is a feature, not a bug
>>
>> On Sun, Sep 9, 2018, 6:54 PM Nayeem Al Mifthah 
>> wrote:
>>
>>> Dear All
>>> I have found that, Organisation unit name is accepting duplicate names.
>>> Is it allowed now a days? or a bug? I have created a number of Sierra Leone
>>> in 2.30 demo. Only Code field check duplicates.
>>>
>>> [image: image.png]
>>> *Nayeem Al Mifthah*
>>> *Health Information Systems Specialist*
>>> Support to the National HMIS
>>> MIS, Directorate General of Health Services
>>> Ministry of Health and Family Welfare, Bangladesh
>>> Telephone: +880-2-58816459|Fax: +880-2-58813875
>>> Mobile:  +88-01914 030 574|Email: n.mift...@gmail.com
>>> Skype: nayeem.a.m|   LinkedIn:  linkedin.com/in/nayeemam
>>> ___
>>> 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] Uniqueness of organisation unit name

2018-09-09 Thread Nayeem Al Mifthah
Thanks Knut. In that case using orgunit name as a ID scheme for data import
may not work.

[image: image.png]


Regards,
Nayeem Al Mifthah
Consultant for HSS, HMIS, M&E, GIS and Surveillance

Kindly ignore typos.

On 9 Sep 2018 11:03 pm, "Knut Staring"  wrote:

I think this is a feature, not a bug

On Sun, Sep 9, 2018, 6:54 PM Nayeem Al Mifthah  wrote:

> Dear All
> I have found that, Organisation unit name is accepting duplicate names. Is
> it allowed now a days? or a bug? I have created a number of Sierra Leone in
> 2.30 demo. Only Code field check duplicates.
>
> [image: image.png]
> *Nayeem Al Mifthah*
> *Health Information Systems Specialist*
> Support to the National HMIS
> MIS, Directorate General of Health Services
> Ministry of Health and Family Welfare, Bangladesh
> Telephone: +880-2-58816459|Fax: +880-2-58813875
> Mobile:  +88-01914 030 574|Email: n.mift...@gmail.com
> Skype: nayeem.a.m|   LinkedIn:  linkedin.com/in/nayeemam
> ___
> 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] Uniqueness of organisation unit name

2018-09-09 Thread Knut Staring
Unless you know they are unique

On Sun, Sep 9, 2018, 7:10 PM Nayeem Al Mifthah  wrote:

> Thanks Knut. In that case using orgunit name as a ID scheme for data
> import may not work.
>
> [image: image.png]
>
>
> Regards,
> Nayeem Al Mifthah
> Consultant for HSS, HMIS, M&E, GIS and Surveillance
>
> Kindly ignore typos.
>
> On 9 Sep 2018 11:03 pm, "Knut Staring"  wrote:
>
> I think this is a feature, not a bug
>
> On Sun, Sep 9, 2018, 6:54 PM Nayeem Al Mifthah 
> wrote:
>
>> Dear All
>> I have found that, Organisation unit name is accepting duplicate names.
>> Is it allowed now a days? or a bug? I have created a number of Sierra Leone
>> in 2.30 demo. Only Code field check duplicates.
>>
>> [image: image.png]
>> *Nayeem Al Mifthah*
>> *Health Information Systems Specialist*
>> Support to the National HMIS
>> MIS, Directorate General of Health Services
>> Ministry of Health and Family Welfare, Bangladesh
>> Telephone: +880-2-58816459|Fax: +880-2-58813875
>> Mobile:  +88-01914 030 574|Email: n.mift...@gmail.com
>> Skype: nayeem.a.m|   LinkedIn:  linkedin.com/in/nayeemam
>> ___
>> 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] Uniqueness of organisation unit name

2018-09-09 Thread Calle Hedberg
Hi,

There are only unique constraints for the fields "uid" and "code".

That said, I/we have always ensured that at least the main name is
factually unique too - the short name is a different matter (although I
would argue that ensuring unique short names within e.g. a district or
state/province is a good idea, since reports etc for such smaller areas
tend to be facility or sub-facility based. For larger countries, we
normally use a sub-national prefix to ensure uniqueness (e.g. a
two-character prefix representing the province, like in South Africa, or
the state, like in Nigeria).

Ensuring uniqueness require a bit more discipline when creating/maintaining
orgunits, but you get that time back and more so by avoiding other problems
(the import using Name scheme is one of them, but any output object using
those names are usually the main problem).

Regards
calle



On Sun, 9 Sep 2018 at 21:50, Nayeem Al Mifthah  wrote:

> Noted with thanks.
>
> Regards,
> Nayeem Al Mifthah
> Kindly ignore typos.
>
> On Sun, 9 Sep 2018, 23:13 Knut Staring,  wrote:
>
>> Unless you know they are unique
>>
>> On Sun, Sep 9, 2018, 7:10 PM Nayeem Al Mifthah 
>> wrote:
>>
>>> Thanks Knut. In that case using orgunit name as a ID scheme for data
>>> import may not work.
>>>
>>> [image: image.png]
>>>
>>>
>>> Regards,
>>> Nayeem Al Mifthah
>>> Consultant for HSS, HMIS, M&E, GIS and Surveillance
>>>
>>> Kindly ignore typos.
>>>
>>> On 9 Sep 2018 11:03 pm, "Knut Staring"  wrote:
>>>
>>> I think this is a feature, not a bug
>>>
>>> On Sun, Sep 9, 2018, 6:54 PM Nayeem Al Mifthah 
>>> wrote:
>>>
 Dear All
 I have found that, Organisation unit name is accepting duplicate names.
 Is it allowed now a days? or a bug? I have created a number of Sierra Leone
 in 2.30 demo. Only Code field check duplicates.

 [image: image.png]
 *Nayeem Al Mifthah*
 *Health Information Systems Specialist*
 Support to the National HMIS
 MIS, Directorate General of Health Services
 Ministry of Health and Family Welfare, Bangladesh
 Telephone: +880-2-58816459|Fax: +880-2-58813875
 Mobile:  +88-01914 030 574|Email: n.mift...@gmail.com
 Skype: nayeem.a.m|   LinkedIn:  linkedin.com/in/nayeemam
 ___
 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
>


-- 

***

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


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. 
>
> 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] 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
>>> org.hisp.dhis.dxf2.metadata.objectbundle.DefaultObjectBundleService.lambda$null$20(DefaultObjectBundleService.java:239)
>>> at java.util.ArrayList.forEach(ArrayList.java:1249)
>>> at
>>> org.hisp.dhis.dxf2.metadata.objectbundle.DefaultObjectBundleService.lambda$handleCreates$21(DefaultObjectBundleService.java:238)
>>> at java.util.ArrayList.forEach(ArrayList.java:1249)
>>> at
>>> org.hisp.dhis.dxf2.metadata.objectbundle.DefaultObjectBundleService.handleCreates(DefaultObjectBundleService.java:238)
>>> at
>>> org.hisp.dhis.dxf2.metadata.objectbundle.DefaultObjectBundleService.commit(DefaultObjectBundleService.java:180)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>
>>>
>>>
>>> --
>>>

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
>  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


[Dhis2-devs] Could not delete due to association with another object: ProgramStageInstance in dhis 2.30

2018-09-09 Thread 林晓东


when I do delete program in dhis2 2.30, got :
Could not delete due to association with another object: ProgramStageInstance 
??
but in dev version ,it's OK




--

此致

   林晓东

莫愁前路无知己,天下谁人不识君。___
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