metadata import

Hi

I have been exercising the metadata import/export functionality through the api.

Importing metadata (orgunits) works fine for superuser role.

I added a new role, synch, which has metadata_import privilege, and a synch user with that role.

Now when I import metadata by posting to /api/metaData everything appears to go fine. No errors in the logs and even an indication that orgunits have been imported. But no database updates actually happen. (I verified this with log4j.logger.org.hibernate.SQL = DEBUG).

I’ve hunted through the privileges list looking for likely candidates, but haven’t found anything that will work yet other than ALL. Morten am I missing something?

Bob

Hi Bob, which version and build are you on? We fixed a related bug a month ago.

Lars

···

On Jul 14, 2013 3:41 PM, “Bob Jolliffe” bobjolliffe@gmail.com wrote:

Hi

I have been exercising the metadata import/export functionality through the api.

Importing metadata (orgunits) works fine for superuser role.

I added a new role, synch, which has metadata_import privilege, and a synch user with that role.

Now when I import metadata by posting to /api/metaData everything appears to go fine. No errors in the logs and even an indication that orgunits have been imported. But no database updates actually happen. (I verified this with log4j.logger.org.hibernate.SQL = DEBUG).

I’ve hunted through the privileges list looking for likely candidates, but haven’t found anything that will work yet other than ALL. Morten am I missing something?

Bob


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

Sorry I should have said. Pretty recent
Version: 2.12
Build revision: 11221
Build date: 2013-07-10 02:02

···

On 14 July 2013 16:31, Lars Helge Øverland larshelge@gmail.com wrote:

Hi Bob, which version and build are you on? We fixed a related bug a month ago.

Lars

On Jul 14, 2013 3:41 PM, “Bob Jolliffe” bobjolliffe@gmail.com wrote:

Hi

I have been exercising the metadata import/export functionality through the api.

Importing metadata (orgunits) works fine for superuser role.

I added a new role, synch, which has metadata_import privilege, and a synch user with that role.

Now when I import metadata by posting to /api/metaData everything appears to go fine. No errors in the logs and even an indication that orgunits have been imported. But no database updates actually happen. (I verified this with log4j.logger.org.hibernate.SQL = DEBUG).

I’ve hunted through the privileges list looking for likely candidates, but haven’t found anything that will work yet other than ALL. Morten am I missing something?

Bob


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

Not completely related, but same theme I am not seeing any effect of using lastUpdated as per http://www.dhis2.org/doc/snapshot/en/user/html/ch25s05.html.

I might get the chance to debug this myself tonight, but I wonder has anyone else seen anything similar?

Bob

···

On 14 July 2013 16:41, Bob Jolliffe bobjolliffe@gmail.com wrote:

Sorry I should have said. Pretty recent
Version: 2.12
Build revision: 11221
Build date: 2013-07-10 02:02

On 14 July 2013 16:31, Lars Helge Øverland larshelge@gmail.com wrote:

Hi Bob, which version and build are you on? We fixed a related bug a month ago.

Lars

On Jul 14, 2013 3:41 PM, “Bob Jolliffe” bobjolliffe@gmail.com wrote:

Hi

I have been exercising the metadata import/export functionality through the api.

Importing metadata (orgunits) works fine for superuser role.

I added a new role, synch, which has metadata_import privilege, and a synch user with that role.

Now when I import metadata by posting to /api/metaData everything appears to go fine. No errors in the logs and even an indication that orgunits have been imported. But no database updates actually happen. (I verified this with log4j.logger.org.hibernate.SQL = DEBUG).

I’ve hunted through the privileges list looking for likely candidates, but haven’t found anything that will work yet other than ALL. Morten am I missing something?

Bob


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

Hi Bob

I’m have a small one day vacation today, but I can look at it tomorrow. A hangout or something would be good.

Regarding the lastUpdated, all I can say is that it was working fine the last time I used it. You are sure the format is correct? it doesn’t give any errors if the format is correct, just gives you everything. We might change this to a proper http status code.

···


Morten

On Sun, Jul 14, 2013 at 9:53 PM, Bob Jolliffe bobjolliffe@gmail.com wrote:

Not completely related, but same theme I am not seeing any effect of using lastUpdated as per http://www.dhis2.org/doc/snapshot/en/user/html/ch25s05.html.

I might get the chance to debug this myself tonight, but I wonder has anyone else seen anything similar?

Bob


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

On 14 July 2013 16:41, Bob Jolliffe bobjolliffe@gmail.com wrote:

Sorry I should have said. Pretty recent
Version: 2.12
Build revision: 11221
Build date: 2013-07-10 02:02

On 14 July 2013 16:31, Lars Helge Øverland larshelge@gmail.com wrote:

Hi Bob, which version and build are you on? We fixed a related bug a month ago.

Lars

On Jul 14, 2013 3:41 PM, “Bob Jolliffe” bobjolliffe@gmail.com wrote:

Hi

I have been exercising the metadata import/export functionality through the api.

Importing metadata (orgunits) works fine for superuser role.

I added a new role, synch, which has metadata_import privilege, and a synch user with that role.

Now when I import metadata by posting to /api/metaData everything appears to go fine. No errors in the logs and even an indication that orgunits have been imported. But no database updates actually happen. (I verified this with log4j.logger.org.hibernate.SQL = DEBUG).

I’ve hunted through the privileges list looking for likely candidates, but haven’t found anything that will work yet other than ALL. Morten am I missing something?

Bob


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