You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@syncope.apache.org by Bob Lannoy <bo...@gmail.com> on 2012/04/24 13:52:03 UTC

Export & import

Hi guys,

I'm trying to automate a simple setup so I exported a content.xml from
the console.
Unfortunately the exported content.xml doesn't contain a few things.
I noticed the following things are missing
- user attribute values, the <uattr> tags are there but no <uattr_value> tags
- memberships
- role_entitlements

Also the <Syncope_user> tags contain an invalid creationDate. In my
case the import contains a date like this "2012-04-24 13:21:18.0". I
get an error message when importing it.

I'll have to construct part of the content.xml by hand. I'll use the
test content.xml as a guideline.
Another route would be to script a series of REST-commands to core I guess.
What do you normally do?

regards

Bob

Re: Export & import

Posted by Fabio Martelli <fa...@gmail.com>.
Il giorno 24/apr/2012, alle ore 14.55, Bob Lannoy ha scritto:

> Hi Fabio,
> 
> I'm using Tomcat 6.0.35 with MySQL 5.5.21.
> 

Hi Bob,
this morning I closed the issue SYNCOPE-65.

I solved a lot of problems related to the export/import feature. 
Please, check last update out and let me know if you have some trouble.

Regards,
F.

> On 24 April 2012 14:49, Fabio Martelli <fa...@gmail.com> wrote:
>> 
>> Il giorno 24/apr/2012, alle ore 13.52, Bob Lannoy ha scritto:
>> 
>>> Hi guys,
>>> 
>>> I'm trying to automate a simple setup so I exported a content.xml from
>>> the console.
>>> Unfortunately the exported content.xml doesn't contain a few things.
>>> I noticed the following things are missing
>>> - user attribute values, the <uattr> tags are there but no <uattr_value> tags
>>> - memberships
>>> - role_entitlements
>>> 
>>> Also the <Syncope_user> tags contain an invalid creationDate. In my
>>> case the import contains a date like this "2012-04-24 13:21:18.0". I
>>> get an error message when importing it.
>>> 
>>> I'll have to construct part of the content.xml by hand. I'll use the
>>> test content.xml as a guideline.
>>> Another route would be to script a series of REST-commands to core I guess.
>>> What do you normally do?
>> 
>> Hi Bob,
>> I cannot reproduce the problem. Probably it depends on the DBMS used as back-end.
>> Could you give me more details about your deployment?
>> 
>> Regards,
>> F.


Re: Export & import

Posted by Bob Lannoy <bo...@gmail.com>.
Hi Fabio,

I'm using Tomcat 6.0.35 with MySQL 5.5.21.

regards

Bob

On 24 April 2012 14:49, Fabio Martelli <fa...@gmail.com> wrote:
>
> Il giorno 24/apr/2012, alle ore 13.52, Bob Lannoy ha scritto:
>
>> Hi guys,
>>
>> I'm trying to automate a simple setup so I exported a content.xml from
>> the console.
>> Unfortunately the exported content.xml doesn't contain a few things.
>> I noticed the following things are missing
>> - user attribute values, the <uattr> tags are there but no <uattr_value> tags
>> - memberships
>> - role_entitlements
>>
>> Also the <Syncope_user> tags contain an invalid creationDate. In my
>> case the import contains a date like this "2012-04-24 13:21:18.0". I
>> get an error message when importing it.
>>
>> I'll have to construct part of the content.xml by hand. I'll use the
>> test content.xml as a guideline.
>> Another route would be to script a series of REST-commands to core I guess.
>> What do you normally do?
>
> Hi Bob,
> I cannot reproduce the problem. Probably it depends on the DBMS used as back-end.
> Could you give me more details about your deployment?
>
> Regards,
> F.

Re: Export & import

Posted by Fabio Martelli <fa...@gmail.com>.
Il giorno 24/apr/2012, alle ore 13.52, Bob Lannoy ha scritto:

> Hi guys,
> 
> I'm trying to automate a simple setup so I exported a content.xml from
> the console.
> Unfortunately the exported content.xml doesn't contain a few things.
> I noticed the following things are missing
> - user attribute values, the <uattr> tags are there but no <uattr_value> tags
> - memberships
> - role_entitlements
> 
> Also the <Syncope_user> tags contain an invalid creationDate. In my
> case the import contains a date like this "2012-04-24 13:21:18.0". I
> get an error message when importing it.
> 
> I'll have to construct part of the content.xml by hand. I'll use the
> test content.xml as a guideline.
> Another route would be to script a series of REST-commands to core I guess.
> What do you normally do?

Hi Bob, 
I cannot reproduce the problem. Probably it depends on the DBMS used as back-end.
Could you give me more details about your deployment?

Regards,
F.

Re: Export & import

Posted by Fabio Martelli <fa...@gmail.com>.
Il giorno 24/apr/2012, alle ore 13.52, Bob Lannoy ha scritto:

> Hi guys,
> 
> I'm trying to automate a simple setup so I exported a content.xml from
> the console.
> Unfortunately the exported content.xml doesn't contain a few things.
> I noticed the following things are missing
> - user attribute values, the <uattr> tags are there but no <uattr_value> tags
> - memberships
> - role_entitlements

> 
> Also the <Syncope_user> tags contain an invalid creationDate. In my
> case the import contains a date like this "2012-04-24 13:21:18.0". I
> get an error message when importing it.
> 
> I'll have to construct part of the content.xml by hand. I'll use the
> test content.xml as a guideline.
> Another route would be to script a series of REST-commands to core I guess.
> What do you normally do?

Hi Bob, export from MySQL seems to work fine (no data is missing) but the import fails for several reasons.
I'm going to open a new issue ...

Regards,
F.