← Back to team overview

dhis2-devs team mailing list archive

Re: Exporting/importing User meta-data

 

Morten

Sure - I just wanted to know if (1) it's a known bug; and (2) what kind of
bug it is. Somebody else must have encountered the same, and I've got a
feeling I saw some posting related to this (might even have been Elmarie,
cannot recall).

Regards
Calle

On 6 February 2017 at 09:43, Morten Olav Hansen <morten@xxxxxxxxx> wrote:

> Hi Calle
>
> Would you mind filing a bug in Jira? easier to track it that way
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Mon, Feb 6, 2017 at 6:53 AM, Calle Hedberg <calle.hedberg@xxxxxxxxx>
> wrote:
>
>> Hi,
>>
>> I tried to export "Users" meta-data in 2.24 earlier this evening, and
>> then import it into another slightly different version of the same instance
>> (when logged in as superuser).
>>
>> Every single user was ignored during import, and every single one had an
>> import summary error message like the one below.
>>
>> Anybody able to figure out what's blocking the import in this case? I do
>> see the ""teiSearchOrganisationUnits":"[]" } is not allowed to grant
>> users access to user role" sections which looks like some kind of error,
>> but I don't know what that section actually means.
>>
>> (I later tried to export and import "Users" meta-data in the same 2.25
>> instance - that worked without a hitch).
>>
>> Regards
>> Calle
>>
>> Validation Violations: [ErrorReport{message=User {"id":"0",
>> "uid":"V0643n3eCBk", "code":"null", "created":"Tue May 03 15:44:05 CAT
>> 2016", "lastUpdated":"Tue May 03 15:44:05 CAT 2016", "surname":"User",
>> "firstName":"Demo", "email":"null", "phoneNumber":"null",
>> "jobTitle":"null", "introduction":"null", "gender":"null",
>> "birthday":"null", "nationality":"null", "employer":"null",
>> "education":"null", "interests":"null", "languages":"null",
>> "lastCheckedInterpretations":"null", "userCredentials":"{"username":"Demo_User",
>> "openId":"null", "password":"$2a$10$CNhU7EJFD5X
>> 53qDd/F6DyuyVH99JUoWEX6vLFUWC7k4rL7SUzb.kG", "passwordLastUpdated":"Tue
>> May 03 15:44:04 CAT 2016", "userAuthorityGroups":"[{"class":"class
>> org.hisp.dhis.user.UserAuthorityGroup", "id":"0", "uid":"aWAMSmyKe4b",
>> "code":"null", "name":"Data capturer - Event", "created":"Thu Jun 25
>> 09:06:05 CAT 2015", "lastUpdated":"Wed Dec 21 09:20:24 CAT 2016" },
>> {"class":"class org.hisp.dhis.user.UserAuthorityGroup", "id":"0",
>> "uid":"tnNVBu5cxxZ", "code":"null", "name":"Dashboard", "created":"Thu Jul
>> 23 17:18:16 CAT 2015", "lastUpdated":"Mon Jun 20 08:59:15 CAT 2016" }]",
>> "lastLogin":"Tue May 03 15:44:04 CAT 2016", "restoreToken":"null",
>> "restoreCode":"null", "restoreExpiry":"null", "selfRegistered":"false",
>> "disabled":"false" }", "groups":"[]", "organisationUnits":"[{"class":"class
>> org.hisp.dhis.organisationunit.OrganisationUnit", "id":"0",
>> "uid":"kWi0HuwZ68H", "code":"null", "name":"Ministry of Health and Social
>> Services", "created":"Mon Aug 10 08:57:03 CAT 2015", "lastUpdated":"Thu Jun
>> 16 11:53:40 CAT 2016" }]", "dataViewOrganisationUnits":"[{"class":"class
>> org.hisp.dhis.organisationunit.OrganisationUnit", "id":"0",
>> "uid":"kWi0HuwZ68H", "code":"null", "name":"Ministry of Health and Social
>> Services", "created":"Mon Aug 10 08:57:03 CAT 2015", "lastUpdated":"Thu Jun
>> 16 11:53:40 CAT 2016" }]" "teiSearchOrganisationUnits":"[]" } is not
>> allowed to grant users access to user role {"class":"class
>> org.hisp.dhis.user.UserAuthorityGroup", "id":"60273",
>> "uid":"ckj7ljweNzk", "code":"null", "name":"User Managed Groups",
>> "created":"2015-06-24 17:05:03.418", "lastUpdated":"2016-06-15
>> 15:45:57.802" }., errorCode=E3003, mainKlass=class
>> org.hisp.dhis.user.UserAuthorityGroup, errorKlass=null, value=null},
>> ErrorReport{message=User {"id":"0", "uid":"V0643n3eCBk", "code":"null",
>> "created":"Tue May 03 15:44:05 CAT 2016", "lastUpdated":"Tue May 03
>> 15:44:05 CAT 2016", "surname":"User", "firstName":"Demo", "email":"null",
>> "phoneNumber":"null", "jobTitle":"null", "introduction":"null",
>> "gender":"null", "birthday":"null", "nationality":"null",
>> "employer":"null", "education":"null", "interests":"null",
>> "languages":"null", "lastCheckedInterpretations":"null",
>> "userCredentials":"{"username":"Demo_User", "openId":"null",
>> "password":"$2a$10$CNhU7EJFD5X53qDd/F6DyuyVH99JUoWEX6vLFUWC7k4rL7SUzb.kG",
>> "passwordLastUpdated":"Tue May 03 15:44:04 CAT 2016",
>> "userAuthorityGroups":"[{"class":"class org.hisp.dhis.user.UserAuthorityGroup",
>> "id":"0", "uid":"aWAMSmyKe4b", "code":"null", "name":"Data capturer -
>> Event", "created":"Thu Jun 25 09:06:05 CAT 2015", "lastUpdated":"Wed Dec 21
>> 09:20:24 CAT 2016" }, {"class":"class org.hisp.dhis.user.UserAuthorityGroup",
>> "id":"0", "uid":"tnNVBu5cxxZ", "code":"null", "name":"Dashboard",
>> "created":"Thu Jul 23 17:18:16 CAT 2015", "lastUpdated":"Mon Jun 20
>> 08:59:15 CAT 2016" }]", "lastLogin":"Tue May 03 15:44:04 CAT 2016",
>> "restoreToken":"null", "restoreCode":"null", "restoreExpiry":"null",
>> "selfRegistered":"false", "disabled":"false" }", "groups":"[]",
>> "organisationUnits":"[{"class":"class org.hisp.dhis.organisationunit.OrganisationUnit",
>> "id":"0", "uid":"kWi0HuwZ68H", "code":"null", "name":"Ministry of Health
>> and Social Services", "created":"Mon Aug 10 08:57:03 CAT 2015",
>> "lastUpdated":"Thu Jun 16 11:53:40 CAT 2016" }]",
>> "dataViewOrganisationUnits":"[{"class":"class
>> org.hisp.dhis.organisationunit.OrganisationUnit", "id":"0",
>> "uid":"kWi0HuwZ68H", "code":"null", "name":"Ministry of Health and Social
>> Services", "created":"Mon Aug 10 08:57:03 CAT 2015", "lastUpdated":"Thu Jun
>> 16 11:53:40 CAT 2016" }]" "teiSearchOrganisationUnits":"[]" } is not
>> allowed to grant users access to user role {"class":"class
>> org.hisp.dhis.user.UserAuthorityGroup", "id":"60260",
>> "uid":"qVea8y6GIok", "code":"null", "name":"NDD Metadata Control",
>> "created":"2015-06-24 15:36:18.208", "lastUpdated":"2016-06-15
>> 15:45:57.679" }., errorCode=E3003, mainKlass=class
>> org.hisp.dhis.user.UserAuthorityGroup, errorKlass=null, value=null},
>> ErrorReport{message=User {"id":"0", "uid":"V0643n3eCBk", "code":"null",
>> "created":"Tue May 03 15:44:05 CAT 2016", "lastUpdated":"Tue May 03
>> 15:44:05 CAT 2016", "surname":"User", "firstName":"Demo", "email":"null",
>> "phoneNumber":"null", "jobTitle":"null", "introduction":"null",
>> "gender":"null", "birthday":"null", "nationality":"null",
>> "employer":"null", "education":"null", "interests":"null",
>> "languages":"null", "lastCheckedInterpretations":"null",
>> "userCredentials":"{"username":"Demo_User", "openId":"null",
>> "password":"$2a$10$CNhU7EJFD5X53qDd/F6DyuyVH99JUoWEX6vLFUWC7k4rL7SUzb.kG",
>> "passwordLastUpdated":"Tue May 03 15:44:04 CAT 2016",
>> "userAuthorityGroups":"[{"class":"class org.hisp.dhis.user.UserAuthorityGroup",
>> "id":"0", "uid":"aWAMSmyKe4b", "code":"null", "name":"Data capturer -
>> Event", "created":"Thu Jun 25 09:06:05 CAT 2015", "lastUpdated":"Wed Dec 21
>> 09:20:24 CAT 2016" }, {"class":"class org.hisp.dhis.user.UserAuthorityGroup",
>> "id":"0", "uid":"tnNVBu5cxxZ", "code":"null", "name":"Dashboard",
>> "created":"Thu Jul 23 17:18:16 CAT 2015", "lastUpdated":"Mon Jun 20
>> 08:59:15 CAT 2016" }]", "lastLogin":"Tue May 03 15:44:04 CAT 2016",
>> "restoreToken":"null", "restoreCode":"null", "restoreExpiry":"null",
>> "selfRegistered":"false", "disabled":"false" }", "groups":"[]",
>> "organisationUnits":"[{"class":"class org.hisp.dhis.organisationunit.OrganisationUnit",
>> "id":"0", "uid":"kWi0HuwZ68H", "code":"null", "name":"Ministry of Health
>> and Social Services", "created":"Mon Aug 10 08:57:03 CAT 2015",
>> "lastUpdated":"Thu Jun 16 11:53:40 CAT 2016" }]",
>> "dataViewOrganisationUnits":"[{"class":"class
>> org.hisp.dhis.organisationunit.OrganisationUnit", "id":"0",
>> "uid":"kWi0HuwZ68H", "code":"null", "name":"Ministry of Health and Social
>> Services", "created":"Mon Aug 10 08:57:03 CAT 2015", "lastUpdated":"Thu Jun
>> 16 11:53:40 CAT 2016" }]" "teiSearchOrganisationUnits":"[]" } is not
>> allowed to grant users access to user role {"class":"class
>> org.hisp.dhis.user.UserAuthorityGroup", "id":"60262",
>> "uid":"eHj9hsCVkcA", "code":"null", "name":"Import/Export Data",
>> "created":"2015-06-24 17:08:45.565", "lastUpdated":"2016-06-15
>> 15:45:57.695" }., errorCode=E3003, mainKlass=class
>> org.hisp.dhis.user.UserAuthorityGroup, errorKlass=null, value=null},
>> ErrorReport{message=User {"id":"0", "uid":"V0643n3eCBk", "code":"null",
>> "created":"Tue May 03 15:44:05 CAT 2016", "lastUpdated":"Tue May 03
>> 15:44:05 CAT 2016", "surname":"User", "firstName":"Demo", "email":"null",
>> "phoneNumber":"null", "jobTitle":"null", "introduction":"null",
>> "gender":"null", "birthday":"null", "nationality":"null",
>> "employer":"null", "education":"null", "interests":"null",
>> "languages":"null", "lastCheckedInterpretations":"null",
>> "userCredentials":"{"username":"Demo_User", "openId":"null",
>> "password":"$2a$10$CNhU7EJFD5X53qDd/F6DyuyVH99JUoWEX6vLFUWC7k4rL7SUzb.kG",
>> "passwordLastUpdated":"Tue May 03 15:44:04 CAT 2016",
>> "userAuthorityGroups":"[{"class":"class org.hisp.dhis.user.UserAuthorityGroup",
>> "id":"0", "uid":"aWAMSmyKe4b", "code":"null", "name":"Data capturer -
>> Event", "created":"Thu Jun 25 09:06:05 CAT 2015", "lastUpdated":"Wed Dec 21
>> 09:20:24 CAT 2016" }, {"class":"class org.hisp.dhis.user.UserAuthorityGroup",
>> "id":"0", "uid":"tnNVBu5cxxZ", "code":"null", "name":"Dashboard",
>> "created":"Thu Jul 23 17:18:16 CAT 2015", "lastUpdated":"Mon Jun 20
>> 08:59:15 CAT 2016" }]", "lastLogin":"Tue May 03 15:44:04 CAT 2016",
>> "restoreToken":"null", "restoreCode":"null", "restoreExpiry":"null",
>> "selfRegistered":"false", "disabled":"false" }", "groups":"[]",
>> "organisationUnits":"[{"class":"class org.hisp.dhis.organisationunit.OrganisationUnit",
>> "id":"0", "uid":"kWi0HuwZ68H", "code":"null", "name":"Ministry of Health
>> and Social Services", "created":"Mon Aug 10 08:57:03 CAT 2015",
>> "lastUpdated":"Thu Jun 16 11:53:40 CAT 2016" }]",
>> "dataViewOrganisationUnits":"[{"class":"class
>> org.hisp.dhis.organisationunit.OrganisationUnit", "id":"0",
>> "uid":"kWi0HuwZ68H", "code":"null", "name":"Ministry of Health and Social
>> Services", "created":"Mon Aug 10 08:57:03 CAT 2015", "lastUpdated":"Thu Jun
>> 16 11:53:40 CAT 2016" }]" "teiSearchOrganisationUnits":"[]" } is not
>> allowed to grant users access to user role {"class":"class
>> org.hisp.dhis.user.UserAuthorityGroup", "id":"47", "uid":"saLI2pdSaI7",
>> "code":"null", "name":"Superuser", "created":"2013-11-07 02:03:36.984",
>> "lastUpdated":"2016-12-12 18:05:49.426" }., errorCode=E3003,
>> mainKlass=class org.hisp.dhis.user.UserAuthorityGroup, errorKlass=null,
>> value=null}, ErrorReport{message=User {"id":"0", "uid":"V0643n3eCBk",
>> "code":"null", "created":"Tue May 03 15:44:05 CAT 2016", "lastUpdated":"Tue
>> May 03 15:44:05 CAT 2016", "surname":"User", "firstName":"Demo",
>> "email":"null", "phoneNumber":"null", "jobTitle":"null",
>> "introduction":"null", "gender":"null", "birthday":"null",
>> "nationality":"null", "employer":"null", "education":"null",
>> "interests":"null", "languages":"null", "lastCheckedInterpretations":"null",
>> "userCredentials":"{"username":"Demo_User", "openId":"null",
>> "password":"$2a$10$CNhU7EJFD5X53qDd/F6DyuyVH99JUoWEX6vLFUWC7k4rL7SUzb.kG",
>> "passwordLastUpdated":"Tue May 03 15:44:04 CAT 2016",
>> "userAuthorityGroups":"[{"class":"class org.hisp.dhis.user.UserAuthorityGroup",
>> "id":"0", "uid":"aWAMSmyKe4b", "code":"null", "name":"Data capturer -
>> Event", "created":"Thu Jun 25 09:06:05 CAT 2015", "lastUpdated":"Wed Dec 21
>> 09:20:24 CAT 2016" }, {"class":"class org.hisp.dhis.user.UserAuthorityGroup",
>> "id":"0", "uid":"tnNVBu5cxxZ", "code":"null", "name":"Dashboard",
>> "created":"Thu Jul 23 17:18:16 CAT 2015", "lastUpdated":"Mon Jun 20
>> 08:59:15 CAT 2016" }]", "lastLogin":"Tue May 03 15:44:04 CAT 2016",
>> "restoreToken":"null", "restoreCode":"null", "restoreExpiry":"null",
>> "selfRegistered":"false", "disabled":"false" }", "groups":"[]",
>> "organisationUnits":"[{"class":"class org.hisp.dhis.organisationunit.OrganisationUnit",
>> "id":"0", "uid":"kWi0HuwZ68H", "code":"null", "name":"Ministry of Health
>> and Social Services", "created":"Mon Aug 10 08:57:03 CAT 2015",
>> "lastUpdated":"Thu Jun 16 11:53:40 CAT 2016" }]",
>> "dataViewOrganisationUnits":"[{"class":"class
>> org.hisp.dhis.organisationunit.OrganisationUnit", "id":"0",
>> "uid":"kWi0HuwZ68H", "code":"null", "name":"Ministry of Health and Social
>> Services", "created":"Mon Aug 10 08:57:03 CAT 2015", "lastUpdated":"Thu Jun
>> 16 11:53:40 CAT 2016" }]" "teiSearchOrganisationUnits":"[]" } is not
>> allowed to grant users access to user role {"class":"class
>> org.hisp.dhis.user.UserAuthorityGroup", "id":"60275",
>> "uid":"IIHtF38fD7j", "code":"null", "name":"User Control",
>> "created":"2015-06-24 16:53:03.863", "lastUpdated":"2016-06-15
>> 15:45:57.809" }., errorCode=E3003, mainKlass=class
>> org.hisp.dhis.user.UserAuthorityGroup, errorKlass=null, value=null},
>> ErrorReport{message=User {"id":"0", "uid":"V0643n3eCBk", "code":"null",
>> "created":"Tue May 03 15:44:05 CAT 2016", "lastUpdated":"Tue May 03
>> 15:44:05 CAT 2016", "surname":"User", "firstName":"Demo", "email":"null",
>> "phoneNumber":"null", "jobTitle":"null", "introduction":"null",
>> "gender":"null", "birthday":"null", "nationality":"null",
>> "employer":"null", "education":"null", "interests":"null",
>> "languages":"null", "lastCheckedInterpretations":"null",
>> "userCredentials":"{"username":"Demo_User", "openId":"null",
>> "password":"$2a$10$CNhU7EJFD5X53qDd/F6DyuyVH99JUoWEX6vLFUWC7k4rL7SUzb.kG",
>> "passwordLastUpdated":"Tue May 03 15:44:04 CAT 2016",
>> "userAuthorityGroups":"[{"class":"class org.hisp.dhis.user.UserAuthorityGroup",
>> "id":"0", "uid":"aWAMSmyKe4b", "code":"null", "name":"Data capturer -
>> Event", "created":"Thu Jun 25 09:06:05 CAT 2015", "lastUpdated":"Wed Dec 21
>> 09:20:24 CAT 2016" }, {"class":"class org.hisp.dhis.user.UserAuthorityGroup",
>> "id":"0", "uid":"tnNVBu5cxxZ", "code":"null", "name":"Dashboard",
>> "created":"Thu Jul 23 17:18:16 CAT 2015", "lastUpdated":"Mon Jun 20
>> 08:59:15 CAT 2016" }]", "lastLogin":"Tue May 03 15:44:04 CAT 2016",
>> "restoreToken":"null", "restoreCode":"null", "restoreExpiry":"null",
>> "selfRegistered":"false", "disabled":"false" }", "groups":"[]",
>> "organisationUnits":"[{"class":"class org.hisp.dhis.organisationunit.OrganisationUnit",
>> "id":"0", "uid":"kWi0HuwZ68H", "code":"null", "name":"Ministry of Health
>> and Social Services", "created":"Mon Aug 10 08:57:03 CAT 2015",
>> "lastUpdated":"Thu Jun 16 11:53:40 CAT 2016" }]",
>> "dataViewOrganisationUnits":"[{"class":"class
>> org.hisp.dhis.organisationunit.OrganisationUnit", "id":"0",
>> "uid":"kWi0HuwZ68H", "code":"null", "name":"Ministry of Health and Social
>> Services", "created":"Mon Aug 10 08:57:03 CAT 2015", "lastUpdated":"Thu Jun
>> 16 11:53:40 CAT 2016" }]" "teiSearchOrganisationUnits":"[]" } is not
>> allowed to grant users access to user role {"class":"class
>> org.hisp.dhis.user.UserAuthorityGroup", "id":"60274",
>> "uid":"qtnKmExIOyX", "code":"null", "name":"Create User",
>> "created":"2015-06-24 17:00:22.09", "lastUpdated":"2016-06-15 15:45:57.779"
>> }., errorCode=E3003, mainKlass=class org.hisp.dhis.user.UserAuthorityGroup,
>> errorKlass=null, value=null}, ErrorReport{message=User {"id":"0",
>> "uid":"V0643n3eCBk", "code":"null", "created":"Tue May 03 15:44:05 CAT
>> 2016", "lastUpdated":"Tue May 03 15:44:05 CAT 2016", "surname":"User",
>> "firstName":"Demo", "email":"null", "phoneNumber":"null",
>> "jobTitle":"null", "introduction":"null", "gender":"null",
>> "birthday":"null", "nationality":"null", "employer":"null",
>> "education":"null", "interests":"null", "languages":"null",
>> "lastCheckedInterpretations":"null", "userCredentials":"{"username":"Demo_User",
>> "openId":"null", "password":"$2a$10$CNhU7EJFD5X
>> 53qDd/F6DyuyVH99JUoWEX6vLFUWC7k4rL7SUzb.kG", "passwordLastUpdated":"Tue
>> May 03 15:44:04 CAT 2016", "userAuthorityGroups":"[{"class":"class
>> org.hisp.dhis.user.UserAuthorityGroup", "id":"0", "uid":"aWAMSmyKe4b",
>> "code":"null", "name":"Data capturer - Event", "created":"Thu Jun 25
>> 09:06:05 CAT 2015", "lastUpdated":"Wed Dec 21 09:20:24 CAT 2016" },
>> {"class":"class org.hisp.dhis.user.UserAuthorityGroup", "id":"0",
>> "uid":"tnNVBu5cxxZ", "code":"null", "name":"Dashboard", "created":"Thu Jul
>> 23 17:18:16 CAT 2015", "lastUpdated":"Mon Jun 20 08:59:15 CAT 2016" }]",
>> "lastLogin":"Tue May 03 15:44:04 CAT 2016", "restoreToken":"null",
>> "restoreCode":"null", "restoreExpiry":"null", "selfRegistered":"false",
>> "disabled":"false" }", "groups":"[]", "organisationUnits":"[{"class":"class
>> org.hisp.dhis.organisationunit.OrganisationUnit", "id":"0",
>> "uid":"kWi0HuwZ68H", "code":"null", "name":"Ministry of Health and Social
>> Services", "created":"Mon Aug 10 08:57:03 CAT 2015", "lastUpdated":"Thu Jun
>> 16 11:53:40 CAT 2016" }]", "dataViewOrganisationUnits":"[{"class":"class
>> org.hisp.dhis.organisationunit.OrganisationUnit", "id":"0",
>> "uid":"kWi0HuwZ68H", "code":"null", "name":"Ministry of Health and Social
>> Services", "created":"Mon Aug 10 08:57:03 CAT 2015", "lastUpdated":"Thu Jun
>> 16 11:53:40 CAT 2016" }]" "teiSearchOrganisationUnits":"[]" } is not
>> allowed to grant users access to user groups., errorCode=E3004,
>> mainKlass=class org.hisp.dhis.user.UserGroup, errorKlass=null, value=null}]
>>
>>
>>
>> *******************************************
>>
>> 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.hedberg@xxxxxxxxx
>>
>> Skype: calle_hedberg
>>
>> *******************************************
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>> 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.hedberg@xxxxxxxxx

Skype: calle_hedberg

*******************************************

Follow ups

References